.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sage); }

.availability-results[hidden],
.patient-form[hidden],
.booking-confirmation[hidden],
.booking-calendar-actions[hidden] { display: none !important; }

.booking-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 88px;
  background:
    radial-gradient(circle at 8% 18%, rgba(242,190,149,.25), transparent 25%),
    radial-gradient(circle at 92% 82%, rgba(116,173,107,.18), transparent 28%),
    linear-gradient(135deg, var(--cream), #fff 58%, #eef6fa);
}

.booking-hero::after {
  position: absolute;
  right: -130px;
  bottom: -175px;
  width: 430px;
  height: 430px;
  content: "";
  border: 58px solid rgba(11,47,104,.045);
  border-radius: 50%;
}

.booking-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(50px, 7vw, 90px);
}

.booking-hero h1 { max-width: 720px; font-size: clamp(3rem, 5vw, 4.8rem); }
.booking-hero h1 em { color: var(--sage-dark); font-family: "Playfair Display", Georgia, serif; font-weight: 600; }
.booking-hero__copy > p:not(.eyebrow, .booking-hero__privacy) { max-width: 660px; margin: 25px 0 0; color: var(--muted); font-size: 1.04rem; }
.booking-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 32px; }
.booking-hero__privacy { display: flex; align-items: center; gap: 9px; margin: 21px 0 0; color: #536777; font-size: .72rem; font-weight: 650; }
.booking-hero__privacy span { display: grid; width: 21px; height: 21px; place-items: center; color: #376638; background: var(--mint); border-radius: 50%; }

.booking-hero__assistant { display: grid; gap: 15px; }
.booking-guide {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 13px 18px 13px 13px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(233,247,236,.9));
  border: 1px solid #cfe4d4;
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(11,47,104,.08);
}
.booking-guide__portrait {
  position: relative;
  overflow: hidden;
  width: 92px;
  height: 92px;
  background: radial-gradient(circle at 50% 35%, #fff 0%, var(--mint) 72%);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(11,47,104,.13);
}
.booking-guide__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transform: scale(1.05); }
.booking-guide p { margin: 0 0 3px; color: var(--sage-dark); font-size: .61rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.booking-guide strong { display: block; color: var(--navy-deep); font-size: 1rem; }
.booking-guide span { display: block; margin-top: 4px; color: var(--muted); font-size: .69rem; line-height: 1.5; }

.booking-steps { display: grid; gap: 12px; padding: 18px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); border-radius: 30px 12px 30px 12px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.booking-steps article { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px; background: rgba(255,255,255,.84); border: 1px solid var(--line); border-radius: 17px; }
.booking-steps article > span { display: grid; width: 54px; height: 54px; place-items: center; color: var(--white); background: var(--navy); border-radius: 50%; font-size: .76rem; font-weight: 850; }
.booking-steps article:nth-child(2) > span { color: #376638; background: var(--mint); }
.booking-steps article:nth-child(3) > span { color: #8a543d; background: var(--peach-soft); }
.booking-steps strong { display: block; color: var(--navy-deep); font-size: .88rem; }
.booking-steps p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }

.availability-engine {
  position: relative;
  background:
    radial-gradient(circle at 12% 12%, rgba(242,190,149,.18), transparent 24%),
    linear-gradient(180deg, #f6faf7, var(--white));
}

.availability-engine__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 22px;
}

.availability-engine__main {
  min-width: 0;
  padding: clamp(27px, 4vw, 48px);
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 32px 12px 32px 12px;
  box-shadow: 0 24px 65px rgba(11,47,104,.1);
}

.availability-engine__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-top: 48px; padding-top: 42px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.availability-engine__header .eyebrow { margin-bottom: 10px; }
.availability-engine__header h2 { max-width: 690px; font-size: clamp(2rem, 3vw, 3rem); }
.availability-engine__header > div > p:last-child { max-width: 690px; margin: 16px 0 0; color: var(--muted); font-size: .86rem; }
.availability-engine__badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 9px 13px; color: #376638; background: var(--mint); border: 1px solid #c8e3ce; border-radius: 999px; font-size: .64rem; font-weight: 800; white-space: nowrap; }
.availability-engine__badge > span { display: grid; width: 19px; height: 19px; place-items: center; color: var(--white); background: var(--sage-dark); border-radius: 50%; font-size: .55rem; }

.availability-search { display: grid; grid-template-columns: 1.2fr 1.1fr .8fr; gap: 12px; margin-top: 30px; }
.booking-specialist-control { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.availability-search__specialist { display: flex; min-width: 0; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; background: #f5f9f6; border: 1px solid #cfe2d3; border-radius: 11px; }
.availability-search__specialist > div { display: grid; min-width: 0; gap: 2px; }
.availability-search__specialist span { color: var(--sage-dark); font-size: .58rem; font-weight: 780; text-transform: uppercase; letter-spacing: .045em; }
.availability-search__specialist strong { overflow: hidden; color: var(--navy-deep); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.availability-search__specialist button { flex: 0 0 auto; padding: 6px 9px; color: var(--navy); background: var(--white); border: 1px solid #cbd9e3; border-radius: 8px; font: inherit; font-size: .56rem; font-weight: 780; cursor: pointer; }
.availability-search__specialist button:hover { color: var(--white); background: var(--navy); }
.availability-search label, .patient-form__fields label { display: grid; gap: 7px; min-width: 0; }
.availability-search label > span, .patient-form__fields label > span { color: var(--navy); font-size: .65rem; font-weight: 780; }
.availability-search select, .availability-search input, .patient-form input[type="text"], .patient-form input[type="email"], .patient-form input[type="tel"] { width: 100%; min-height: 50px; padding: 10px 13px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 11px; font: inherit; font-size: .74rem; }
.availability-search select:focus, .availability-search input:focus, .patient-form input:focus { outline: 3px solid rgba(29,95,157,.16); border-color: var(--blue); }
.availability-search select:disabled { color: #89949d; background: #f4f5f5; }
.booking-date-field { position: relative; display: grid; min-width: 0; gap: 7px; }
.booking-date-field__label { color: var(--navy); font-size: .65rem; font-weight: 780; }
.booking-date-trigger { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; color: var(--ink); text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: 11px; font: inherit; font-size: .74rem; cursor: pointer; }
.booking-date-trigger:hover:not(:disabled) { border-color: var(--blue); }
.booking-date-trigger:focus-visible { outline: 3px solid rgba(29,95,157,.16); border-color: var(--blue); }
.booking-date-trigger:disabled { color: #89949d; background: #f4f5f5; cursor: not-allowed; }
.booking-date-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-date-trigger > span:last-child { flex: 0 0 auto; color: var(--navy); font-size: 1rem; }
.booking-date-calendar { position: absolute; z-index: 40; top: calc(100% + 9px); right: 0; width: min(370px, calc(100vw - 44px)); padding: 15px; background: var(--white); border: 1px solid #cbd9e3; border-radius: 17px; box-shadow: 0 22px 55px rgba(11,47,104,.22); }
.booking-date-calendar[hidden] { display: none; }
.booking-date-calendar__header { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 8px; }
.booking-date-calendar__header strong { color: var(--navy-deep); font-size: .78rem; text-align: center; text-transform: capitalize; }
.booking-date-calendar__header button { display: grid; width: 38px; height: 38px; place-items: center; color: var(--navy); background: #f3f7f9; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 1.2rem; cursor: pointer; }
.booking-date-calendar__header button:hover:not(:disabled) { color: var(--white); background: var(--navy); }
.booking-date-calendar__header button:disabled { opacity: .35; cursor: not-allowed; }
.booking-date-weekdays, .booking-date-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.booking-date-weekdays { margin-top: 13px; color: var(--muted); font-size: .56rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.booking-date-days { margin-top: 7px; }
.booking-date-day { display: grid; min-width: 0; min-height: 38px; place-items: center; padding: 0; color: var(--navy); background: #f4f8f5; border: 1px solid #d4e5d7; border-radius: 9px; font: inherit; font-size: .66rem; font-weight: 800; cursor: pointer; }
.booking-date-day:hover:not(:disabled) { color: var(--white); background: var(--sage-dark); border-color: var(--sage-dark); }
.booking-date-day:focus-visible { outline: 3px solid rgba(29,95,157,.2); outline-offset: 1px; }
.booking-date-day:disabled { color: #aeb6bc; background: #f7f7f6; border-color: transparent; cursor: not-allowed; }
.booking-date-day.is-today { box-shadow: inset 0 0 0 2px var(--peach); }
.booking-date-day.is-selected { color: var(--white); background: var(--navy); border-color: var(--navy); }
.booking-date-day--blank { min-height: 38px; }
.booking-date-status { min-height: 1.3em; margin: 12px 2px 0; color: var(--muted); font-size: .58rem; line-height: 1.45; }
.booking-date-status.is-error { color: #84443d; }
.patient-form .button:disabled { opacity: .58; cursor: wait; transform: none; }

.availability-status { display: flex; align-items: flex-start; gap: 11px; margin-top: 22px; padding: 14px 16px; color: #536777; background: #f2f7fa; border: 1px solid #d9e7ef; border-radius: 12px; }
.availability-status > span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; color: var(--white); background: var(--blue); border-radius: 50%; font-size: .63rem; font-weight: 850; }
.availability-status p { margin: 1px 0 0; font-size: .69rem; line-height: 1.55; }
.availability-status.is-loading { color: #755d32; background: #fff9eb; border-color: #f0dfb8; }
.availability-status.is-loading > span { background: #c49a45; animation: availability-pulse 1s ease-in-out infinite; }
.availability-status.is-error { color: #84443d; background: #fff2ef; border-color: #f0ccc5; }
.availability-status.is-error > span { background: #b95b50; }
.availability-status.is-success { color: #376638; background: #edf8f0; border-color: #c8e3ce; }
.availability-status.is-success > span { background: var(--sage-dark); }

.availability-results { margin-top: 25px; padding: 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; }
.availability-results__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.availability-results__heading p, .patient-form header > p, .booking-confirmation > div > p { margin: 0; color: var(--sage-dark); font-size: .61rem; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; }
.availability-results__heading h3, .patient-form h3, .booking-confirmation h3 { margin: 2px 0 0; color: var(--navy-deep); font-size: 1.08rem; }
.availability-results__heading > span { color: var(--muted); font-size: .63rem; font-weight: 700; }
.availability-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; margin-top: 17px; }
.availability-slot { min-height: 45px; padding: 9px 10px; color: var(--navy); background: var(--white); border: 1px solid #c9d8e2; border-radius: 10px; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.availability-slot:hover { border-color: var(--blue); transform: translateY(-1px); }
.availability-slot.is-selected { color: var(--white); background: var(--navy); border-color: var(--navy); }
.availability-results__note { margin: 14px 0 0; color: var(--muted); font-size: .63rem; line-height: 1.55; }

.patient-form { margin-top: 25px; padding: 24px; background: #f7fbf8; border: 1px solid #cfe2d3; border-radius: 20px; }
.patient-form__summary { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.patient-form__summary span { padding: 6px 9px; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .61rem; font-weight: 700; }
.patient-form__fields { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 12px; margin-top: 20px; }
.patient-form__fields label > small { color: var(--muted); font-size: .58rem; line-height: 1.45; }
.patient-form__contact-owner { grid-column: 1 / -1; margin: 3px 0 0; padding: 14px 15px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 12px; }
.patient-form__contact-owner legend { padding: 0 5px; color: var(--navy); font-size: .65rem; font-weight: 780; }
.patient-form__contact-options { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 3px; }
.patient-form__contact-options label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .64rem; line-height: 1.45; cursor: pointer; }
.patient-form__contact-options input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--sage-dark); }
.patient-form__responsible { grid-column: 1 / -1; }
.patient-form__responsible[hidden] { display: none !important; }
.patient-form__trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.patient-form__consent { display: flex; align-items: flex-start; gap: 9px; margin: 17px 0; color: var(--muted); font-size: .64rem; line-height: 1.5; }
.patient-form__consent input { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; accent-color: var(--sage-dark); }
.patient-form .button { min-height: 48px; cursor: pointer; }

.booking-confirmation { overflow: hidden; display: grid; grid-template-columns: 52px minmax(0, 1fr) 150px; align-items: start; gap: 17px; margin-top: 25px; padding: 23px; background: var(--mint); border: 1px solid #bcdac3; border-radius: 20px; }
.booking-confirmation > span { display: grid; width: 52px; height: 52px; place-items: center; color: var(--white); background: var(--sage-dark); border-radius: 50%; font-size: 1.15rem; font-weight: 850; }
.booking-confirmation__mascot { width: 150px; height: 150px; align-self: end; margin: -9px 0 -23px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 12px 16px rgba(11,47,104,.12)); }
.booking-confirmation-details { color: #43604a; }
#booking-confirmation-details { margin-top: 8px; color: #43604a; font-size: .7rem; line-height: 1.6; }
.booking-confirmation__email { margin: 10px 0 0 !important; color: #43604a !important; font-size: .67rem !important; font-weight: 600 !important; letter-spacing: 0 !important; line-height: 1.6; text-transform: none !important; }
.booking-calendar-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.booking-calendar-actions .button { min-height: 42px; padding: 9px 15px; font-size: .62rem; }

.availability-rules { position: relative; overflow: hidden; padding: 32px 27px; color: var(--white); background: linear-gradient(155deg, var(--navy-deep), var(--navy)); border-radius: 12px 32px 12px 32px; box-shadow: 0 24px 60px rgba(11,47,104,.18); }
.availability-rules::after { position: absolute; right: -80px; bottom: -90px; width: 210px; height: 210px; content: ""; border: 34px solid rgba(242,190,149,.1); border-radius: 50%; }
.availability-rules__eyebrow { margin: 0 0 9px; color: var(--peach); font-size: .61rem; font-weight: 830; letter-spacing: .08em; text-transform: uppercase; }
.availability-rules h3 { margin: 0; color: var(--white); font-size: 1.3rem; line-height: 1.4; }
.availability-rules ol { position: relative; z-index: 1; display: grid; gap: 0; margin: 23px 0 0; padding: 0; list-style: none; }
.availability-rules li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.13); }
.availability-rules li > span { display: grid; width: 36px; height: 36px; place-items: center; color: var(--navy); background: var(--peach); border-radius: 50%; font-size: .65rem; font-weight: 850; }
.availability-rules li:nth-child(2) > span { background: var(--mint); }
.availability-rules li:nth-child(3) > span { background: var(--sky); }
.availability-rules strong { display: block; color: var(--white); font-size: .72rem; }
.availability-rules li p { margin: 3px 0 0; color: rgba(255,255,255,.68); font-size: .63rem; line-height: 1.55; }
.availability-rules__safe { position: relative; z-index: 1; display: flex; gap: 9px; margin: 18px 0 0; padding: 13px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; font-size: .62rem; line-height: 1.55; }
.availability-rules__safe span { color: var(--peach); font-size: .9rem; }

@keyframes availability-pulse { 50% { opacity: .45; transform: scale(.88); } }

.booking-directory { background: var(--white); }
.booking-flow__specialists { min-width: 0; scroll-margin-top: 110px; }
.booking-flow__specialists.has-selection .booking-directory__heading,
.booking-flow__specialists.has-selection .booking-filters { display: none; }
.booking-directory__heading { margin-bottom: 29px; }

.booking-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.booking-filter { min-height: 44px; padding: 9px 18px; color: var(--muted); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .76rem; font-weight: 760; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.booking-filter:hover { color: var(--navy); border-color: #bfcfda; transform: translateY(-1px); }
.booking-filter.is-active { color: var(--white); background: var(--navy); border-color: var(--navy); }

.booking-layout { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; }
.booking-help { position: sticky; top: 112px; padding: 27px; color: var(--white); background: linear-gradient(150deg, var(--navy-deep), var(--navy)); border-radius: 28px 10px 28px 10px; box-shadow: 0 20px 45px rgba(11,47,104,.18); }
.booking-help__eyebrow { margin: 0 0 8px; color: var(--peach); font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.booking-help h3 { margin: 0 0 23px; color: var(--white); font-size: 1.28rem; line-height: 1.35; }
.booking-help__item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.13); }
.booking-help__item > span { display: grid; width: 42px; height: 42px; place-items: center; color: var(--navy); background: var(--peach); border-radius: 50%; font-size: .72rem; font-weight: 850; }
.booking-help__item:nth-of-type(3) > span { background: var(--mint); }
.booking-help__item p { margin: 0; color: rgba(255,255,255,.72); font-size: .72rem; line-height: 1.55; }
.booking-help__item strong { display: block; margin-bottom: 3px; color: var(--white); font-size: .78rem; }
.booking-help__note { margin: 17px 0; color: rgba(255,255,255,.59); font-size: .65rem; line-height: 1.55; }
.booking-help > a { color: var(--white); font-size: .7rem; font-weight: 760; text-decoration: none; }
.booking-help > a:hover { text-decoration: underline; }

.booking-cards { display: grid; min-width: 0; gap: 18px; }
.booking-card[hidden] { display: none; }
.booking-card { position: relative; overflow: hidden; min-width: 0; padding: 27px; background: linear-gradient(135deg, #fff, var(--cream)); border: 1px solid var(--line); border-radius: 25px 10px 25px 10px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.booking-card:hover { border-color: #c6d5df; box-shadow: 0 18px 42px rgba(11,47,104,.09); transform: translateY(-2px); }
.booking-card--active { background: radial-gradient(circle at 100% 0, rgba(116,173,107,.14), transparent 28%), linear-gradient(135deg, #fff, #f8fcf9); border-color: #cde1d1; }
.booking-card.is-selected { background: radial-gradient(circle at 100% 0, rgba(116,173,107,.2), transparent 32%), linear-gradient(135deg, #fff, #f5fbf6); border-color: var(--sage); box-shadow: 0 18px 42px rgba(56,111,64,.12); }
.booking-card.is-selected::after { position: absolute; top: 14px; right: 14px; display: grid; width: 27px; height: 27px; place-items: center; color: var(--white); background: var(--sage-dark); border-radius: 50%; content: "✓"; font-size: .65rem; font-weight: 850; }
.booking-card__header { display: grid; grid-template-columns: 58px minmax(0, 1fr) 180px auto; align-items: center; gap: 15px; }
.booking-card__initials { display: grid; width: 58px; height: 58px; place-items: center; color: var(--white); background: var(--navy); border: 5px solid #fff; border-radius: 50%; box-shadow: 0 9px 22px rgba(11,47,104,.12); font-size: .8rem; font-weight: 850; }
.booking-card__logo { box-sizing: border-box; overflow: hidden; display: flex; width: 180px; height: 116px; align-items: center; justify-content: center; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.booking-card__logo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: center; opacity: 1; }
.booking-card__initials--sky { color: var(--navy); background: var(--sky); }
.booking-card__initials--peach { color: #8a543d; background: var(--peach-soft); }
.booking-card__initials--sage { color: #376638; background: var(--mint); }
.booking-card__initials--mint { color: #33766b; background: #dff3ee; }
.booking-card__initials--blue { background: var(--blue); }
.booking-card__initials--sand { color: #755d32; background: #f5ecd7; }
.booking-card__header p { margin: 0 0 3px; color: var(--sage-dark); font-size: .64rem; font-weight: 830; letter-spacing: .065em; line-height: 1.4; text-transform: uppercase; }
.booking-card__header h3 { margin: 0; color: var(--navy-deep); font-size: 1.16rem; line-height: 1.35; }
.booking-availability { padding: 7px 10px; color: #687683; background: #f4f6f7; border: 1px solid var(--line); border-radius: 999px; font-size: .58rem; font-weight: 780; white-space: nowrap; }
.booking-availability--active { color: #376638; background: var(--mint); border-color: #c8e3ce; }

.booking-card__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.booking-card__meta p { display: grid; min-height: 96px; align-content: center; gap: 7px; margin: 0; padding: 17px 19px; background: linear-gradient(145deg, #fff, #f5faf7); border: 2px solid #d5e4dc; border-radius: 16px; box-shadow: 0 10px 24px rgba(11,47,104,.055); }
.booking-card__meta p:nth-child(2) { background: linear-gradient(145deg, #fff, #f3f8fc); border-color: #d5e3ed; }
.booking-card__meta p:nth-child(3) { background: linear-gradient(145deg, #fff, #fff7f1); border-color: #f0ddd0; }
.booking-card__meta strong { color: var(--sage-dark); font-size: .78rem; font-weight: 850; letter-spacing: .045em; line-height: 1.25; text-transform: uppercase; }
.booking-card__meta span { color: var(--navy-deep); font-size: 1rem; font-weight: 720; line-height: 1.35; }

.booking-card__services { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.booking-card__services h4 { margin: 0 0 12px; color: var(--navy-deep); font-size: .82rem; }
.booking-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.booking-option { display: grid; gap: 3px; min-height: 68px; padding: 12px 15px; color: var(--white); text-align: left; background: var(--navy); border: 0; border-radius: 13px; font: inherit; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.booking-option:hover { filter: brightness(1.08); box-shadow: 0 10px 24px rgba(11,47,104,.16); transform: translateY(-2px); }
.booking-option:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }
.booking-option--green { color: #244f2d; background: var(--mint); border: 1px solid #c8e3ce; }
.booking-option span { font-size: .78rem; font-weight: 820; }
.booking-option small { color: rgba(255,255,255,.7); font-size: .62rem; }
.booking-option--green small { color: #527158; }
.booking-pending-service { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 11px; padding: 13px 15px; background: #f7f8f8; border: 1px dashed #cbd5dc; border-radius: 12px; }
.booking-pending-service div { display: grid; gap: 2px; }
.booking-pending-service strong { color: var(--navy); font-size: .7rem; }
.booking-pending-service div span { color: var(--muted); font-size: .62rem; }
.booking-pending-service > span { max-width: 230px; color: #77838e; font-size: .58rem; font-weight: 760; line-height: 1.45; text-align: right; }

.booking-card__pending { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.booking-card__pending p { margin: 0; color: var(--muted); font-size: .69rem; }
.booking-card__pending button { min-height: 44px; padding: 10px 16px; color: var(--navy); background: var(--white); border: 1px solid #cbd9e3; border-radius: 10px; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.booking-card__pending button:hover { color: var(--white); background: var(--navy); transform: translateY(-1px); }

.booking-faq { background: var(--cream); }
.booking-faq__grid { display: grid; grid-template-columns: .78fr 1.22fr; align-items: start; gap: 70px; }
.booking-faq__grid > div:first-child > p:not(.eyebrow) { color: var(--muted); }
.booking-faq__items { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.booking-faq details + details { border-top: 1px solid var(--line); }
.booking-faq summary { position: relative; padding: 21px 55px 21px 23px; color: var(--navy-deep); font-size: .8rem; font-weight: 780; cursor: pointer; list-style: none; }
.booking-faq summary::-webkit-details-marker { display: none; }
.booking-faq summary::after { position: absolute; top: 50%; right: 23px; content: "+"; color: var(--sage-dark); font-size: 1.4rem; transform: translateY(-50%); }
.booking-faq details[open] summary::after { content: "−"; }
.booking-faq details p { margin: -4px 23px 20px; color: var(--muted); font-size: .72rem; line-height: 1.65; }

.booking-modal[hidden] { display: none; }
.booking-modal { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 18px; }
.booking-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(7,31,71,.72); border: 0; cursor: pointer; backdrop-filter: blur(5px); }
.booking-modal__dialog { position: relative; z-index: 1; overflow: hidden; display: grid; width: min(960px, 100%); height: min(780px, calc(100vh - 36px)); grid-template-rows: auto auto minmax(0, 1fr); padding: 0; background: var(--white); border: 1px solid rgba(255,255,255,.75); border-radius: 25px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.booking-modal__dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 23px 13px; }
.booking-modal__dialog header span { color: var(--sage-dark); font-size: .62rem; font-weight: 830; letter-spacing: .07em; text-transform: uppercase; }
.booking-modal__dialog h2 { margin: 2px 0 0; color: var(--navy-deep); font-size: 1.35rem; }
.booking-modal__close { display: grid; width: 42px; height: 42px; place-items: center; color: var(--navy); background: var(--cream); border: 1px solid var(--line); border-radius: 50%; font: inherit; font-size: 1.6rem; cursor: pointer; }
.booking-modal__dialog > p { margin: 0; padding: 0 23px 15px; color: var(--muted); font-size: .68rem; }
.booking-modal iframe { width: 100%; height: 100%; min-height: 0; background: #fff; border: 0; border-top: 1px solid var(--line); }
body.booking-modal-open { overflow: hidden; }

@media (max-width: 920px) {
  .booking-hero__grid { grid-template-columns: 1fr; gap: 45px; }
  .booking-hero__assistant { max-width: 760px; }
  .booking-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking-steps article { grid-template-columns: 1fr; align-content: start; }
  .booking-layout { grid-template-columns: 1fr; }
  .availability-engine__shell { grid-template-columns: 1fr; }
  .availability-rules { border-radius: 12px 27px 12px 27px; }
  .availability-rules ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .availability-rules li { grid-template-columns: 1fr; align-content: start; border-top: 0; }
  .booking-help { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
  .booking-help__eyebrow, .booking-help h3, .booking-help__note, .booking-help > a { grid-column: 1 / -1; }
  .booking-faq__grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 640px) {
  .booking-hero { padding: 50px 0 62px; }
  .booking-hero h1 { font-size: clamp(2.35rem, 11vw, 3.15rem); }
  .booking-hero__copy > p:not(.eyebrow, .booking-hero__privacy) { font-size: .91rem; }
  .booking-hero__actions { align-items: stretch; flex-direction: column; }
  .booking-hero__actions .button { width: 100%; }
  .booking-hero__actions .text-link { align-self: center; }
  .booking-guide { grid-template-columns: 76px minmax(0, 1fr); padding: 11px 14px 11px 11px; border-radius: 19px; }
  .booking-guide__portrait { width: 76px; height: 76px; }
  .booking-guide strong { font-size: .92rem; }
  .booking-steps { display: grid; grid-template-columns: 1fr; padding: 12px; }
  .booking-steps article { grid-template-columns: 48px minmax(0, 1fr); padding: 14px; }
  .booking-steps article > span { width: 48px; height: 48px; }

  .availability-engine__main { padding: 24px 18px; border-radius: 24px 9px 24px 9px; }
  .availability-engine__header { flex-direction: column; gap: 16px; }
  .availability-engine__badge { align-self: flex-start; }
  .availability-search { grid-template-columns: 1fr; }
  .booking-date-calendar { right: auto; left: 0; width: min(100%, 370px); }
  .availability-results { padding: 18px 14px; }
  .availability-results__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .availability-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .patient-form { padding: 20px 16px; }
  .patient-form__fields { grid-template-columns: 1fr; }
  .patient-form__contact-options { align-items: flex-start; flex-direction: column; gap: 10px; }
  .patient-form .button { width: 100%; }
  .booking-confirmation { grid-template-columns: 42px minmax(0, 1fr); padding: 19px 15px; }
  .booking-confirmation > span { width: 42px; height: 42px; }
  .booking-confirmation__mascot { grid-column: 1 / -1; width: 140px; height: 140px; justify-self: center; margin: 5px 0 -19px; }
  .availability-rules { padding: 27px 22px; }
  .availability-rules ol { grid-template-columns: 1fr; gap: 0; }
  .availability-rules li { grid-template-columns: 36px minmax(0, 1fr); border-top: 1px solid rgba(255,255,255,.13); }

  .booking-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -14px; padding: 0 14px 7px 0; scrollbar-width: thin; }
  .booking-filter { flex: 0 0 auto; }
  .booking-help { grid-template-columns: 1fr; padding: 23px; }
  .booking-help__eyebrow, .booking-help h3, .booking-help__note, .booking-help > a { grid-column: 1; }
  .booking-card { padding: 21px 18px; border-radius: 21px 8px 21px 8px; }
  .booking-card__header { grid-template-columns: 52px minmax(0, 1fr); }
  .booking-card__initials { width: 52px; height: 52px; }
  .booking-card__logo { width: min(72%, 230px); height: 112px; grid-column: 1 / -1; justify-self: center; margin-top: 7px; }
  .booking-availability { grid-column: 1 / -1; justify-self: start; }
  .booking-card__header h3 { font-size: 1.02rem; }
  .booking-card__meta { grid-template-columns: 1fr; gap: 9px; margin-top: 20px; }
  .booking-card__meta p { display: grid; min-height: 0; gap: 5px; padding: 14px 16px; }
  .booking-card__meta strong { font-size: .72rem; }
  .booking-card__meta span { font-size: .91rem; }
  .booking-options { grid-template-columns: 1fr; }
  .booking-pending-service, .booking-card__pending { align-items: flex-start; flex-direction: column; }
  .booking-pending-service > span { max-width: none; text-align: left; }
  .booking-card__pending button { width: 100%; }

  .booking-modal { padding: 0; }
  .booking-modal__dialog { width: 100%; height: 100dvh; border-radius: 0; }
  .booking-modal__dialog > header { padding: 16px 16px 10px; }
  .booking-modal__dialog > p { padding: 0 16px 12px; }
  .booking-modal__dialog h2 { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-filter, .booking-card, .booking-option, .availability-slot, .doctor-credentials__logo { transition: none; }
  .availability-status.is-loading > span { animation: none; }
}
