/* =====================================================================
   SM.Privé — Booking funnel + booking confirmation (thank-you) page
   Scoped under .booking-page so it never leaks into the legacy "mad"
   theme. Loads after style.css / responsive.css / brand.css.
   Same token set as the other brand pages (see minor-procedures.css).
   ===================================================================== */

.booking-page {
  --navy:#163d6c; --navy-2:#0f2c50; --navy-soft:#3f5680;
  --blue:#4f78ab; --blue-soft:#5189cd;
  --coral:#ed8d73; --coral-2:#e07555; --coral-soft:#f4b6a6;
  --green:#b2ceae; --green-soft:#dcebd8; --rose:#f5d8d2; --peau:#faebe6; --sable:#eadaca; --cyan:#79bad7; --ciel:#acd3e5;
  --ink:#33425c; --ink-soft:#5d6a82; --ink-faint:#94a0b4;
  --paper:#ffffff; --page:#ffffff; --cream:#fbf2e7; --mist:#f7f8fa; --nuage:#f3f3ef;
  --rule:#e7e7e1; --rule-2:#eef0ea; --tag-border:#d4d4cb; --gold:#bfa14a;
  --danger:#b3261e; --danger-bg:#fbeaea; --danger-rule:#eec2c2;
  --shadow-sm:0 1px 0 rgba(22,61,108,.04), 0 1px 2px rgba(22,61,108,.05);
  --shadow-md:0 18px 48px -28px rgba(22,61,108,.34);
  --radius:16px; --radius-sm:12px; --pill:999px;
  --serif:"Fraunces", Georgia, serif;
  --sans:"Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --ui:"Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.booking-page * { box-sizing:border-box; }
.booking-page {
  margin:0; background:var(--page); color:var(--ink); font-family:var(--sans);
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
.booking-page img { max-width:100%; display:block; }
.booking-page a { color:var(--blue); }
.booking-page p { text-wrap:pretty; }
.booking-page .wrap { width:100%; max-width:1180px; margin:0 auto; padding-inline:40px; }
.booking-page .wrap--narrow { max-width:760px; }
.booking-page .wrap--form { max-width:860px; }

.booking-page h1, .booking-page h2, .booking-page h3, .booking-page h4 {
  font-family:var(--serif); color:var(--navy); font-weight:600; letter-spacing:-.003em; margin:0; line-height:1.15;
}
.booking-page h1 { font-size:clamp(34px,4vw,50px); line-height:1.04; }
.booking-page h2 { font-size:clamp(24px,2.4vw,30px); }
.booking-page h3 { font-size:22px; }
.booking-page h4 { font-size:19px; }
.booking-page strong, .booking-page b { font-weight:600; }
.booking-page .kicker {
  font-family:var(--ui); font-size:12px; letter-spacing:.18em; text-transform:uppercase; font-weight:700;
  color:var(--coral-2); margin:0 0 14px;
}
.booking-page .hidden { display:none !important; }

/* ---------------------------------------------------------------- hero */
.booking-page .hero { background:#fbe7dd; padding:56px 0 48px; }
.booking-page .hero .wrap { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; }
.booking-page .hero .inner { max-width:640px; }
.booking-page .hero__sub { max-width:52ch; margin:16px 0 0; color:var(--ink-soft); font-size:17px; line-height:1.6; }
.booking-page .hero__meta { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; flex:none; }
.booking-page .hero__pill {
  display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:var(--pill);
  background:rgba(255,255,255,.72); border:1px solid rgba(22,61,108,.10);
  font-family:var(--ui); font-size:13.5px; font-weight:500; color:var(--navy);
}
.booking-page .hero__pill b { font-weight:700; }
.booking-page .hero__pill svg { flex:none; color:var(--coral-2); }
@media (max-width:860px) {
  .booking-page .hero { padding:40px 0 36px; }
  .booking-page .hero .wrap { flex-direction:column; align-items:flex-start; gap:22px; }
  .booking-page .hero__meta { justify-content:flex-start; }
}

/* ---------------------------------------------------------------- flow */
.booking-page .flow { padding:48px 0 96px; }
.booking-page .flow form { display:flex; flex-direction:column; gap:28px; }

.booking-page .bk-step {
  background:var(--paper); border:1px solid var(--rule); border-radius:var(--radius);
  box-shadow:var(--shadow-sm); padding:30px 34px 34px; scroll-margin-top:110px;
  transition:box-shadow .25s, border-color .25s;
}
.booking-page .bk-step__head { display:flex; align-items:center; gap:16px; transition:opacity .3s; }
.booking-page .bk-step__num {
  flex:none; width:38px; height:38px; border-radius:50%; background:var(--navy); color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-weight:600; font-size:18px; line-height:1;
}
.booking-page .bk-step__hint { margin:8px 0 0 54px; color:var(--ink-soft); font-size:14.5px; }
.booking-page .bk-step__body { margin-top:22px; }
/* Steps whose content hasn't been unlocked yet sit quietly in the background. */
.booking-page .bk-step:has(> .bk-step__body > .bk-reveal:not(.open)) .bk-step__head,
.booking-page .bk-step:has(> .bk-step__body > .timeslots:empty) .bk-step__head { opacity:.45; }
.booking-page .bk-step:has(> .bk-step__body > .bk-reveal:not(.open)) .bk-step__num,
.booking-page .bk-step:has(> .bk-step__body > .timeslots:empty) .bk-step__num { background:var(--ink-faint); }
.booking-page .bk-step:has(> .bk-step__body > .bk-reveal:not(.open)) .bk-step__body,
.booking-page .bk-step:has(> .bk-step__body > .timeslots:empty) .bk-step__body { margin-top:0; }

/* Progressive reveal (the JS toggles .open on these containers). */
.booking-page .bk-reveal {
  opacity:0; height:0; overflow:hidden; transform:translateY(10px);
  transition:opacity .35s ease, transform .35s ease;
}
.booking-page .bk-reveal.open { opacity:1; height:auto; overflow:visible; transform:none; }

/* ---------------------------------------------------------------- choice cards (clinic / provider) */
.booking-page .bk-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.booking-page .bk-choice {
  position:relative; display:block; padding:20px 22px 20px 58px; border-radius:var(--radius-sm);
  border:1.5px solid var(--rule); background:var(--paper); cursor:pointer; text-align:left;
  transition:border-color .2s, background .2s, box-shadow .2s, transform .15s;
}
.booking-page .bk-choice:hover { border-color:var(--navy-soft); transform:translateY(-1px); box-shadow:var(--shadow-md); }
.booking-page .bk-choice__check {
  position:absolute; left:20px; top:22px; width:22px; height:22px; border-radius:50%;
  border:1.5px solid var(--tag-border); background:#fff; display:inline-flex; align-items:center; justify-content:center;
  color:#fff; transition:background .2s, border-color .2s;
}
.booking-page .bk-choice__check svg { width:13px; height:13px; opacity:0; transition:opacity .2s; }
.booking-page .bk-choice h4 { font-size:18px; margin:0 0 4px; color:var(--navy); font-weight:600; }
.booking-page .bk-choice p { margin:0; font-size:14px; line-height:1.5; color:var(--ink-soft); }
.booking-page .bk-choice.selected_location,
.booking-page .bk-choice.is-selected {
  border-color:var(--navy); background:#f4f7fb; box-shadow:0 0 0 3px rgba(22,61,108,.08);
}
.booking-page .bk-choice.selected_location .bk-choice__check,
.booking-page .bk-choice.is-selected .bk-choice__check { background:var(--navy); border-color:var(--navy); }
.booking-page .bk-choice.selected_location .bk-choice__check svg,
.booking-page .bk-choice.is-selected .bk-choice__check svg { opacity:1; }
.booking-page .bk-choice.unclickable { pointer-events:none; opacity:.5; }
/* A lone clinic is pre-selected and not a real choice: no tick box, no hover lift. */
.booking-page .bk-choices--single .bk-choice { padding-left:22px; cursor:default; }
.booking-page .bk-choices--single .bk-choice:hover { transform:none; box-shadow:0 0 0 3px rgba(22,61,108,.08); }
.booking-page .bk-choices--single .bk-choice__check { display:none; }

.booking-page .provider_card {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:18px 22px; border:1.5px solid var(--rule); border-radius:var(--radius-sm); background:var(--paper);
  margin-bottom:12px; transition:border-color .2s, box-shadow .2s;
}
.booking-page .provider_card:last-child { margin-bottom:0; }
.booking-page .provider_card:has(.provider_selected) { border-color:var(--navy); background:#f4f7fb; box-shadow:0 0 0 3px rgba(22,61,108,.08); }
.booking-page .provider_card h4 { font-size:18px; margin:0; line-height:1.25; }
.booking-page .provider_card h4 .bk-provider__sched {
  display:block; margin-top:4px; font-family:var(--ui); font-size:13.5px; font-weight:500; color:var(--ink-soft);
}
.booking-page .provider_card .select_provider { flex:none; }

@media (max-width:720px) {
  .booking-page .bk-choices { grid-template-columns:1fr; }
  .booking-page .provider_card { flex-direction:column; align-items:flex-start; }
  .booking-page .provider_card .select_provider { width:100%; }
}

/* ---------------------------------------------------------------- buttons */
.booking-page .bk-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:50px; padding:0 28px; font-family:var(--ui); font-size:12px; font-weight:700;
  letter-spacing:.13em; text-transform:uppercase; border-radius:var(--pill); white-space:nowrap;
  border:1.5px solid var(--navy); background:var(--navy); color:#fff; text-decoration:none; cursor:pointer;
  transition:background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.booking-page .bk-btn:hover { background:var(--navy-2); border-color:var(--navy-2); color:#fff; transform:translateY(-1px); box-shadow:var(--shadow-md); }
.booking-page .bk-btn--ghost { background:transparent; color:var(--navy); }
.booking-page .bk-btn--ghost:hover { background:var(--navy); color:#fff; }
.booking-page .bk-btn--sm { height:42px; padding:0 20px; font-size:11px; }
.booking-page .bk-btn--lg { height:56px; padding:0 38px; font-size:13px; }
.booking-page .bk-btn.provider_selected { background:var(--navy); color:#fff; border-color:var(--navy); }
.booking-page .bk-btn.provider_selected::before {
  content:""; width:7px; height:7px; border-radius:50%; background:var(--coral); flex:none;
}
.booking-page .bk-btn[disabled], .booking-page .bk-btn[disabled]:hover {
  background:var(--rule); border-color:var(--rule); color:var(--ink-faint); cursor:not-allowed;
  transform:none; box-shadow:none;
}

/* ---------------------------------------------------------------- form fields */
.booking-page .bk-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 20px; }
.booking-page .bk-field { display:flex; flex-direction:column; }
.booking-page .bk-label {
  display:block; margin:0 0 8px; font-family:var(--ui); font-size:12px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink-soft); cursor:default;
}
.booking-page .bk-label .req { color:var(--coral-2); }
.booking-page .bk-input {
  display:block; width:100%; height:52px; padding:0 16px; margin:0;
  font-family:var(--sans); font-size:15.5px; font-weight:500; line-height:1.4; color:var(--navy);
  background:#fff; border:1.5px solid rgba(22,61,108,.18); border-radius:var(--radius-sm);
  -webkit-appearance:none; appearance:none; outline:none; box-shadow:none;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.booking-page .bk-input::placeholder { color:rgba(22,61,108,.38); font-weight:400; }
.booking-page .bk-input:hover { border-color:rgba(22,61,108,.32); }
.booking-page .bk-input:focus { border-color:var(--navy); box-shadow:0 0 0 3px rgba(22,61,108,.10); }
.booking-page .bk-input[readonly] { background:var(--mist); color:var(--ink-soft); border-color:var(--rule); }
.booking-page .bk-input.error { border-color:var(--danger) !important; box-shadow:0 0 0 3px rgba(179,38,30,.10); }
.booking-page .error_msg { display:block; min-height:0; margin-top:6px; font-size:13px; color:var(--danger); }
.booking-page .error_msg:empty { display:none; }
@media (max-width:620px) { .booking-page .bk-fields { grid-template-columns:1fr; } }

/* ---------------------------------------------------------------- notes / alerts */
.booking-page .bk-note {
  display:flex; gap:12px; align-items:flex-start; padding:14px 18px; border-radius:var(--radius-sm);
  background:var(--peau); font-family:var(--ui); font-size:14px; line-height:1.55; color:var(--ink);
}
.booking-page .bk-note svg { flex:none; margin-top:2px; color:var(--coral-2); }
.booking-page .bk-note p { margin:0; }
.booking-page .bk-alert {
  display:flex; gap:12px; align-items:flex-start; margin-bottom:28px; padding:14px 18px;
  border-radius:var(--radius-sm); background:var(--danger-bg); border:1px solid var(--danger-rule);
  color:#7a1f1a; font-size:14.5px; line-height:1.5;
}
.booking-page .bk-alert svg { flex:none; margin-top:2px; }
.booking-page .bk-alert p { margin:0; }

/* ---------------------------------------------------------------- summary (confirm details) */
.booking-page .bk-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.booking-page .bk-summary--single { grid-template-columns:1fr; }
.booking-page .bk-summary__col { background:var(--nuage); border-radius:var(--radius-sm); padding:6px 22px 10px; }
.booking-page .bk-summary__title {
  font-family:var(--ui); font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--coral-2); margin:16px 0 6px;
}
.booking-page .bk-summary__row {
  display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:11px 0;
  border-top:1px solid rgba(22,61,108,.09); margin:0;
}
.booking-page .bk-summary__row:first-of-type { border-top:0; }
.booking-page .bk-summary__label {
  flex:none; font-family:var(--ui); font-size:11.5px; font-weight:600; letter-spacing:.10em;
  text-transform:uppercase; color:rgba(22,61,108,.55);
}
.booking-page .bk-summary__val { font-size:15px; font-weight:500; color:var(--navy); text-align:right; }
.booking-page .bk-summary__val:empty::before { content:"\2014"; color:var(--ink-faint); }
.booking-page .bk-summary__row--total .bk-summary__val { font-family:var(--serif); font-size:22px; font-weight:600; }
.booking-page #details_timeslot::first-letter { text-transform:uppercase; }
.booking-page .bk-summary__note { margin:10px 0 6px; font-size:13px; color:var(--ink-soft); line-height:1.5; }
@media (max-width:720px) {
  .booking-page .bk-summary { grid-template-columns:1fr; }
  .booking-page .bk-summary__row { flex-direction:column; align-items:flex-start; gap:2px; }
  .booking-page .bk-summary__val { text-align:left; }
}

/* ---------------------------------------------------------------- payment */
.booking-page .bk-payment { border:1.5px solid var(--rule); border-radius:var(--radius-sm); padding:22px; background:#fff; }
.booking-page #payment-message { margin-top:12px; font-size:14px; color:var(--danger); }
.booking-page .bk-details {
  margin-top:16px; border:1px solid var(--rule); border-radius:var(--radius-sm); background:var(--mist);
  font-size:14px; color:var(--ink-soft); line-height:1.55;
}
.booking-page .bk-details summary {
  cursor:pointer; list-style:none; padding:14px 18px; font-family:var(--ui); font-weight:600; color:var(--navy);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.booking-page .bk-details summary::-webkit-details-marker { display:none; }
.booking-page .bk-details summary::after {
  content:""; width:8px; height:8px; border-right:1.5px solid var(--navy); border-bottom:1.5px solid var(--navy);
  transform:rotate(45deg); transition:transform .2s; flex:none; margin-right:4px;
}
.booking-page .bk-details[open] summary::after { transform:rotate(-135deg); }
.booking-page .bk-details__body { padding:0 18px 16px; }
.booking-page .bk-details__body p { margin:0 0 8px; }
.booking-page .bk-details__body p:last-child { margin-bottom:0; }

/* ---------------------------------------------------------------- submit row */
.booking-page .bk-submit { display:flex; flex-wrap:wrap; align-items:center; gap:18px 28px; padding-top:6px; }
.booking-page .bk-submit__hint { margin:0; font-size:13.5px; color:var(--ink-soft); max-width:46ch; }
.booking-page .bk-submit__hint svg { vertical-align:-3px; margin-right:6px; color:var(--coral-2); }
@media (max-width:620px) { .booking-page .bk-submit .bk-btn { width:100%; } }

/* ---------------------------------------------------------------- busy overlay */
.overlay {
  position:fixed; inset:0; z-index:9999; display:none; align-items:center; justify-content:center;
  background:rgba(22,61,108,.32); backdrop-filter:blur(2px);
}
.bk-spinner {
  width:54px; height:54px; border-radius:50%; border:4px solid rgba(255,255,255,.45); border-top-color:#ed8d73;
  animation:bk-spin .9s linear infinite;
}
@keyframes bk-spin { to { transform:rotate(360deg); } }

/* ---------------------------------------------------------------- confirmation (thank-you) page */
.booking-page .done { padding:64px 0 104px; background:var(--cream); }
.booking-page .done__card {
  background:#fff; border-radius:20px; overflow:hidden; box-shadow:0 24px 60px -30px rgba(22,61,108,.32);
}
.booking-page .done__bar { height:6px; background:var(--green); }
.booking-page .done__pad { padding:44px 48px 40px; text-align:center; }
.booking-page .done__emblem {
  width:72px; height:72px; border-radius:50%; background:var(--green-soft); color:var(--navy);
  display:inline-flex; align-items:center; justify-content:center;
}
.booking-page .done__eyebrow {
  margin:22px 0 0; font-family:var(--ui); font-size:12px; font-weight:700; letter-spacing:.18em;
  text-transform:uppercase; color:var(--coral-2);
}
.booking-page .done h1 { margin:12px 0 0; font-size:clamp(34px,4.4vw,46px); }
.booking-page .done__lede { margin:16px auto 0; max-width:48ch; font-size:17px; line-height:1.6; color:var(--ink-soft); }
.booking-page .done__tags { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:22px 0 0; }
.booking-page .done__tag {
  display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:var(--pill);
  background:var(--nuage); font-family:var(--ui); font-size:13.5px; font-weight:500; color:var(--navy);
}
.booking-page .done__tag svg { flex:none; color:var(--coral-2); }
.booking-page .done__actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:32px 0 0; padding-top:28px; border-top:1px solid var(--rule); }
.booking-page .done__sign {
  margin:34px 0 0; font-family:var(--serif); font-style:italic; font-weight:600; font-size:17px; color:var(--navy);
}
.booking-page .done__contact { margin:10px 0 0; font-size:13.5px; color:var(--ink-soft); }
.booking-page .done__contact a { color:var(--navy); text-decoration:none; font-weight:600; }
.booking-page .done__contact a:hover { text-decoration:underline; }
@media (max-width:720px) {
  .booking-page .done { padding:36px 0 72px; }
  .booking-page .done__pad { padding:34px 24px 30px; }
  .booking-page .done__actions .bk-btn { width:100%; }
}

/* ---------------------------------------------------------------- narrow screens */
@media (max-width:760px) {
  .booking-page .wrap { padding-inline:22px; }
  .booking-page .flow { padding:32px 0 72px; }
  .booking-page .bk-step { padding:22px 20px 24px; border-radius:14px; }
  .booking-page .bk-step__hint { margin-left:0; }
}

/* ---------------------------------------------------------------- calendar fragment, inside the booking page */
.booking-page .calendar-wrapper { margin-inline:0; row-gap:28px; align-items:flex-start; }
.booking-page .calendar-wrapper > .col-6 { padding-inline:0; }
.booking-page .calendar-wrapper > .calendar_container { padding-right:28px; }
.booking-page .calendar-wrapper > .slots-wrapper { padding-left:28px; border-left:1px solid var(--rule); }
.booking-page .slots { max-width:none; }
@media (max-width:900px) {
  .booking-page .calendar-wrapper > .col-6 { flex:0 0 100%; max-width:100%; }
  .booking-page .calendar-wrapper > .calendar_container { padding-right:0; }
  .booking-page .calendar-wrapper > .slots-wrapper { padding-left:0; border-left:0; padding-top:24px; border-top:1px solid var(--rule); }
}
/* Once the button is live, the "complete the steps" hint has done its job. */
.booking-page .bk-submit:has(.submit-form:not([disabled])) .bk-submit__hint { display:none; }

/* Timeslot panel: on desktop it is pinned to the calendar's exact height and
   scrolls inside, so a day with many openings never stretches the step.
   On narrow screens it stacks under the calendar with a fixed cap. */
.booking-page .slots-wrapper { display:flex; flex-direction:column; min-height:0; max-height:340px; }
.booking-page .slots {
  flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain;
  padding:2px 10px 8px 2px; align-content:flex-start;
  scrollbar-width:thin; scrollbar-color:rgba(22,61,108,.35) transparent;
}
.booking-page .slots::-webkit-scrollbar { width:6px; }
.booking-page .slots::-webkit-scrollbar-track { background:transparent; }
.booking-page .slots::-webkit-scrollbar-thumb { background:rgba(22,61,108,.35); border-radius:3px; }
@media (min-width:901px) {
  .booking-page .calendar-wrapper { position:relative; }
  .booking-page .calendar-wrapper > .slots-wrapper {
    position:absolute; top:0; right:0; bottom:0; width:50%; max-height:none;
  }
}
