/* ============================================================
   Book a call (/booking). Loaded after /css/site.css.
   The scheduler markup comes from js/intro-booking.js, which el/booking.html
   shares, so every ib-* id and sx-* class below is the script's contract.
   This file replaces /sessions/sessions.css on this page.

   Layout   .booking > .booking-grid: .booking-intro and .booking-more on the
            left, .booking-side (the card, then .booking-contact) on the right.
            Under 900px they stack in source order: intro, card, contact, more.
   Card     .booking-card (paper, hairline, soft shadow) > .booking-card-head
            (title, .sx-tz time zone picker) + .ib (the scheduler)
   States   loading (.sx-skeleton), week picker (.sx-week, .sx-days > .sx-day),
            slots (.sx-slot-group > .sx-slot-grid > .sx-slot), empty, paused,
            closed and load error (.sx-slots-empty), form (.ib-form), errors
            (.sx-error), done (.sx-done), manage mode (.ib-manage)
   Motion   site.css tokens only. js/pages/booking.js adds .is-entering to
            #ib-slots when the day or week changes, so a new list fades in
            while picking a time inside the same day does not replay it.
============================================================ */

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
[hidden] { display: none !important; }

/* Hover easing for this page's triggers (same pattern as the lists in site.css) */
.sx-day, .sx-slot, .sx-iconbtn, .sx-action, .sx-textbtn, .booking-cover li {
    --e: var(--ease-in-out);
    --e-spring: var(--ease-in-out);
}
.sx-day:hover, .sx-day:focus-visible, .sx-slot:hover, .sx-slot:focus-visible,
.sx-iconbtn:hover, .sx-iconbtn:focus-visible, .sx-action:hover, .sx-action:focus-visible,
.sx-textbtn:hover, .sx-textbtn:focus-visible, .booking-cover li:hover {
    --e: var(--ease-out);
    --e-spring: var(--ease-spring);
}

/* ---- Page layout ---- */
.booking { padding: 56px 0 112px; }
.booking-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro side" "more side";
    column-gap: 80px; row-gap: 56px;
    align-items: start;
}
.booking-intro { grid-area: intro; padding-top: 8px; }
.booking-side { grid-area: side; }
.booking-more { grid-area: more; }

.booking-intro h1 { font-size: clamp(40px, 4.4vw, 58px); max-width: 11ch; margin-bottom: 24px; }
.booking-lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 32rem; margin-bottom: 40px; }

/* Call facts: the homepage .hero-meta, as a two by two grid */
.logo--meet { width: 18px; height: 18px; flex: 0 0 18px; }
.booking-facts.hero-meta { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 24px 48px; }
.booking-facts dd .ic { color: var(--ink-2); }

/* Who you'll talk to */
.booking-host { display: flex; align-items: center; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); }
/* A face crop of the homepage photo (About.jpg, 1080 x 1301): scaled so the face fills the circle */
.booking-avatar {
    position: relative; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; overflow: hidden;
    background: var(--bg-2); box-shadow: 0 0 0 1px var(--line);
}
.booking-avatar img { position: absolute; width: 210px; max-width: none; left: -87px; top: -60px; }
.booking-host p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 30rem; }
.booking-host strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 2px; }

.booking-cover { margin-top: 40px; }
.booking-cover h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 20px; }
.booking-cover ul { display: grid; gap: 16px; }
.booking-cover li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.booking-cover li .tile { padding-top: 1px; transition: color var(--dur-2) var(--e), translate var(--dur-2) var(--e); }
@media (hover: hover) {
    .booking-cover li:hover .tile { color: var(--honey-ink); translate: calc(var(--lift-sm) * -1) 0; }
}

/* Message first: light contact rows (site.css styles them for the dark CTA panel) */
.booking-contact { margin-top: 32px; padding: 0 32px; display: flex; flex-direction: column; gap: 2px; }
.booking-contact .label { margin-bottom: 8px; }
.booking-contact .contact-row {
    display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0 -12px;
    border-radius: 12px; color: var(--ink);
    transition: background-color var(--dur-1) var(--e);
}
.booking-contact .contact-row > span:not(.tile) { flex: 1; min-width: 0; }
.booking-contact .contact-row span span { color: var(--ink-3); }
.booking-contact .contact-row-arrow { color: var(--ink-3); }
.booking-contact a.contact-row:hover { background: var(--bg-2); color: var(--ink); }
.booking-contact a.contact-row:focus-visible .contact-row-arrow { color: var(--honey-ink); }
@media (hover: hover) {
    .booking-contact a.contact-row:hover .contact-row-arrow { color: var(--honey-ink); }
    .booking-contact a.contact-row:hover .tile .ic { color: var(--honey-ink); }
}

/* ---- Booking card ---- */
.booking-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    box-shadow: 0 1px 2px rgba(31, 27, 22, .04), 0 28px 56px -32px rgba(31, 27, 22, .26);
}
.booking-card-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--line);
}
.booking-card-head > div:not(.sx-tz) { flex: 1 1 auto; min-width: 0; }
.booking-card-head h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 6px; }
.booking-card-head p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 24rem; }
.ib { padding: 24px 32px 32px; min-height: 520px; }
.booking-card-foot { margin: 0; padding: 0 32px 28px; font-size: 14px; color: var(--ink-3); }

/* Time zone picker: the control itself is styled in /css/tz-picker.css */
.sx-tz { flex: 0 0 284px; margin-top: 2px; }
.sx-tz-note { display: block; margin-top: 6px; color: var(--honey-ink); }

/* ---- Week row: label on the left, the two arrows together on the right ---- */
.sx-week { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sx-week-label {
    order: -1; margin-right: auto;
    font-family: var(--serif); font-variation-settings: "SOFT" 50;
    font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.sx-iconbtn {
    position: relative; display: grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    border: 1px solid var(--line-2); border-radius: var(--r-control);
    background: var(--surface); color: var(--ink); cursor: pointer;
    transition: border-color var(--dur-1) var(--e), background-color var(--dur-1) var(--e), opacity var(--dur-1) var(--e), scale var(--dur-2) var(--e);
}
.sx-iconbtn .ic { transition: translate var(--dur-2) var(--e); }
.sx-iconbtn:disabled { opacity: .38; cursor: default; }
@media (hover: hover) {
    .sx-iconbtn:not(:disabled):hover { border-color: rgba(31, 27, 22, .28); background: #fff; }
    #ib-prev:not(:disabled):hover .ic { translate: calc(var(--nudge) * -1) 0; }
    #ib-next:not(:disabled):hover .ic { translate: var(--nudge) 0; }
}
.sx-iconbtn:not(:disabled):active { scale: var(--press); transition-duration: var(--dur-press); }

/* ---- Day pills ---- */
.sx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; }
.sx-day {
    position: relative; isolation: isolate;
    display: grid; justify-items: center; gap: 4px; min-width: 0;
    padding: 12px 2px 11px;
    border: 1px solid var(--line-2); border-radius: 12px;
    background: var(--surface); color: var(--ink);
    font-family: var(--sans); cursor: pointer;
    transition: border-color var(--dur-1) var(--e), background-color var(--dur-1) var(--e), color var(--dur-1) var(--e), translate var(--dur-2) var(--e);
}
/* Selected fill: its own layer, so a newly picked day settles in instead of snapping */
.sx-day::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
    background: var(--honey); opacity: 0;
}
.sx-day-dow { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--ink-3); white-space: nowrap; }
.sx-day-num {
    font-family: var(--serif); font-variation-settings: "SOFT" 50;
    font-size: 24px; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums;
}
.sx-day-count { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--honey-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sx-day.is-today .sx-day-dow { color: var(--ink); font-weight: 600; }

@media (hover: hover) {
    .sx-day:not(:disabled):not([aria-pressed="true"]):hover {
        border-color: var(--honey); background: #fff; translate: 0 var(--lift-sm);
    }
}
.sx-day:disabled { border-color: transparent; background: transparent; cursor: default; }
.sx-day:disabled .sx-day-num,
.sx-day:disabled .sx-day-count { color: color-mix(in srgb, var(--ink-3) 55%, transparent); }
.sx-day:disabled .sx-day-dow { color: color-mix(in srgb, var(--ink-3) 75%, transparent); }
/* Still loading: the pills hold their shape */
.ib:has(.sx-skeleton) .sx-day:disabled { border-color: var(--line); }

.sx-day[aria-pressed="true"] { border-color: var(--honey); color: var(--ink); cursor: default; }
.sx-day[aria-pressed="true"]::before { opacity: 1; animation: ib-fill-in var(--dur-2) var(--ease-out) both; }
.sx-day[aria-pressed="true"] .sx-day-dow,
.sx-day[aria-pressed="true"] .sx-day-count { color: color-mix(in srgb, var(--ink) 78%, transparent); }

@keyframes ib-fill-in {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: none; }
}

/* ---- Time slots ---- */
.sx-slots { min-height: 260px; }
.sx-slot-group + .sx-slot-group { margin-top: 24px; }
.sx-slot-group h3 {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 12px;
    font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.2;
    color: var(--ink-3);
}
.sx-slot-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sx-slot-grid, .sx-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }

.sx-slot {
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 46px; padding: 0 8px;
    border: 1px solid var(--line-2); border-radius: var(--r-control);
    background: var(--surface); color: var(--ink);
    font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color var(--dur-1) var(--e), background-color var(--dur-1) var(--e), color var(--dur-1) var(--e),
        translate var(--dur-2) var(--e), scale var(--dur-2) var(--e);
}
.sx-slot::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
    background: var(--honey); opacity: 0;
}
@media (hover: hover) {
    .sx-slot:not([aria-pressed="true"]):hover {
        border-color: var(--honey); background: #fff; color: var(--ink); translate: 0 var(--lift-sm);
    }
}
.sx-slot:active { scale: var(--press); transition-duration: var(--dur-press); }
.sx-slot[aria-pressed="true"] { border-color: var(--honey); font-weight: 600; }
.sx-slot[aria-pressed="true"]::before { opacity: 1; animation: ib-fill-in var(--dur-2) var(--ease-out) both; }
/* A small check joins the chosen time */
.sx-slot[aria-pressed="true"]::after {
    content: ""; width: 14px; height: 14px; flex: 0 0 14px; order: -1;
    background-color: currentColor;
    -webkit-mask: var(--ib-i-check) center / contain no-repeat; mask: var(--ib-i-check) center / contain no-repeat;
    animation: ib-pop var(--dur-2) var(--ease-spring) both;
}
@keyframes ib-pop {
    from { opacity: 0; transform: scale(.4); }
    to   { opacity: 1; transform: none; }
}

/* Loading: quiet placeholders that breathe in opacity only */
.sx-skeleton span { height: 46px; border-radius: var(--r-control); background: var(--bg-2); animation: ib-breathe 1.4s var(--ease-in-out) infinite alternate; }
.sx-skeleton span:nth-child(3n + 2) { animation-delay: 140ms; }
.sx-skeleton span:nth-child(3n) { animation-delay: 280ms; }
@keyframes ib-breathe { from { opacity: 1; } to { opacity: .45; } }

/* Empty week, paused, closed, load error */
.sx-slots-empty {
    display: grid; place-items: center; min-height: 240px; padding: 32px 24px;
    border: 1px dashed var(--line-2); border-radius: var(--r-card);
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    text-align: center; font-size: 15px; line-height: 1.6; color: var(--ink-2);
}
.sx-slots-empty > div { max-width: 30rem; }
.sx-slots-empty a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sx-slots-empty a:hover { text-decoration-color: currentColor; }
.sx-slots-empty .sx-textbtn { margin-top: 8px; }

.sx-picker-foot {
    display: block; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
    font-size: 14px; line-height: 1.5; color: var(--ink-3);
}

/* The script writes Font Awesome tags (<i class="fa-...">) into the empty and done states.
   This page doesn't load Font Awesome; each tag is drawn as a Lucide line icon instead. */
.booking-card {
    --ib-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --ib-i-check-thin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --ib-i-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
    --ib-i-calendar-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='m14 14-4 4'/%3E%3Cpath d='m10 14 4 4'/%3E%3C/svg%3E");
    --ib-i-wifi-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h.01'/%3E%3Cpath d='M8.5 16.429a5 5 0 0 1 7 0'/%3E%3Cpath d='M5 12.859a10 10 0 0 1 5.17-2.69'/%3E%3Cpath d='M19 12.859a10 10 0 0 0-2.007-1.523'/%3E%3Cpath d='M2 8.82a15 15 0 0 1 4.177-2.643'/%3E%3Cpath d='M22 8.82a15 15 0 0 0-11.288-3.764'/%3E%3Cpath d='m2 2 20 20'/%3E%3C/svg%3E");
    --ib-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
}
.booking-card i[class*="fa-"] {
    display: block; width: 26px; height: 26px; margin: 0 auto 14px;
    background-color: currentColor; color: var(--ink-3);
    -webkit-mask: var(--ib-icon, none) center / contain no-repeat; mask: var(--ib-icon, none) center / contain no-repeat;
}
.booking-card i.fa-calendar { --ib-icon: var(--ib-i-calendar); }
.booking-card i.fa-calendar-xmark { --ib-icon: var(--ib-i-calendar-x); }
.booking-card i.fa-wifi { --ib-icon: var(--ib-i-wifi-off); }
.booking-card i.fa-check { --ib-icon: var(--ib-i-check-thin); }

/* ---- Text buttons and small actions ---- */
.sx-textbtn {
    display: inline; padding: 2px 0; border: 0; background: none; cursor: pointer;
    font: 500 14px/1.4 var(--sans); color: var(--honey-ink);
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
    text-decoration-color: color-mix(in srgb, var(--honey-ink) 35%, transparent);
    transition: color var(--dur-1) var(--e), text-decoration-color var(--dur-1) var(--e);
}
.sx-textbtn:hover { color: var(--ink); text-decoration-color: currentColor; }

.sx-action {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 38px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: var(--r-control);
    background: var(--surface); color: var(--ink);
    font: 600 14px/1 var(--sans); white-space: nowrap; cursor: pointer;
    transition: background-color var(--dur-1) var(--e), border-color var(--dur-1) var(--e), color var(--dur-1) var(--e),
        translate var(--dur-2) var(--e), scale var(--dur-2) var(--e);
}
.sx-action:hover { color: var(--ink); }
@media (hover: hover) {
    .sx-action:hover { background: #fff; border-color: rgba(31, 27, 22, .28); translate: 0 var(--lift-sm); }
    .sx-action--danger:hover { background: #000; border-color: #000; color: var(--surface); }
}
.sx-action:active { translate: 0 0; scale: var(--press); transition-duration: var(--dur-press); }
.sx-action:disabled { opacity: .6; cursor: progress; translate: none; }
.sx-meet-logo { display: block; width: 18px; height: auto; flex: 0 0 auto; }
/* Confirming a cancel is the one ink button on the page: clear, not alarming */
.sx-action--danger { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* Busy state (the script sets .is-loading on the pressed button) */
.is-loading .sx-btn-label::after {
    content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
    border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: ib-spin .7s linear infinite;
}
.btn.is-loading .ic { display: none; }
@keyframes ib-spin { to { transform: rotate(360deg); } }

/* ---- Booking form ---- */
.ib-form {
    margin-top: 24px;
    scroll-margin: 96px 0 24px;
}
.ib-form-when {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px; padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--honey) 55%, transparent); border-radius: var(--r-card);
    background: color-mix(in srgb, var(--honey-soft) 38%, var(--surface));
}
.ib-form-when .tile { color: var(--honey-ink); }
.ib-form-when-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sx-confirm-kicker { font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--ink-3); }
.ib-form-when strong {
    font-family: var(--serif); font-variation-settings: "SOFT" 50;
    font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.ib-form-when .sx-textbtn { white-space: nowrap; }

.ib-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-bottom: 20px; }
.ib-fields > label { display: block; min-width: 0; }
.ib-wide { grid-column: 1 / -1; }
.sx-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.ib-optional { margin-left: 4px; font-weight: 400; color: var(--ink-3); }

.sx-input {
    display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: var(--r-control);
    background: #fff; color: var(--ink);
    font: 400 16px/1.4 var(--sans);
    transition: border-color var(--dur-1) var(--ease-in-out), background-color var(--dur-1) var(--ease-in-out);
}
textarea.sx-input { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.sx-input::placeholder { color: color-mix(in srgb, var(--ink-3) 70%, transparent); }
@media (hover: hover) { .sx-input:hover { border-color: rgba(31, 27, 22, .28); } }
.sx-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--honey) 35%, transparent); }
.sx-input[aria-invalid="true"] { border-color: var(--honey-ink); background: color-mix(in srgb, var(--honey-soft) 30%, #fff); }

.ib-hint { margin: -8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.ib-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Errors: the single accent as a soft note, with an alert icon (no second colour) */
.sx-error { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.sx-error:empty { display: none; }
.sx-error:not(:empty) {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 0 0 20px; padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--honey-ink) 30%, transparent); border-radius: var(--r-control);
    background: color-mix(in srgb, var(--honey-soft) 45%, var(--surface));
    animation: ib-in var(--dur-2) var(--ease-out) both;
}
.sx-error:not(:empty)::before {
    content: ""; width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px;
    background-color: var(--honey-ink);
    -webkit-mask: var(--ib-i-alert) center / contain no-repeat; mask: var(--ib-i-alert) center / contain no-repeat;
}

.ib-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ib-privacy { margin: 0; max-width: 22rem; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.ib-form-foot .btn { flex: 0 0 auto; }
.ib .btn:disabled { opacity: .7; cursor: progress; translate: none; }
.ib .btn:disabled::after { opacity: 0; }

/* ---- Done ---- */
.sx-done { padding: 40px 8px 16px; text-align: center; scroll-margin: 96px 0 24px; }
.sx-done:focus { outline: none; }
.sx-done-icon {
    display: grid; place-items: center;
    width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
    border: 1.5px solid var(--honey); color: var(--honey-ink);
    animation: ib-pop var(--dur-4) var(--ease-spring) 120ms both;
}
.booking-card .sx-done-icon i[class*="fa-"] { width: 28px; height: 28px; margin: 0; color: var(--honey-ink); }
.sx-done h3 { font-size: 32px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 12px; }
.sx-done-when {
    margin: 0 0 4px;
    font-family: var(--serif); font-variation-settings: "SOFT" 50;
    font-size: 21px; line-height: 1.35; color: var(--ink); font-variant-numeric: tabular-nums;
}
.sx-done-meta { margin: 0 0 24px; font-size: 14px; color: var(--ink-3); }
.sx-done-meet { margin: 0 0 20px; }
.sx-done-meet a {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
    padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
    background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere;
    background-image: none; transition: border-color var(--dur-1) var(--ease-in-out);
}
.sx-done-meet a::after { display: none; }
/* The Google Meet logo in its own colours, as on the manage button */
.sx-done-meet a::before {
    content: ""; width: 18px; height: 15px; flex: 0 0 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 87.5 72'%3E%3Cpath fill='%2300832d' d='M49.5 36l8.53 9.75 11.47 7.33 2-17.02-2-16.64-11.69 6.44z'/%3E%3Cpath fill='%230066da' d='M0 51.5V66c0 3.315 2.685 6 6 6h14.5l3-10.96-3-9.54-9.95-3z'/%3E%3Cpath fill='%23e94235' d='M20.5 0L0 20.5l10.55 3 9.95-3 2.95-9.41z'/%3E%3Cpath fill='%232684fc' d='M20.5 20.5H0v31h20.5z'/%3E%3Cpath fill='%2300ac47' d='M82.6 8.68L69.5 19.42v33.66l13.16 10.79c1.97 1.54 4.85.135 4.85-2.37V11c0-2.535-2.945-3.925-4.91-2.32zM49.5 36v15.5h-29V72h43c3.315 0 6-2.685 6-6V53.08z'/%3E%3Cpath fill='%23ffba00' d='M63.5 0h-43v20.5h29V36l20-16.57V6c0-3.315-2.685-6-6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sx-done-meet a:hover { border-color: var(--honey); color: var(--ink); }
.ib-done-note { max-width: 26rem; margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ib-done-note strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---- Manage mode (?manage=<token> from the confirmation email) ---- */
.ib-manage {
    margin: 0 0 28px; padding: 18px 20px;
    border: 1px solid var(--line-2); border-radius: var(--r-card);
    background: var(--bg);
    font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
.ib-manage > p:only-child { margin: 0; }
.ib-manage-call { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.ib-manage-call .sx-confirm-kicker { flex-basis: 100%; }
.ib-manage-call strong {
    flex: 1 1 100%; text-wrap: balance;
    font-family: var(--serif); font-variation-settings: "SOFT" 50;
    font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.ib-manage-actions, .ib-manage-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ib-manage-actions { padding-top: 12px; }
.ib-manage-confirm {
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
    animation: ib-in var(--dur-2) var(--ease-out) both;
}
.ib-manage-confirm > span { flex: 1 1 auto; font-weight: 600; color: var(--ink); }
.ib-manage-hint { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.ib-manage .sx-error:not(:empty) { margin: 14px 0 0; }

/* ---- State changes: picker to form to done, one fade and rise each ---- */
.ib-manage:not([hidden]), .ib-form:not([hidden]), .sx-done:not([hidden]) {
    animation: ib-in var(--dur-4) var(--ease-out) both;
}
#ib-slots.is-entering > * { animation: ib-in var(--dur-3) var(--ease-out) both; }
#ib-slots.is-entering > * + * { animation-delay: 50ms; }
#ib-slots.is-entering > * + * + * { animation-delay: 100ms; }
@keyframes ib-in {
    from { opacity: 0; transform: translate3d(0, calc(var(--reveal-rise) * .66), 0); }
    to   { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
    .booking-grid { column-gap: 48px; }
    .booking-card-head { flex-direction: column; gap: 16px; }
    .sx-tz { flex: none; width: 100%; max-width: 320px; }
}

@media (max-width: 900px) {
    .booking { padding: 32px 0 80px; }
    .booking-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "intro" "side" "more"; row-gap: 40px; }
    .booking-intro { padding-top: 0; }
    .booking-intro h1 { max-width: 14ch; }
    .booking-lede { margin-bottom: 32px; }
    .booking-facts.hero-meta { grid-template-columns: repeat(4, max-content); gap: 20px 40px; }
    .booking-contact { padding: 0 8px; }
    .booking-card-head { flex-direction: row; }
    .sx-tz { flex: 0 1 280px; width: auto; }
}

@media (max-width: 720px) {
    .booking-facts.hero-meta { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 20px 32px; }
    .booking-card-head { flex-direction: column; gap: 16px; }
    .sx-tz { flex: none; width: 100%; max-width: none; }
}

@media (max-width: 600px) {
    .booking-intro h1 { font-size: 40px; }
    .booking-lede { font-size: 17px; }
    .booking-facts.hero-meta > div:first-child { grid-column: auto; }
    .booking-card { margin: 0 -8px; border-radius: var(--r-card); }
    .booking-contact { padding: 0; }
    .booking-card-head { padding: 22px 18px 18px; }
    .booking-card-head h2 { font-size: 24px; }
    .ib { padding: 20px 14px 24px; min-height: 480px; }
    .booking-card-foot { padding: 0 18px 22px; }
    .sx-week-label { font-size: 19px; }
    .sx-days { gap: 4px; margin-bottom: 24px; }
    .sx-day { padding: 9px 0 8px; gap: 3px; border-radius: 10px; }
    .sx-day-dow { font-size: 11px; }
    .sx-day-num { font-size: 20px; }
    .sx-day-count { font-size: 10.5px; letter-spacing: -0.01em; }
    .sx-slot-grid, .sx-skeleton { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
    .sx-slot { height: 48px; }
    .ib-fields { grid-template-columns: 1fr; }
    .ib-form-when { flex-wrap: wrap; padding: 14px 16px; }
    .ib-form-when-text { flex: 1 1 calc(100% - 40px); }
    .ib-form-when strong { font-size: 18px; }
    .ib-form-when .sx-textbtn { margin-left: 38px; }
    .ib-form-foot { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
    .ib-form-foot .btn { width: 100%; justify-content: center; }
    /* Keep the submit button clear of the WhatsApp float when the form scrolls into view */
    .ib-form, .sx-done { scroll-margin-bottom: 88px; }
    .ib-manage { padding: 16px; }
    .sx-done { padding-top: 28px; }
    .sx-done h3 { font-size: 28px; }
}

/* ---- Reduced motion: no travel, no pops, no breathing; state changes become short fades ---- */
@media (prefers-reduced-motion: reduce) {
    .sx-day[aria-pressed="true"]::before, .sx-slot[aria-pressed="true"]::before,
    .sx-slot[aria-pressed="true"]::after, .sx-done-icon { animation: none; }
    .sx-skeleton span { animation: none; opacity: .7; }
    .is-loading .sx-btn-label::after { animation-duration: 1.6s; }
    .ib-manage:not([hidden]), .ib-form:not([hidden]), .sx-done:not([hidden]),
    .ib-manage-confirm, .sx-error:not(:empty), #ib-slots.is-entering > * {
        animation-name: reveal-fade; animation-duration: var(--dur-2); animation-delay: 0ms;
    }
}
