:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #25372e;
  background: #f5f6f2;
  line-height: 1.55;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 1.2rem 2rem;
  background: #fff;
  border-bottom: 1px solid #e0e5df;
  font-family: Georgia, serif;
  font-size: 1.25rem;
}
.brand > span {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  background: #315743;
  color: #fff;
  font: 600 0.85rem system-ui;
}
.brand small {
  display: block;
  color: #68756b;
  font: 0.7rem system-ui;
  margin-top: 0.1rem;
}
main {
  max-width: 1120px;
  padding: 2.5rem 1.2rem;
  margin: auto;
}
.preview {
  background: #e7eee4;
  border: 1px solid #d9e3d5;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  margin: 0 0 1.2rem;
}
.booking-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: #fff;
  border: 1px solid #dce3da;
  border-radius: 1rem;
  box-shadow: 0 8px 32px #243c2b08;
  overflow: hidden;
  min-height: 570px;
}
.visit-panel {
  padding: 2rem;
  border-right: 1px solid #e0e5df;
  background: #fafbf8;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #627467;
  margin: 0 0 0.5rem;
}
h1 {
  font:
    500 2rem/1.15 Georgia,
    serif;
  letter-spacing: -0.035em;
  margin: 0 0 1.8rem;
}
h2 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 1.25rem;
}
h3 {
  font-size: 0.9rem;
  margin: 0;
  font-weight: 600;
}
.meta,
.description {
  color: #66746b;
  font-size: 0.9rem;
}
.meta {
  font-weight: 600;
}
.description {
  margin-bottom: 2rem;
}
.visit-panel a {
  font-size: 0.8rem;
}
.visit-panel #appointment-summary {
  padding-block: 1rem;
  border-top: 1px solid #dce3da;
}
.visit-panel #appointment-summary h2 {
  font-size: 0.8rem;
  color: #66746b;
  margin: 0;
}
#summary {
  font-size: 0.9rem;
}
.selection-panel {
  padding: 2rem;
  min-width: 0;
}
.picker-layout {
  display: grid;
  grid-template-columns: minmax(245px, 1fr) 155px;
  gap: 1.5rem;
}
.month-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.6rem;
  margin-bottom: 0.6rem;
}
.month-navigation > div {
  display: flex;
  gap: 0.25rem;
}
.calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 3px;
}
.calendar th {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #66746b;
  font-weight: 500;
  padding: 0.4rem 0;
}
.calendar td {
  text-align: center;
  padding: 0;
  height: 43px;
}
.calendar button {
  border-radius: 50%;
  width: 100%;
  aspect-ratio: 1;
  max-width: 42px;
  padding: 0;
  background: #e9f1e7;
  color: #315743;
  border: 1px solid transparent;
  font-weight: 650;
}
.calendar button[aria-pressed="true"] {
  background: #315743;
  color: #fff;
}
.calendar button:disabled {
  background: transparent;
  color: #a0aaa2;
  opacity: 1;
}
.calendar button[data-today="true"] {
  border-color: #879a88;
}
.calendar-key {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #66746b;
}
.calendar-key span {
  background: #e9f1e7;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}
.time-panel h3 {
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}
.time-panel #times {
  display: grid;
  gap: 0.6rem;
  max-height: 310px;
  overflow-y: auto;
  padding: 3px;
}
.time-panel button {
  background: #fff;
  border: 1px solid #8fa58f;
  color: #315743;
  min-height: 44px;
  font-size: 0.85rem;
}
.time-panel button[aria-pressed="true"] {
  background: #e9f1e7;
  border: 2px solid #315743;
}
.time-panel #continue {
  background: #315743;
  color: #fff;
  width: 100%;
  margin-top: 0.8rem;
}
.icon-button {
  border: 0;
  background: #e9f1e7;
  color: #315743;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.4rem;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}
select,
input {
  display: block;
  width: 100%;
  padding: 0.65rem 0.7rem;
  margin: 0.35rem 0 1rem;
  border: 1px solid #aab7ab;
  border-radius: 0.4rem;
  font: inherit;
  background: #fff;
  color: inherit;
  min-height: 44px;
}
#timezone {
  font-size: 0.8rem;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 0.4rem;
  padding: 0.75rem 1rem;
  background: #315743;
  color: #fff;
  font-weight: 600;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: #315743;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid #648b63;
  outline-offset: 3px;
}
.names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  font-size: 0.8rem;
  margin: 0.7rem 0 1.5rem;
}
.consent input {
  width: 1rem;
  min-height: 1rem;
  flex-shrink: 0;
  margin: 0.25rem 0;
}
.text-button {
  background: transparent;
  padding: 0;
  color: #315743;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #e9f1e7;
  color: #315743;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
#confirmation {
  padding-top: 1rem;
}
#confirmation p {
  font-size: 0.9rem;
}
#status {
  font-size: 0.85rem;
  margin: 1rem 0 0;
}
#status:empty {
  display: none;
}
.footer {
  text-align: center;
  font-size: 0.75rem;
  color: #66746b;
  margin: 1.5rem 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .booking-card {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .visit-panel,
  .selection-panel {
    padding: 1.4rem;
  }
  .picker-layout {
    grid-template-columns: 1fr;
  }
  .time-panel #times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 220px;
  }
  .time-panel h3 {
    margin: 0;
  }
  .time-panel #continue {
    max-width: 200px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 1rem 0.7rem;
  }
  .brand {
    padding: 0.8rem 1rem;
  }
  .booking-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .visit-panel {
    border-right: 0;
    border-bottom: 1px solid #e0e5df;
  }
  .visit-panel h1 {
    font-size: 1.6rem;
    margin-bottom: 0.9rem;
  }
  .visit-panel .description {
    display: none;
  }
  .visit-panel .meta {
    margin: 0;
  }
  .visit-panel select {
    margin-bottom: 0.5rem;
  }
  .visit-panel > a {
    display: none;
  }
  .names {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .selection-panel {
    padding: 1.4rem;
  }
  .calendar td {
    height: 44px;
  }
  .calendar button {
    max-width: 44px;
  }
  .picker-layout {
    gap: 0.8rem;
  }
}
