/* ============================================================
   features/booking/booking.css — the booking widget (redesign · P6)
   ------------------------------------------------------------
   Visual reskin only — the markup hooks (ids, data-*, the classes the
   JS toggles: .booking-step/.hidden, .booking-progress-dot.done/.current,
   .booking-goal.active, .booking-tier.recommended/.active, .booking-cal-day
   .open/.selected, .booking-slot.selected) are unchanged.

   Token-only: no raw hex / ad-hoc shadows / magic radii. Squircle goal
   cards, selectable duration tiers, a branded calendar (coral dot on open
   days), slot chips, a sticky summary bar, and a celebratory confirmation.
   All motion gated behind prefers-reduced-motion.
   ============================================================ */

.booking-widget {
    max-width: 920px;
    margin: 0 auto;
}

.booking-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
}

.booking-pick-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-9);
    align-items: start;
}

.booking-field-label {
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-3);
    text-align: left;
}

/* ---- progress dots — short, contained, the brand dot device --------- */
.booking-progress {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0 0 var(--space-8);
    padding: 0;
}

.booking-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--coral-200);
    transition: width var(--dur-base) var(--ease-dreamy),
                background-color var(--dur-base) var(--ease-soft);
}

.booking-progress-dot.done {
    background: var(--accent);
}

.booking-progress-dot.current {
    width: 28px;
    background: var(--accent-strong);
}

/* ---- step heading — one decision per screen ------------------------- */
/* Card-internal, so it sits a step below the section title above it
   (--fs-h2): at --fs-h3 the two competed and the card read as shouting. */
.booking-step-title {
    font-family: var(--font-display);
    font-size: var(--fs-lead);
    font-weight: 700;
    color: var(--text);
    text-align: left;
    margin-bottom: var(--space-2);
}

.booking-step-hint {
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-align: left;
    margin-bottom: var(--space-7);
}

/* Each step fades + lifts in as it becomes the active panel. Display is
   toggled by .hidden, so removing it replays this animation. */
.booking-step:not(.hidden) {
    animation: bookingStepIn var(--dur-slow) var(--ease-dreamy) both;
}

@keyframes bookingStepIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ---- step 1: goal cards (squircles) --------------------------------- */
.booking-goals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.booking-goal {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-height: 112px;
    /* Room at the right for the chevron, reserved at rest so nothing reflows
       when it arrives. */
    padding: var(--space-6) var(--space-8) var(--space-6) var(--space-6);
    border-radius: var(--radius-lg);
    border: 2px solid var(--coral-200);
    background: var(--surface);
    color: var(--text);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--dur-base) var(--ease-soft),
                box-shadow var(--dur-base) var(--ease-dreamy),
                transform var(--dur-base) var(--ease-dreamy);
}

/* Golden hour, low and from the left — the light the whole brand is set at,
   arriving on the card you're considering. Sits under the text, never tints it. */
.booking-goal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 0% 100%, var(--tint-20), transparent 62%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-soft);
}

/* Drawn, not typed: a glyph here would be read out as "right arrow". */
.booking-goal::after {
    content: "";
    position: absolute;
    right: var(--space-6);
    bottom: var(--space-6);
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--accent-strong);
    border-right: 2px solid var(--accent-strong);
    border-radius: 1px;
    opacity: 0;
    transform: rotate(45deg) translate(-4px, 4px);
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-soft),
                transform var(--dur-base) var(--ease-dreamy);
}

.booking-goal:hover::before,
.booking-goal:focus-visible::before,
.booking-goal.active::before,
.booking-goal:hover::after,
.booking-goal:focus-visible::after,
.booking-goal.active::after {
    opacity: 1;
}

.booking-goal:hover::after,
.booking-goal:focus-visible::after,
.booking-goal.active::after {
    transform: rotate(45deg) translate(0, 0);
}

.booking-goal:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

/* The card takes the press — without it the lift makes it feel like the click
   landed somewhere else. */
.booking-goal:active {
    transform: translateY(-1px) scale(0.99);
    transition-duration: var(--dur-fast);
}

.booking-goal:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.booking-goal.active {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 2px var(--accent-strong) inset;
}

/* The four arrive in reading order rather than as one block. `backwards` and
   no `to` frame on purpose: a filled animation would pin transform at its end
   state and quietly kill the hover lift for the rest of the session. */
.booking-step[data-step="goal"]:not(.hidden) .booking-goal {
    animation: bookingGoalIn var(--dur-slow) var(--ease-dreamy) backwards;
    animation-delay: calc(var(--goal-index, 0) * 70ms);
}

@keyframes bookingGoalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
}

.booking-goal-title {
    font-size: var(--fs-body);
    font-weight: 700;
    line-height: var(--lh-snug);
}

.booking-goal-sub {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* ---- the way out of the guided flow (issue #101) -------------------- */
/* Quiet on purpose: the goals are the recommended path, this is the door for
   people who already know what they want — mostly returning clients, who go
   looking for it. Held at 0.7 so it recedes on a first visit (owner call,
   2026-08-07); that dips the resting text under AA, which is why hover and
   keyboard focus both bring it back to full strength. */
.booking-selfguided {
    opacity: 0.7;
    transition: opacity var(--dur-base) var(--ease-soft);
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: var(--space-5);
    padding: var(--space-3);
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-size: var(--fs-small);
    font-weight: 600;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--coral-200);
    cursor: pointer;
    transition: color var(--dur-base) var(--ease-soft),
                background-color var(--dur-base) var(--ease-soft);
}

.booking-selfguided:hover,
.booking-selfguided:focus-visible {
    opacity: 1;
}

.booking-selfguided:hover {
    color: var(--accent-strong);
    background: var(--tint-soft);
}

.booking-selfguided:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* ---- step 2: duration tiers (price + outcome live on the cards) ----- */
.booking-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    align-items: stretch;
    margin-bottom: var(--space-5);
}

.booking-tier {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-lg);
    border: 2px solid var(--coral-200);
    background: var(--surface);
    color: var(--text-muted);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--dur-base) var(--ease-soft),
                box-shadow var(--dur-base) var(--ease-dreamy),
                transform var(--dur-base) var(--ease-dreamy);
}

.booking-tier:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.booking-tier:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

/* Recommended: the eye still lands here first, but through the accent border,
   the glow and the tag — not through a bigger box. Padding stays equal to its
   siblings so the row reads as one set of options instead of a lopsided one. */
.booking-tier.recommended {
    border-color: var(--accent-strong);
    box-shadow: var(--shadow-glow);
    color: var(--text);
}

/* Selected: a clear inset ring, distinct from the recommended emphasis. */
.booking-tier.active {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 2px var(--accent-strong) inset;
    color: var(--text);
}

/* Only the recommended card carries a tag, so the others reserve its row —
   otherwise one card's duration sits a line below its neighbours' and the
   set reads as three different things instead of three options. */
.booking-tier:not(.recommended)::before {
    content: "";
    display: block;
    height: calc(var(--fs-label) * 1.5 + var(--space-2));
}

.booking-tier-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: lowercase;
    color: var(--text-on-coral);
    background: var(--grad-coral);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
}

.booking-tier-dur {
    font-size: var(--fs-lead);
    font-weight: 700;
    color: var(--text);
}

.booking-tier-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.booking-tier-rate {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.booking-tier-total {
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--text);
}

/* Savings: one of the few places the accent is spent. */
.booking-tier-save {
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--accent-strong);
}

.booking-tier-outcome {
    font-size: var(--fs-small);
    line-height: var(--lh-snug);
    color: var(--text-muted);
}

.booking-tier-note {
    font-size: var(--fs-small);
    line-height: var(--lh-body);
    color: var(--text-muted);
    text-align: left;
    margin-bottom: var(--space-6);
}

/* ---- step 3: calendar ----------------------------------------------- */
.booking-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.booking-cal-title {
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--text);
    text-transform: capitalize;
}

.booking-cal-nav {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--coral-200);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--dur-base) var(--ease-soft),
                color var(--dur-base) var(--ease-soft),
                background-color var(--dur-base) var(--ease-soft);
}

.booking-cal-nav:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent-strong);
    background: var(--coral-50);
}

.booking-cal-nav:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.booking-cal-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.booking-cal-weekdays,
.booking-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-1);
}

.booking-cal-weekdays span {
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-2) 0;
    text-transform: uppercase;
}

.booking-cal-day {
    position: relative;
    aspect-ratio: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text);
    font-size: var(--fs-small);
    font-family: inherit;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-soft),
                color var(--dur-fast) var(--ease-soft);
}

/* Open days read as available — a soft wash plus the coral dot marker. */
.booking-cal-day.open {
    background: var(--tint-soft);
    font-weight: 600;
}

.booking-cal-day.open::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: var(--radius-pill);
    background: var(--accent);
}

.booking-cal-day.open:hover {
    background: var(--tint-20);
}

.booking-cal-day.selected {
    background: var(--grad-coral);
    color: var(--text-on-coral);
}

.booking-cal-day.selected::after {
    background: var(--text-on-coral);
}

.booking-cal-day:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.booking-cal-day:disabled {
    color: var(--text-muted);
    opacity: 0.4;
    cursor: default;
    background: transparent;
}

.booking-tz-note {
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    letter-spacing: var(--tracking-label);
    color: var(--text-muted);
    text-align: left;
    margin-top: var(--space-4);
}

/* ---- step 3: slot list ---------------------------------------------- */
.booking-slots-hint {
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-align: left;
}

.booking-slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: var(--space-3);
    max-height: 420px;
    overflow-y: auto;
    padding-right: var(--space-1);
}

.booking-slot {
    min-height: 44px;
    padding: var(--space-3) 0;
    border-radius: var(--radius-md);
    border: 2px solid var(--coral-200);
    background: var(--surface);
    color: var(--text);
    font-size: var(--fs-small);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease-soft),
                background-color var(--dur-fast) var(--ease-soft),
                transform var(--dur-fast) var(--ease-dreamy);
}

.booking-slot:hover {
    border-color: var(--accent);
    background: var(--coral-50);
    transform: translateY(-1px);
}

.booking-slot:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.booking-slot.selected {
    border-color: var(--accent-strong);
    background: var(--grad-coral);
    color: var(--text-on-coral);
}

/* ---- step 3 (self-guided): the day as a drawable timeline ----------- */
/* The public cousin of the dashboard's .availcal week grid (sessions.css):
   same time-as-vertical-axis reading, but one day, one block, and nothing
   here writes availability — the guest draws inside what the API says is free.
   Three legibility levels, in order of what the guest may do with them:
   the studio's open hours (context) < a free stretch (drawable) < the
   session they've drawn (theirs). Geometry comes from booking.js in
   percentages; only the height of an hour is decided here. */
.booking-day {
    /* One height for every day: 12 hours at 44px. booking.js renders at least
       that span, centred on the studio's hours, so paging the calendar never
       resizes the box — a four-hour Monday and a ten-hour Thursday are the
       same shape, and a longer day scrolls inside it. */
    --booking-hour: 44px;
    height: calc(var(--booking-hour) * 12);
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

/* The instruction (and, once you've drawn, the live readout of what you drew)
   needs room to breathe before the timeline starts. */
#booking-draw-hint {
    margin-bottom: var(--space-4);
    min-height: 1.5em;
}

.booking-day-gutter {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
}

.booking-day-hour {
    position: relative;
    flex: none;
}

.booking-day-hourlabel {
    position: absolute;
    top: 0;
    right: var(--space-2);
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

/* The first label marks the top edge; centering it would clip it. */
.booking-day-hour:first-child .booking-day-hourlabel {
    transform: none;
}

.booking-day-col {
    position: relative;
    background-image: repeating-linear-gradient(
        to bottom,
        var(--glass-border) 0 1px,
        transparent 1px var(--booking-hour)
    );
    /* Vertical swipes scroll the day; drawing is a tap or a handle drag. */
    touch-action: pan-y;
}

.booking-day-hours,
.booking-day-open,
.booking-day-block {
    position: absolute;
    left: var(--space-1);
    right: var(--space-1);
    border-radius: var(--radius-sm);
}

/* When the studio is open — context, not an invitation. */
.booking-day-hours {
    background: var(--tint-faint);
}

/* What's actually free: tinted, bordered, and cursor-marked as drawable. */
.booking-day-open {
    background: var(--tint-20);
    border: 1px dashed var(--coral-200);
    cursor: crosshair;
    touch-action: pan-y;
}

.booking-day-open:hover {
    background: var(--coral-100);
}

.booking-day-open:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 1px;
}

/* The drawn session: the one coral thing on the day. */
.booking-day-block {
    z-index: var(--z-base);
    display: flex;
    align-items: flex-start;
    gap: var(--space-1);
    min-height: 22px;
    padding: var(--space-1) var(--space-2);
    border: none;
    background: var(--grad-coral);
    color: var(--text-on-coral);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.booking-day-block:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.booking-day-col.is-drawing .booking-day-block {
    cursor: grabbing;
    box-shadow: var(--shadow-md);
}

.booking-day-col.is-drawing,
.booking-day-col.is-drawing .booking-day-open {
    user-select: none;
    -webkit-user-select: none;
}

.booking-day-block__time {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-variant-numeric: tabular-nums;
    line-height: var(--lh-snug);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.booking-day-block__remove {
    flex: none;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-on-coral);
    font-size: var(--fs-small);
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
}

.booking-day-block__remove:hover,
.booking-day-block__remove:focus-visible {
    opacity: 1;
    background: color-mix(in srgb, var(--surface) 30%, transparent);
}

/* Inside the edges — the block clips, so nothing may hang outside it. */
.booking-day-block__handle {
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    cursor: ns-resize;
    touch-action: none;
}

.booking-day-block__handle--top { top: 0; }
.booking-day-block__handle--bottom { bottom: 0; }

/* ---- step 4: back affordance ---------------------------------------- */
.booking-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
    margin-bottom: var(--space-2);
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    font-size: var(--fs-small);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color var(--dur-base) var(--ease-soft),
                background-color var(--dur-base) var(--ease-soft);
}

.booking-back svg {
    transition: transform var(--dur-base) var(--ease-dreamy);
}

.booking-back:hover {
    color: var(--accent-strong);
    background: var(--tint-soft);
}

.booking-back:hover svg {
    transform: translateX(-3px);
}

.booking-back:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* ---- live summary bar — calm, persistent, updates with each choice -- */
.booking-summary-bar {
    position: sticky;
    bottom: var(--space-3);
    z-index: var(--z-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(var(--blur-glass));
    backdrop-filter: blur(var(--blur-glass));
    box-shadow: var(--shadow-md);
}

.booking-summary-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    min-width: 0;
}

.booking-summary-line {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.booking-summary-total {
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--text);
}

/* Both controls sit at the right, in the order you'd reach for them: adjust
   the length, then commit. Keeping the way on next to the running total means
   the number and the button that agrees to it are never separated. */
.booking-summary-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.booking-summary-continue {
    flex-shrink: 0;
}

/* Extending is frictionless; there is deliberately no shrink button. */
.booking-add-hour {
    flex-shrink: 0;
    min-height: 44px;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-pill);
    border: 2px solid var(--accent);
    background: var(--surface);
    color: var(--accent-strong);
    font-size: var(--fs-small);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color var(--dur-base) var(--ease-soft),
                color var(--dur-base) var(--ease-soft),
                transform var(--dur-base) var(--ease-dreamy);
}

.booking-add-hour:hover {
    background: var(--grad-coral);
    color: var(--text-on-coral);
    border-color: transparent;
    transform: translateY(-2px);
}

.booking-add-hour:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* ---- step 5: confirmation celebration ------------------------------- */
/* The success panel reuses the global .form-state styling; give its icon a
   gentle one-shot pop when the booking lands. */
.booking-step[data-step="done"]:not(.hidden) .form-state__icon {
    animation: bookingPop var(--dur-slow) var(--ease-dreamy) both;
}

@keyframes bookingPop {
    0%   { transform: scale(0.4); opacity: 0; }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}

/* ---- responsive ----------------------------------------------------- */
@media (max-width: 1024px) {
    .booking-pick-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .booking-slot-list {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .booking-card {
        padding: var(--space-8) var(--space-6);
    }

    /* Mobile-first: one tappable card per row, no dense grids. */
    .booking-tiers {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .booking-goals {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .booking-card {
        padding: var(--space-7) var(--space-4);
        border-radius: var(--radius-lg);
    }

    /* Still twelve hours, just a shorter hour — a 528px timeline would eat a
       phone screen whole. */
    .booking-day {
        --booking-hour: 38px;
    }

    .booking-slot-list {
        grid-template-columns: repeat(3, 1fr);
    }

    /* The line and total take the first row, the two controls share the second
       — full-width buttons stacked three deep would push the card off screen. */
    .booking-summary-bar {
        flex-wrap: wrap;
    }

    .booking-summary-actions {
        width: 100%;
    }

    .booking-summary-actions > * {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .booking-step:not(.hidden),
    .booking-step[data-step="goal"]:not(.hidden) .booking-goal,
    .booking-step[data-step="done"]:not(.hidden) .form-state__icon {
        animation: none;
    }

    /* The wash and the chevron still fade — it's the travel that goes, so the
       chevron sits at its final angle from the start and only opacity moves. */
    .booking-goal::after,
    .booking-goal:hover::after,
    .booking-goal:focus-visible::after,
    .booking-goal.active::after {
        transform: rotate(45deg);
        transition-property: opacity;
    }

    .booking-goal:hover,
    .booking-goal:active,
    .booking-tier:hover,
    .booking-slot:hover,
    .booking-add-hour:hover {
        transform: none;
    }

    .booking-back:hover svg {
        transform: none;
    }
}

/* --- extra guests ("who's coming?") -------------------------------------- */

/* Last in the form and visibly its own thing: a tinted panel rather than
   another row in the column, because it's the one field that grows rows and
   the one that's about people other than the booker. */
.booking-guests {
    /* The hint below carries the gap to whatever follows, the way a dd-field's
       does — hence no bottom margin here. */
    margin: var(--space-7) 0 0;
    padding: var(--space-5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--surface-tint);
}

.booking-guests-hint {
    margin-bottom: var(--space-7);
}

.booking-guests-label {
    display: block;
    font-size: var(--fs-label);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.booking-guest-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: var(--space-2);
}

.booking-guest-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.booking-guest-input:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 1px;
}

.booking-guest-remove {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.booking-guest-remove:hover {
    color: var(--attention);
    border-color: var(--attention);
}

/* #booking-add-guest is a .dd-btn--tertiary --sm: hover, focus and the
   disabled-at-max-guests state all come from components/buttons.css, and the
   margins on .booking-guests-label / .booking-guest-row already space it. It
   deliberately has no rules of its own — it used to carry .action-btn, which
   is defined in dashboard.css and never loads on this public page (#104). */
