/* ==========================================================================
   "Book a call" slide-out  (src/overlays/booking.html · js/booking.js)
   NOT IN THE FIGMA — ConversionCow's slide-out layout (Pete's reference) drawn
   with MX's designed parts; the template header lists the precedent of each.
   Desktop (>1024): a panel from the right, min(92%, 1760px) wide, full height,
   the page dimmed in the strip on the left; the side tab rides the panel's left
   edge (.booking__tab = the side tab's box, css/base.css .side-tab__tab, so the
   real tab can hide under it). Panel #111111 (Contact Pop Up 4148:2826); pitch
   column left (green rule + headline + intro, 2×2 benefits at the bottom);
   booking column right = the contact card (radius 21, #262222 → #111111 fill,
   3px #312e2e → #fff stroke), its body scrolls between the step header and
   the Back / Next bar.
   ≤1024: a full-screen sheet from the right that scrolls as one: headline,
   the form (sticky Back / Next bar), then the benefits; no tab (the side tab
   is desktop-only in the Figma); ≤640 the headline only, one column.
   Everything is scoped to .booking*, except html.booking-open .side-tab.
   States: .booking[hidden] (closed) · .booking.is-open (open, transitions run)
           .booking__step.is-current / .is-leaving (step fade) · .booking__service.is-selected
           .booking__field.is-invalid · .booking__card.is-sent (success)
           .booking__body.is-end (desktop: nothing more below, no fade) · .booking__form[aria-busy] (sending)
   ========================================================================== */

.booking {
  --bk-w: min(92%, 1760px);                /* ConversionCow ~92% at 1440; capped at 92% of the 1920 design */
  --bk-ease: cubic-bezier(.22, .61, .36, 1);
  --bk-slide: .65s;                        /* js/booking.js CLOSE_MS matches */
  --bk-pad: clamp(32px, 4.2vw, 80px);      /* pitch column sides */
  --bk-card-pad: clamp(24px, 3vw, 52px);   /* booking column sides */
  --bk-muted: rgba(255, 255, 255, .72);    /* secondary text: ≥ 7:1 on #111 / #262222 */
  --bk-dim: rgba(255, 255, 255, .55);      /* upcoming steps (the menu's 30% white fails AA at this size) */
  --bk-line: rgba(255, 255, 255, .16);     /* hairlines + tile borders */
  --bk-placeholder: rgba(255, 255, 255, .56);   /* contact pop-up placeholder */
  --bk-error: #ff7a7a;                     /* contact pop-up error red */
  position: fixed;
  inset: 0;
  z-index: 200;                            /* the contact pop-up's layer: above the header (100) and side tab (90) */
}
.booking[hidden] { display: none; }

/* The strip of page left uncovered: dimmed, click = close */
.booking__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .5s ease;
}
.booking.is-open .booking__scrim { opacity: 1; }

/* ---- Panel ------------------------------------------------------------------ */
.booking__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--bk-w);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "head     card"
    "benefits card";
  background: #111111;
  color: var(--fg);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .45);
  /* no overflow clipping here on desktop: the tab hangs outside the panel's left edge */
  transform: translateX(100%);
  transition: transform var(--bk-slide) var(--bk-ease);
  outline: 0;
}
.booking.is-open .booking__panel { transform: none; }   /* none, not translateX(0): ≤1024 the close button is position: fixed */

/* Content follows the slide a beat later (a short drift, not a second animation) */
.booking__head,
.booking__benefits,
.booking__card {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity .5s ease, transform .7s var(--bk-ease);
}
.booking__head { transition-delay: .12s; }
.booking__benefits { transition-delay: .2s; }
.booking__card { transition-delay: .18s; }
.booking.is-open .booking__head,
.booking.is-open .booking__benefits,
.booking.is-open .booking__card {
  opacity: 1;
  transform: none;
}

/* ---- Tab on the panel's edge (the side tab: 44×205, #63f9a2, radii 27 0 0 27) -- */
.booking__tab {
  position: absolute;
  top: 50%;
  right: 100%;                             /* closed panel → exactly where .side-tab sits (right 0, centred) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 44px;
  height: 205px;
  padding: 19px 0;
  border-radius: 27px 0 0 27px;
  background: var(--accent);
  color: var(--black);
  box-shadow: -10px 10px 28px rgba(0, 0, 0, .55), -1px 0 0 rgba(0, 0, 0, .15);
  transform: translateY(-50%);
  transition: transform .25s ease, box-shadow .25s ease;
}
.booking__tab:hover { transform: translate(-3px, -50%); box-shadow: -16px 12px 34px rgba(0, 0, 0, .6), -1px 0 0 rgba(0, 0, 0, .15); }
.booking__tab-arrow {
  width: 15px;
  height: 27px;
  transition: transform .5s var(--bk-ease) .15s;
}
.booking.is-open .booking__tab-arrow { transform: rotate(90deg); }   /* up (open me) → right (push back) */
.booking__tab-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 0.98;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
/* The real side tab hides under the panel's copy of it while the panel is out (js/booking.js keeps
   the class until the close slide has finished, so the two swap where they overlap exactly). */
html.booking-open .side-tab { visibility: hidden; }

/* ---- Pitch column ----------------------------------------------------------- */
.booking__head {
  grid-area: head;
  min-width: 0;
  padding: clamp(40px, 9vh, 104px) var(--bk-pad) 0;
}
.booking__rule {                           /* the closing CTA's green rule (125 × 2) */
  width: 125px;
  border-top-width: 2px;
  margin: 0 0 clamp(20px, 4vh, 40px);
}
.booking__title {
  max-width: 9em;
  font-size: min(var(--fs-h1), 8.5vh);
  line-height: 0.95;
  text-wrap: balance;                      /* "LET'S BUILD / A PLAN", never a lone word */
}
.booking__intro {
  max-width: 540px;
  margin-top: clamp(16px, 3vh, 32px);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* The benefits fill the row under the headline and sit at its foot (the last line level with the Back / Next
   pill's; in short windows and on smaller desktops with the card's), with at most the head's top padding of
   spacer above them, so a tall window keeps them near the intro. When the row is too short for them (a narrow
   pitch column wraps them long) the spacer shrinks to 0 and they scroll inside the row instead of climbing
   over the intro. */
.booking__benefits {
  grid-area: benefits;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, clamp(0px, 9vh, 104px)) auto auto;
  align-content: start;
  gap: clamp(20px, 3.6vh, 40px) clamp(24px, 2.6vw, 48px);
  /* top: the spacer row's gap stands in for most of the padding; bottom: card margin 24 + stroke 3 + the bar's padding */
  padding: calc(clamp(28px, 5vh, 56px) - clamp(20px, 3.6vh, 40px)) var(--bk-pad) calc(27px + clamp(20px, 3.6vh, 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.booking__benefits::before { content: ""; grid-column: 1 / -1; }   /* the spacer row */
.booking__benefit { min-width: 0; }
.booking__benefit-icon {
  width: clamp(28px, 3.9vh, 35px);
  height: auto;
}
.booking__benefit-title {
  margin-top: clamp(10px, 1.8vh, 16px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
}
.booking__benefit-text {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--bk-muted);
}

/* ---- Booking column: the contact card ---------------------------------------- */
.booking__card {
  grid-area: card;
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  border: 3px solid transparent;
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, #262222 0%, #111111 100%) padding-box,
    linear-gradient(180deg, #312e2e 34%, #ffffff 100%) border-box;
  overflow: hidden;
}

/* Close: the contact pop-up's 26px green circle X (hover = green fill, black X) */
.booking__close {
  position: absolute;
  top: clamp(24px, 4vh, 40px);
  right: clamp(24px, 2.4vw, 40px);
  z-index: 3;
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.booking__close::before { content: ""; position: absolute; inset: -12px; }   /* bigger tap target */
.booking__close svg { display: block; width: 26px; height: 26px; overflow: visible; }
.booking__close circle,
.booking__close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: fill .25s ease, stroke .25s ease;
}
.booking__close:hover circle,
.booking__close:focus-visible circle { fill: var(--accent); }
.booking__close:hover path,
.booking__close:focus-visible path { stroke: var(--black); }

.booking__card-head {
  flex: 0 0 auto;
  padding: clamp(24px, 4vh, 40px) calc(var(--bk-card-pad) + 40px) 0 var(--bk-card-pad);
}
.booking__meeting {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
}

/* Step indicator: 01 · 02 · 03 like the menu's numbered list — current green, done white, next dimmed.
   Desktop: all three numbers + labels on ONE row (Pete, 28 Sep) — each step is sized to its text, never wraps,
   and the type steps down 14 → 12px on smaller desktops. The green bar on the hairline ends under the current
   step (js/booking.js sets --bk-progress in px from the step's position). */
.booking__steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px 10px;                                /* the least space between steps (space-between spreads them), so the
                                                   row fits down to 1025 */
  margin: clamp(16px, 2.6vh, 24px) -40px 0 0;   /* the row sits below the close button, so it (hairline and labels)
                                                   uses the button's 40px and ends in line with the tiles' right edge */
  padding: 0 0 14px;
  border-bottom: 1px solid var(--bk-line);
}
.booking__steps::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--bk-progress, 33.333%);
  height: 2px;
  background: var(--accent);
  transition: width .5s var(--bk-ease);
}
.booking__steps-item {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--bk-dim);
  transition: color .3s ease;
}
.booking__steps-item.is-done { color: var(--fg); }
.booking__steps-item.is-current { color: var(--accent); }

/* Form: the body scrolls between the step header and the Back / Next bar */
.booking__form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.booking__form[hidden] { display: none; }
.booking__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 3.4vh, 32px) var(--bk-card-pad);
  scroll-padding: 16px 0 44px;             /* focus scrolling keeps rings clear of the fade below */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
/* Desktop: more below = the body's foot fades out over 36px (macOS hides scrollbars, so a hard cut at the
   bar's hairline looked like clipping); js/booking.js sets .is-end once only padding is left below */
@media (min-width: 1025px) {
  .booking__body {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent);
  }
  .booking__body.is-end { -webkit-mask-image: none; mask-image: none; }
}

/* Steps fade: the old one fades out (STEP_OUT_MS in js/booking.js), the new one fades up */
.booking__step { outline: 0; }
.booking__step[hidden] { display: none; }
.booking__step.is-current { animation: booking-step-in .45s var(--bk-ease) both; }
.booking__step.is-leaving { opacity: 0; transition: opacity .18s ease; }
@keyframes booking-step-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Step 1: service tiles (radio) --------------------------------------------- */
.booking__services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
  gap: 12px;
}
.booking__service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 48px 18px 18px;
  border: 1px solid var(--bk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.booking__service:hover { border-color: rgba(255, 255, 255, .45); }
.booking__service.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: rgba(99, 249, 162, .06);
}
.booking__service:has(.booking__service-input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.booking__service-input {                  /* invisible, still the focusable radio (arrow keys move the choice); it covers
                                              the tile so scroll-into-view and screen-reader focus rings use the tile's box */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.booking__service-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.1;
  transition: color .25s ease;
}
.booking__service.is-selected .booking__service-name { color: var(--accent); }
.booking__service-meta {
  font-size: 14px;
  line-height: 1.2;
  color: var(--bk-muted);
}
.booking__service-desc {                   /* 2 lines; the chosen tile shows it in full */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  color: var(--bk-muted);
}
.booking__service.is-selected .booking__service-desc { display: block; -webkit-line-clamp: unset; line-clamp: none; }
/* The comparison table's green tick disc: an empty ring until chosen */
.booking__service-tick {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
}
.booking__service-tick svg { width: 24px; height: 24px; overflow: visible; }
.booking__service-tick circle { fill: transparent; stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .25s ease, stroke .25s ease; }
.booking__service-tick path { fill: none; stroke: transparent; stroke-width: 2; vector-effect: non-scaling-stroke; transition: stroke .25s ease; }
.booking__service.is-selected .booking__service-tick circle { fill: var(--accent); stroke: var(--accent); }
.booking__service.is-selected .booking__service-tick path { stroke: var(--black); }

/* ---- Step 2: calendar + times ----------------------------------------------------- */
.booking__when {                          /* calendar and times side by side from ~450px of column */
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(24px, 2.4vw, 40px);
}
.booking__cal { flex: 1 1 250px; max-width: 360px; min-width: 0; }
.booking__times { flex: 1 1 180px; min-width: 0; }
.booking__sub {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bk-muted);
}
.booking__cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.booking__cal-month {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}
.booking__cal-nav {                        /* the close button's green ring, with a chevron */
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--accent);
  transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}
.booking__cal-nav svg { width: 8px; height: 14px; }
.booking__cal-nav path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.booking__cal-nav:hover:not([disabled]),
.booking__cal-nav:focus-visible { background: var(--accent); color: var(--black); }
.booking__cal-nav[disabled] { opacity: .25; cursor: default; }
.booking__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.booking__cal-grid[aria-busy="true"] { opacity: .5; }
.booking__dow {
  padding-bottom: 6px;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  color: var(--bk-muted);
}
.booking__day {
  justify-self: center;
  width: 100%;
  max-width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  color: var(--fg);
  background: rgba(99, 249, 162, .12);    /* a day with times */
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.booking__day:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.booking__day[aria-pressed="true"] { background: var(--accent); color: var(--black); }
.booking__day[disabled] {
  background: none;
  box-shadow: none;
  color: rgba(255, 255, 255, .3);         /* inactive control: exempt from contrast minimums */
  cursor: default;
}
.booking__day.is-today:not([aria-pressed="true"]) { text-decoration: underline; text-underline-offset: 4px; }

.booking__times-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
}
.booking__time { position: relative; display: block; cursor: pointer; }
.booking__time input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }   /* covers the chip (see the service radio) */
.booking__time span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.booking__time:hover span { box-shadow: inset 0 0 0 1.5px var(--accent); }
.booking__time input:checked + span { background: var(--accent); color: var(--black); box-shadow: none; }
.booking__time input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.booking__hint {
  font-size: 16px;
  line-height: 1.35;
  color: var(--bk-muted);
}
.booking__hint[hidden] { display: none; }
.booking__hint.is-error { color: var(--bk-error); }
.booking__note {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--bk-muted);
}
.booking__note + .booking__note { margin-top: 6px; }
.booking__note[hidden] { display: none; }

/* ---- Step 3: details (the contact pop-up's fields at the column's size) ---------- */
.booking__summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px;
  border: 1px solid var(--bk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}
.booking__summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.booking__summary-text {
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.15;
}
.booking__edit {
  flex: 0 0 auto;
  padding: 4px 0;                          /* a 27px tap target that doesn't reach the next row's */
  margin: -4px 0;
  font-size: 15px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.booking__edit:hover { text-decoration-thickness: 2px; }

.booking__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 17px;                          /* 17px column gap = the contact form's */
  margin-top: 22px;
}
.booking__field { position: relative; min-width: 0; }
.booking__field--full { grid-column: 1 / -1; }
.booking__label {
  display: block;
  font-size: 20px;
  line-height: 1.24;
}
.booking__req { color: var(--accent); }
.booking__input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--fg);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;                         /* ≥ 16px so iOS does not zoom the field */
  line-height: 1.24;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 1px 0 transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.booking__input::placeholder { color: var(--bk-placeholder); opacity: 1; }
.booking__input:focus { outline: 0; }
.booking__input:focus-visible { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.booking__input:-webkit-autofill,
.booking__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px #1c1919 inset;
  transition: background-color 9999s ease-out;
}
.booking__textarea {
  min-height: 46px;                        /* one line, like the other fields; drag to grow */
  resize: vertical;
}
/* An error takes up room under its field (the row grows while it shows), so it never meets the next label —
   also with long messages or WCAG text spacing */
.booking__error {
  display: none;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--bk-error);
}
.booking__field.is-invalid .booking__error { display: block; }
.booking__field.is-invalid .booking__input { border-bottom-color: var(--bk-error); box-shadow: 0 1px 0 var(--bk-error); }
.booking__field.is-invalid .booking__input:focus-visible { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }   /* focus still shows; the red message says what's wrong */
.booking__consent {                       /* 14px, the site's smallest text; still ends above the bar at 1440×900 */
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bk-muted);
}

/* ---- Back / Next bar: the contact pop-up's outlined pill + green wipe --------------- */
.booking__nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px 20px;
  padding: 18px var(--bk-card-pad) clamp(20px, 3.6vh, 32px);
  border-top: 1px solid var(--bk-line);
}
.booking__status {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--bk-error);
}
.booking__status.is-info { color: var(--bk-muted); }   /* "Sending…" */
.booking__pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 140px;
  height: 40px;
  padding: 0 14px 0 16px;
  border-radius: var(--radius-pill);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 0.98;
  text-transform: capitalize;
  white-space: nowrap;
  --wipe-fill: var(--accent);
  --wipe-edge: var(--accent);
  --wipe-txt: var(--black);
  transition: color .3s ease, transform .25s ease, opacity .25s ease;
}
.booking__pill--next { margin-left: auto; }
.booking__pill--back {                     /* secondary: white ring, white wipe */
  min-width: 0;
  --wipe-fill: var(--fg);
  --wipe-edge: rgba(255, 255, 255, .45);
}
.booking__pill--back[hidden] { display: none; }
.booking__arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 12px;
  color: var(--accent);
  transition: color .25s ease;
}
.booking__pill--back .booking__arrow { color: var(--fg); }
.booking__arrow path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.booking__pill:hover .booking__arrow,
.booking__pill:focus-visible .booking__arrow { color: var(--black); }
.booking__pill:active { transform: scale(.97); }
/* Next before a choice is made, and both pills while a booking is sending: still focusable (Next explains
   itself on click), no wipe. The label, ring and arrow fade, not the element, so the focus ring stays full strength. */
.booking__pill[aria-disabled="true"] { cursor: not-allowed; color: rgba(255, 255, 255, .4); --wipe-edge: rgba(99, 249, 162, .4); }
.booking__pill--back[aria-disabled="true"] { --wipe-edge: rgba(255, 255, 255, .18); }
.booking__pill[aria-disabled="true"]::before { clip-path: inset(0 100% 0 0 round var(--radius-pill)); }
.booking__pill[aria-disabled="true"]:hover,
.booking__pill[aria-disabled="true"]:focus-visible { color: rgba(255, 255, 255, .4); }
.booking__pill[aria-disabled="true"] .booking__arrow { opacity: .4; }
.booking__pill--next[aria-disabled="true"]:is(:hover, :focus-visible) .booking__arrow { color: var(--accent); }
.booking__pill--back[aria-disabled="true"]:is(:hover, :focus-visible) .booking__arrow { color: var(--fg); }
.booking__form[aria-busy="true"] .booking__pill { cursor: progress; }
/* The final "Book" pill gets the contact pop-up's pulse (not while sending) */
.booking__form:not([aria-busy]) .booking__pill.is-submit { animation: booking-pulse 2.6s ease-in-out infinite; }
.booking__pill.is-submit:hover,
.booking__pill.is-submit:focus-visible { animation-play-state: paused; }
@keyframes booking-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 249, 162, .35); }
  55%      { box-shadow: 0 0 0 8px rgba(99, 249, 162, 0); }
}

/* ---- Success: replaces the form inside the card ---------------------------------------- */
.booking__success {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 40px var(--bk-card-pad) 56px;
  animation: booking-step-in .5s var(--bk-ease) both;
}
.booking__success[hidden] { display: none; }
.booking__success [hidden] { display: none; }
.booking__success-title {
  max-width: 11em;
  font-size: var(--fs-h3);
  color: var(--accent);
  outline: 0;
}
.booking__success-text { max-width: 480px; font-size: var(--fs-body); line-height: var(--lh-body); }
.booking__success-summary {               /* service, then day + time (a line each) */
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--bk-muted);
  white-space: pre-line;
}
.booking__success .booking__pill { margin-top: 12px; }

/* ---- Smaller desktops (1025–1279): the form column gets a little more of the panel, so the one-row step
   indicator, the 2-up services and the calendar + times keep their room -------------------------------- */
@media (min-width: 1025px) and (max-width: 1279px) {
  .booking__panel { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
}

/* ---- Short laptop windows (1280×720): tighter pitch column ---------------------------- */
@media (max-height: 800px) and (min-width: 1025px) {
  .booking__intro { font-size: 18px; }
  .booking__benefit-title { font-size: 19px; }
  .booking__benefit-text { font-size: 15px; line-height: 1.3; }
  .booking__benefits { padding-bottom: 24px; }   /* the last line level with the card's foot; more and the padding alone makes the list scroll */
  .booking__meeting { font-size: 24px; }
  .booking__service { padding-top: 14px; padding-bottom: 14px; }
}
/* Very short desktop windows: benefit titles only, so the pitch column never runs off the panel */
@media (max-height: 640px) and (min-width: 1025px) {
  .booking__intro,
  .booking__benefit-text { display: none; }
}
/* Smaller desktops again (after the height rules, so these sizes win): the narrow pitch column keeps the
   headline on two lines and the benefits compact, so they fit under the intro (and scroll there if not) */
@media (min-width: 1025px) and (max-width: 1279px) {
  .booking__head { padding-top: calc(27px + clamp(24px, 4vh, 40px)); }   /* the rule level with the card's heading */
  .booking__title { max-width: none; font-size: min(var(--fs-h2), 7vh); }
  .booking__benefits { row-gap: clamp(16px, 2.8vh, 32px); padding-bottom: 24px; }   /* the last line level with the card's foot */
  .booking__benefit-title { font-size: 18px; }
  .booking__benefit-text { font-size: 14px; }
}
/* … and short (1100×720, 1152×720): a slimmer foot, or the padding alone makes the list a scroll box (a tab stop) */
@media (min-width: 1025px) and (max-width: 1279px) and (max-height: 760px) {
  .booking__benefits { padding-bottom: 16px; }
}

/* ---- ≤1024: full-screen sheet, one scroll; headline → form → benefits ------------------- */
@media (max-width: 1024px) {
  .booking__panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;                      /* the sheet is the scroll container */
    overscroll-behavior: contain;
    scroll-padding: 72px 0 96px;           /* focus / scrollIntoView keep clear of the close band and the sticky bar */
    -webkit-overflow-scrolling: touch;
  }
  /* a band under the fixed close button: content scrolls under it instead of into the button. Solid down to
     58px (past the button and its 6px ring, so no half-hidden letters show beside it), then a 14px fade; the
     rule of the unscrolled head (72px down on phones) stays clear of it. js/booking.js reveal() uses 72px. */
  .booking__panel::before {
    content: "";
    position: sticky;
    top: 0;
    z-index: 2;
    flex: 0 0 auto;
    height: 72px;
    margin-bottom: -72px;
    background: linear-gradient(180deg, #111111 0, #111111 58px, rgba(17, 17, 17, 0) 100%);
    pointer-events: none;
  }
  .booking__tab { display: none; }
  .booking__head,
  .booking__benefits,
  .booking__card { transform: translateY(24px); }
  .booking__head { order: 0; padding: 84px var(--gutter) 28px; }
  .booking__card { order: 1; }
  .booking__benefits {                     /* part of the sheet's one scroll: no spacer, no scroll box */
    order: 2;
    align-self: stretch;
    min-height: auto;
    grid-template-rows: none;
    padding: 48px var(--gutter) calc(56px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }
  .booking__benefits::before { display: none; }
  .booking__title { max-width: none; font-size: var(--fs-h2); }
  .booking__card {
    flex: 0 0 auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #1c1919 0%, #111111 70%);
    overflow: visible;
    display: block;
  }
  .booking__close {                        /* stays put while the sheet scrolls (the panel's transform is none when open) */
    position: fixed;
    top: 24px;
    right: 20px;
    border-radius: 50%;
    background: #111111;                   /* legible over whatever scrolls under it */
    box-shadow: 0 0 0 6px #111111;
  }
  .booking__card-head { padding: 28px var(--gutter) 0; }
  .booking__steps { margin-right: 0; padding-right: 0; }
  .booking__body { overflow: visible; padding: 24px var(--gutter) 32px; }
  .booking__nav {
    position: sticky;                      /* sticks to the sheet's bottom while the form is on screen */
    bottom: 0;
    z-index: 2;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(17, 17, 17, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .booking__success { min-height: 60vh; padding: 32px var(--gutter) 48px; }
}

/* ---- ≤640: the headline only, one column --------------------------------------------- */
@media (max-width: 640px) {
  .booking__head { padding-top: 72px; padding-bottom: 20px; }
  .booking__rule { width: 81px; margin-bottom: 20px; }
  .booking__title { font-size: 40px; }
  .booking__intro { display: none; }
  .booking__meeting { font-size: 24px; }
  .booking__steps { display: flex; flex-wrap: wrap; gap: 8px 14px; }
  .booking__steps-item { font-size: 14px; line-height: 1; }
  .booking__steps-item:not(.is-current) .booking__steps-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* numbers only, except the current step */
  .booking__services { grid-template-columns: 1fr; }
  .booking__cal { flex-basis: 100%; max-width: none; }
  .booking__cal-nav { width: 40px; height: 40px; }   /* touch targets */
  .booking__times-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking__time span { height: 44px; }
  .booking__fields { grid-template-columns: 1fr; gap: 26px; }
  .booking__label { font-size: 18px; }
  /* the status gets its own row above the pills (a column between them was ~24–110px wide); it stays
     displayed while empty — it is the live region — and takes no room then */
  .booking__nav { flex-wrap: wrap; row-gap: 0; }
  .booking__status { order: -1; flex: 1 0 100%; font-size: 14px; overflow-wrap: anywhere; }
  .booking__status:not(:empty) { margin-bottom: 10px; }
  .booking__pill { min-width: 120px; }
  .booking__pill--back { min-width: 0; }
  .booking__benefits { grid-template-columns: 1fr; }
}

/* ---- Forced colors (Windows High Contrast): backgrounds and box-shadows are dropped, so the chosen day /
   time, the chips' and pills' rings, the progress bar and the fields' focus get system-colour equivalents ---- */
@media (forced-colors: active) {
  .booking__day[aria-pressed="true"],
  .booking__time input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .booking__time span,
  .booking__cal-nav,
  .booking__pill { border: 1px solid ButtonText; }
  .booking__day[aria-pressed="true"]:focus-visible,
  .booking__time input:focus-visible + span { outline-color: CanvasText; }   /* not the green ring on a system Canvas */
  .booking__tab { border: 1px solid ButtonText; }
  .booking__arrow { forced-color-adjust: auto; }                            /* the pills' arrows take the label's colour */
  .booking__service-tick circle { stroke: CanvasText; }
  .booking__service.is-selected .booking__service-tick circle { fill: Highlight; stroke: Highlight; }
  .booking__service.is-selected .booking__service-tick path { stroke: HighlightText; }
  .booking__steps::after { forced-color-adjust: none; background: Highlight; }
  .booking__steps-item.is-current { text-decoration: underline; text-underline-offset: 4px; }
  .booking__input:focus-visible,
  .booking__field.is-invalid .booking__input:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}

/* ---- Reduced motion: instant states ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .booking__scrim,
  .booking__panel,
  .booking__head,
  .booking__benefits,
  .booking__card,
  .booking__tab-arrow,
  .booking__steps::after { transition: none; }
  .booking__head,
  .booking__benefits,
  .booking__card { transform: none; }
  .booking__step.is-current,
  .booking__success,
  .booking__form:not([aria-busy]) .booking__pill.is-submit { animation: none; }
}
