.booking-page { min-height: 100vh; background: #f8fbfc; color: var(--ink-strong); }
.booking-width { width: min(calc(100% - 64px), 1080px); margin-inline: auto; }
.booking-header { background: #fff; border-bottom: 1px solid var(--line); }
.booking-bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.booking-brand { display: inline-flex; gap: 8px; align-items: center; font: 650 1.65rem/1 'Space Grotesk', sans-serif; letter-spacing: -.06em; color: var(--ink); }
.booking-brand img { width: 32px; height: 32px; }
.clinic-label { color: var(--text-muted); font-size: .85rem; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, .56fr); gap: clamp(28px, 5vw, 76px); align-items: start; padding: 30px 0 64px; }
.booking-page h1, .booking-page h2 { font-family: 'Space Grotesk', sans-serif; color: var(--ink-strong); }
.booking-page h1 { margin: 0; font-size: clamp(2.1rem, 4.1vw, 3.3rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.05; }
.booking-page h1:focus { outline: none; }
.booking-page h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.035em; }
.booking-page .intro { margin: 12px 0 28px; color: var(--text-muted); line-height: 1.6; max-width: 56ch; }
.quiet-link, .text-button { color: var(--accent); font: 600 .9rem/1.5 Inter, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.text-button { background: transparent; padding: 4px 0; }
.back-to-test { display: inline-block; padding: 5px 0; }
.booking-progress { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin: 24px 0 32px; padding: 0; }
.booking-progress li { padding-top: 8px; border-top: 3px solid var(--line); color: var(--text-muted); font-size: clamp(.69rem, 1.6vw, .85rem); }
.booking-progress li.complete { border-color: var(--line-teal); }
.booking-progress li[aria-current] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.form-heading, .review-line, .actions, .staff-record-head, .summary-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-heading { flex-wrap: wrap; margin-bottom: 15px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field-grid .wide { grid-column: 1/-1; }
.field-grid label, #payment-form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 600; min-width: 0; }
.booking-page input:not([type=radio]):not([type=checkbox]), .booking-page select { width: 100%; min-width: 0; height: 46px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: white; font: 400 1rem/1.4 Inter, sans-serif; color: var(--ink-strong); }
.booking-page :is(input, select, button, a):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-height: 48px; padding: 12px 22px; background: var(--ink); color: #fff; border-radius: 25px; font: 600 .97rem/1.4 Inter, sans-serif; }
.primary:hover { background: var(--ink-strong); }
.primary [aria-hidden] { margin-left: 9px; }
#patient-form > .primary { margin-top: 24px; }
.booking-summary { overflow: hidden; margin-top: 38px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.summary-image { display: block; width: 100%; height: clamp(126px, 13vw, 165px); object-fit: cover; }
.summary-content { padding: clamp(20px, 3vw, 30px); }
.summary-label { display: block; margin: 0 0 8px; color: var(--accent); font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .085em; }
.summary-content h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.1; }
.summary-site { margin: 8px 0 22px; font-size: .91rem; line-height: 1.5; color: var(--text-muted); }
.summary-rows { margin: 0; }
.summary-rows > div { display: grid; gap: 4px; padding-bottom: 16px; }
.summary-rows dt, .record-fields dt { color: var(--text-muted); font-size: .88rem; }
.summary-rows dd, .record-fields dd { margin: 0; font-weight: 550; line-height: 1.5; }
.summary-total { padding-top: 16px; border-top: 1px solid var(--line); }
.summary-total strong { font: 650 1.8rem/1 'Space Grotesk', sans-serif; letter-spacing: -.05em; }
.booking-page fieldset { padding: 0; margin: 22px 0 0; border: 0; min-width: 0; }
.booking-page legend { padding: 0; margin-bottom: 12px; font-weight: 650; }
.slot-options { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-options label { position: relative; cursor: pointer; }
.slot-options input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.slot-options span { display: block; min-width: 80px; padding: 13px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; text-align: center; font-size: .91rem; }
.slot-options input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--mint-pale); color: var(--accent); font-weight: 650; }
.slot-options input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.calendar-field { display: grid; gap: 7px; max-width: 18rem; margin-top: 14px; font-size: .9rem; font-weight: 600; }
#availability-note:empty { margin: 0; }
#slot-form .primary:disabled { opacity: .55; }
.field-note { margin: 14px 0 22px; font-size: .88rem; line-height: 1.55; color: var(--text-muted); }
.actions { justify-content: flex-start; flex-wrap: wrap; gap: 12px 20px; }
.review-line { align-items: start; border-top: 1px solid var(--line); padding: 16px 0; }
.review-line h2 { margin-bottom: 7px; font-size: 1rem; }
.review-line strong, .review-line small { display: block; overflow-wrap: anywhere; }
.review-line strong { font-weight: 500; }
.review-line small { margin-top: 6px; color: var(--text-muted); font-size: .9rem; }
#payment-form { padding-top: 18px; border-top: 1px solid var(--line); }
#payment-error { color: #892d36; padding: 12px; border: 1px solid #e5b6b9; border-radius: 9px; background: #fff2f2; line-height: 1.5; }
.terms-choice { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 1.25rem; line-height: 1.5; }
.terms-choice input { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .15rem; }
.terms-choice a { text-decoration: underline; }
@media (max-width: 720px) {
  .booking-width { width: calc(100% - 36px); }
  .booking-bar { min-height: 62px; }
  .booking-layout { display: flex; flex-direction: column; gap: 20px; padding-top: 18px; }
  .booking-workspace, .booking-summary { width: 100%; }
  .booking-summary { order: -1; margin: 0; border-radius: 12px; }
  .summary-image, .summary-rows, .summary-label, .summary-total > span { display: none; }
  .summary-content { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 15px; gap: 4px 8px; }
  .summary-content h2 { font-size: 1.25rem; }
  .summary-site { margin: 0; grid-column: 1; font-size: .83rem; }
  .summary-total { grid-column: 2; grid-row: 1/3; border: 0; padding: 0; }
  .summary-total strong { font-size: 1.4rem; }
  .booking-progress { margin: 14px 0 24px; }
  .booking-page .intro { margin-bottom: 20px; }
  .staff-workspace { margin: 32px auto; }
  .staff-workspace .summary-label { display: block; }
}
@media (max-width: 430px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .record-fields > div { grid-template-columns: minmax(84px, .65fr) minmax(0,1.35fr); }
  .slot-options span { min-width: 76px; }
}
