/* ============================================================
   BOOKING PAGE (/booking)

   Shares the landing-page shell — .lp-hero, .lp-glance, .lp-section,
   .lp-side-card, .lp-faq and .lp-cta all come from landing.css — and adds
   only the booking pieces below.

   The page is one form laid out in two columns: the steps on the left, the
   "Your session" receipt (which holds the single submit button) on the right.
   The header, footer and floating widgets come from site.css.
   ============================================================ */

/* ---------- Layout ---------- */
.bk-layout {
    /* A wider working column than the landing pages: the form is the content. */
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.95fr);
    gap: clamp(1.75rem, 3.5vw, 3rem);
    align-items: start;
}

.bk-main {
    min-width: 0;
}

/* The receipt is the other grid column. Without this its min-content width
   (the widest line in the summary) sets the track and pushes the page past a
   narrow phone, so let it shrink and wrap instead. */
.bk-summary {
    min-width: 0;
}

.bk-intro {
    margin-bottom: 1.75rem;
}

.bk-intro h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.15;
    color: var(--secondary);
    margin-bottom: 0.4rem;
}

.bk-intro h2 em {
    font-style: italic;
    color: var(--main);
}

.bk-intro p {
    margin: 0;
    font-size: 1rem;
    color: var(--ink);
}

/* The form now leads the page (review issue 02), so it carries the breathing
   room under the hero that the old at-a-glance band used to provide. */
.bk-form {
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* One-line summary that sits directly under "Build your session". */
.bk-intro p.bk-intro-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.8rem;
    margin-top: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--extra);
}

.bk-intro-facts span + span::before {
    content: '·';
    margin-right: 0.8rem;
    color: var(--muted-soft);
    font-weight: 700;
}

/* ---------- Booking info — moved below the tool (review issue 02) ---------- */
.bk-info {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.bk-info summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem clamp(1.1rem, 3vw, 1.6rem);
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--secondary);
}

.bk-info summary::-webkit-details-marker {
    display: none;
}

.bk-info summary span i {
    color: var(--main);
    margin-right: 0.5rem;
}

.bk-info-chevron {
    color: var(--main);
    transition: transform 0.25s;
}

.bk-info[open] .bk-info-chevron {
    transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
    .bk-info-chevron {
        transition: none;
    }
}

/* The shared .lp-glance grid, contained — no hero-overlap margin here. */
.lp-glance.bk-info-list {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
}

/* ---------- Steps ---------- */
.bk-step {
    padding: 1.7rem 0;
    border-top: 1px solid var(--border);
}

.bk-step:first-of-type {
    padding-top: 0;
    border-top: none;
}

.bk-step-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.35rem;
}

.bk-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--extra), var(--main));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(var(--main-rgb), 0.24);
}

.bk-step-head h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.bk-step-head p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--muted);
}

/* ============================================================
   STEP 1 — treatments
   The image sets the top of every card and the price row is pinned to the
   bottom of the body, so the cards still line up when a treatment name runs
   to two lines. Names use the body face: the serif is saved for headings, so
   the grid reads as a menu of choices rather than fifteen titles.
   ============================================================ */
.bk-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.bk-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s, box-shadow 0.3s;
}

.bk-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--main-rgb), 0.45);
    box-shadow: 0 18px 40px rgba(var(--panel-rgb), 0.13);
}

.bk-card.is-selected {
    border-color: var(--main);
    box-shadow: 0 18px 42px rgba(var(--main-rgb), 0.18);
}

.bk-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-soft), #fff);
}

.bk-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}

/* The branded tile under every card image: shown while a photo loads, and kept
   as the fallback if the file is missing or fails to load (review issue 03). */
.bk-card-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: rgba(var(--main-rgb), 0.4);
    background: linear-gradient(135deg, var(--bg-soft), #fff);
}

.bk-card:hover .bk-card-media img {
    transform: scale(1.06);
}

/* Services without a photo still get a card of the same height. */
.bk-card-media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: rgba(var(--main-rgb), 0.4);
}

.bk-card-check {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--main);
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 6px 16px rgba(var(--main-rgb), 0.4);
    opacity: 0;
    transform: scale(0.4) rotate(-25deg);
    transition: opacity 0.25s, transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.bk-card.is-selected .bk-card-check {
    opacity: 1;
    transform: none;
}

.bk-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    padding: 0.9rem 1rem 1rem;
}

.bk-card-name {
    /* The body face, not the serif: headings keep the serif so the grid scans
       as a menu of options rather than fifteen competing titles. */
    font-family: var(--font-body);
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--secondary);
}

.bk-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--muted);
}

.bk-card-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.bk-card-from {
    font-weight: 700;
    color: var(--main);
}

/* ---------- Phone-only treatment rail & pinned action bar ----------
   Both are produced by the phone layout in the Responsive section below; at
   wider widths the grid and the receipt's own submit are used unchanged. */
.bk-swipe-hint,
.bk-mobile-bar {
    display: none;
}

/* ============================================================
   STEP 2 — the length and price list for the chosen treatment
   ============================================================ */
.bk-length-list {
    display: grid;
    gap: 0.5rem;
}

.bk-length {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.bk-length input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bk-length-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.bk-length-body strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--secondary);
}

.bk-length-body small {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.bk-length-price {
    margin-left: auto;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--main);
    white-space: nowrap;
}

.bk-length-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--main);
    color: #fff;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0.4) rotate(-25deg);
    transition: opacity 0.25s, transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.bk-length:hover {
    border-color: rgba(var(--main-rgb), 0.5);
    transform: translateY(-1px);
}

.bk-length:has(input:checked) {
    border-color: var(--main);
    background: linear-gradient(135deg, rgba(var(--main-rgb), 0.09), rgba(var(--primary-rgb), 0.5));
    box-shadow: 0 10px 24px rgba(var(--main-rgb), 0.14);
}

.bk-length:has(input:checked) .bk-length-tick {
    opacity: 1;
    transform: none;
}

.bk-length:has(input:focus-visible) {
    outline: 3px solid rgba(var(--main-rgb), 0.4);
    outline-offset: 2px;
}

/* Prices that are not a length — an upgrade or another treatment that an old
   import left in the duration column. Visible, never selectable as a time. */
.bk-extras {
    margin-top: 1rem;
    padding: 0.95rem 1.1rem;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: var(--bg-soft);
}

.bk-extras-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--main);
}

.bk-extras ul {
    list-style: none;
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.bk-extras li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
    color: var(--ink);
}

.bk-extras li em {
    font-style: normal;
    color: var(--muted);
}

.bk-extras li strong {
    color: var(--secondary);
    white-space: nowrap;
}

.bk-extras-note {
    margin: 0.6rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ============================================================
   STEP 2 — date and times
   ============================================================ */
.bk-when {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.5rem;
    margin-bottom: 1.35rem;
}

.bk-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bk-field label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--main);
}

.bk-field input {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--secondary);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.bk-field select {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--secondary);
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.bk-field input:focus,
.bk-field select:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 4px rgba(var(--main-rgb), 0.12);
}

.bk-field.has-error input,
.bk-field.has-error select {
    border-color: var(--danger);
}

/* ---------- Step 4 — where we are coming ---------- */
.bk-location {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.1rem;
}

.bk-location .is-wide {
    grid-column: 1 / -1;
}

.bk-req {
    color: var(--danger);
}

.bk-hint {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}

.bk-hint a {
    color: var(--main);
    font-weight: 600;
}

.bk-hint a:hover {
    color: var(--secondary);
}

.bk-when-note {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.bk-when-note i {
    color: var(--main);
}

.bk-when-note strong {
    color: var(--secondary);
}

.bk-refresh {
    margin-top: 1rem;
}

.bk-slots {
    transition: opacity 0.25s;
}

.bk-slots.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.bk-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
    gap: 0.5rem;
}

.bk-slot {
    position: relative;
    cursor: pointer;
}

.bk-slot input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bk-slot > span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--secondary);
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.bk-slot:hover > span {
    border-color: var(--main);
    transform: translateY(-2px);
}

.bk-slot input:checked + span {
    border-color: var(--main);
    background: linear-gradient(135deg, var(--main), var(--extra));
    color: #fff;
    box-shadow: 0 10px 22px rgba(var(--main-rgb), 0.3);
}

.bk-slot input:focus-visible + span {
    outline: 3px solid rgba(var(--main-rgb), 0.4);
    outline-offset: 2px;
}

/* A taken time stays visible so the day still reads as a schedule. */
.bk-slot.is-taken {
    cursor: not-allowed;
}

.bk-slot.is-taken > span {
    border-style: dashed;
    background: var(--bg-soft);
    color: var(--muted);
    font-weight: 500;
}

.bk-slot.is-taken:hover > span {
    border-color: var(--border);
    transform: none;
}

/* How many therapists are still free at a time. Only rendered when the studio
   has more than one, so a single-therapist page is untouched. */
.bk-slot-free {
    display: block;
    width: fit-content;
    margin: 0.3rem auto 0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(var(--main-rgb), 0.1);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--main);
}

.bk-slot.is-taken .bk-slot-free {
    background: var(--bg-soft);
    color: var(--muted);
}

.bk-slots-empty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 1.1rem 1.2rem;
    border: 1.5px dashed var(--border);
    border-radius: 14px;
    background: var(--bg-soft);
    font-size: 0.95rem;
    color: var(--ink);
}

.bk-slots-empty i {
    color: var(--main);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.bk-slots-hint {
    margin: 0.85rem 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}

/* ============================================================
   STEP 3 — details
   ============================================================ */
.bk-fields .float-field {
    margin-bottom: 1.35rem;
}

.bk-notes {
    margin-bottom: 0.25rem;
}

.bk-notes label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 0.65rem;
}

.bk-notes .optional {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--muted);
}

.bk-notes textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--secondary);
    resize: vertical;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.bk-notes textarea:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 4px rgba(var(--main-rgb), 0.12);
}

/* ---------- Optional account ---------- */
.bk-account {
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--bg-soft), #fff);
    transition: border-color 0.25s, background 0.25s;
}

.bk-account:focus-within,
.bk-account:hover {
    border-color: rgba(var(--main-rgb), 0.5);
}

.bk-account.has-error {
    border-color: var(--danger);
}

.bk-account.is-guest {
    border-style: dashed;
    background: var(--bg-soft);
}

.bk-account-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.bk-account-toggle > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bk-account-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 1px;
    border: 2px solid var(--muted-soft);
    border-radius: 8px;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.bk-account-tick i {
    color: #fff;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.2s, transform 0.25s;
}

.bk-account-toggle input:checked + .bk-account-tick {
    background: var(--main);
    border-color: var(--main);
    box-shadow: 0 4px 12px rgba(var(--main-rgb), 0.4);
}

.bk-account-toggle input:checked + .bk-account-tick i {
    opacity: 1;
    transform: scale(1);
}

.bk-account-toggle input:focus-visible + .bk-account-tick {
    outline: 3px solid rgba(var(--main-rgb), 0.35);
    outline-offset: 2px;
}

.bk-account-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.bk-account-text small {
    display: block;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink);
}

.bk-account-fields {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--border);
}

.bk-account-fields.reveal {
    animation: bkReveal 0.4s ease both;
}

.bk-account-fields .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.bk-account-fields .float-field {
    margin-bottom: 0.3rem;
}

.bk-account-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.6rem 0 0;
    font-size: 0.82rem;
    color: var(--muted-soft);
}

/* Shown when the visitor unticks the account box. */
.bk-account-confirm {
    margin-top: 1.1rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid rgba(var(--main-rgb), 0.3);
    border-radius: 14px;
    background: rgba(var(--main-rgb), 0.07);
    animation: bkReveal 0.35s ease both;
}

.bk-account-confirm p {
    margin: 0 0 0.5rem;
    font-size: 0.89rem;
    line-height: 1.6;
    color: var(--ink);
}

.bk-account-confirm p:last-of-type {
    margin-bottom: 0;
}

.bk-account-confirm-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}

.bk-account-confirm-title i {
    color: var(--main);
}

.bk-account-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

/* ============================================================
   YOUR SESSION — the receipt, and the only submit
   ============================================================ */
.bk-summary h3 {
    margin-bottom: 1.1rem;
}

.bk-summary-list {
    display: grid;
    gap: 0.65rem;
    margin: 0 0 1.2rem;
}

.bk-summary-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px dashed var(--border);
}

.bk-summary-list > div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.bk-summary-list dt {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--main);
}

.bk-summary-list dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--secondary);
    text-align: right;
}

.bk-summary-list > div.is-total {
    align-items: center;
    padding-top: 0.85rem;
    padding-bottom: 0;
    border-top: 1px solid var(--border);
    border-bottom: none;
}

.bk-summary-list > div.is-total dt {
    color: var(--secondary);
}

.bk-summary-list > div.is-total dd {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--main);
}

/* A small lift when a summary value changes. */
.bk-summary-list dd.is-flash {
    animation: bkFlash 0.55s ease;
}

.bk-alert {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(200, 40, 40, 0.25);
    border-radius: 14px;
    background: rgba(200, 40, 40, 0.06);
    font-size: 0.87rem;
    color: var(--secondary);
}

.bk-alert > i {
    color: var(--danger);
    margin-top: 2px;
}

.bk-alert strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.bk-alert ul {
    margin: 0 0 0 1.1rem;
    padding: 0;
}

.bk-alert li {
    margin-bottom: 0.15rem;
    line-height: 1.5;
}

.bk-submit {
    position: relative;
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--main), var(--extra));
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
}

.bk-submit-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bk-submit-shine {
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.bk-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(var(--secondary-rgb), 0.3);
}

.bk-submit:hover .bk-submit-shine {
    left: 130%;
}

.bk-submit:active {
    transform: translateY(0);
}

.bk-submit-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.85rem 0 0;
    font-size: 0.83rem;
    text-align: center;
    color: var(--muted);
}

.bk-submit-note i {
    color: var(--main);
}

.bk-assurance {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    padding: 1.1rem 0 0;
    margin: 1.1rem 0 0;
    border-top: 1px solid var(--border);
}

.bk-assurance li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ink);
}

.bk-assurance i {
    color: var(--main);
    margin-top: 2px;
}

.bk-help {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--secondary);
}

.bk-help i {
    color: var(--main);
}

.bk-help:hover {
    color: var(--main);
}

/* ---------- Paused / empty states ---------- */
.bk-paused {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-soft);
    text-align: center;
}

.bk-paused > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 1.1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--extra), var(--main));
    color: #fff;
    font-size: 1.6rem;
}

.bk-paused h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: var(--secondary);
    margin-bottom: 0.6rem;
}

.bk-paused p {
    margin-bottom: 1.3rem;
    line-height: 1.7;
    color: var(--ink);
}

.bk-paused-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

/* ---------- Animation ---------- */
@keyframes bkReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bkFlash {
    from {
        color: var(--main);
        transform: translateY(-3px);
    }
    to {
        transform: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    /* .lp-two-col collapses at this width, but .bk-layout is loaded later and
       would otherwise win, so it has to be restated here. */
    .bk-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .bk-account-fields .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bk-location {
        grid-template-columns: 1fr;
    }

    .bk-slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    }

    .bk-when {
        flex-direction: column;
        align-items: stretch;
    }

    .bk-paused-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   PHONE — treatment rail + pinned action bar

   Step 1 stops being a tall grid and becomes one swipeable row: a full card
   with the next one peeking, so the menu is a single gesture rather than eight
   rows of scrolling. The chosen length and the booking button stay pinned, so
   treatment -> price -> book never separates.
   ============================================================ */
@media (max-width: 767px) {
    /* The groups are grid items, and a grid item's automatic minimum size is
       its min-content width. For a group holding a horizontal rail that is the
       rail's full max-content width, which widens the whole page past the
       phone. Zeroing it lets each rail shrink to its column and scroll within
       itself instead. */
    .bk-groups,
    .bk-group {
        min-width: 0;
    }

    .bk-cards {
        display: flex;
        grid-template-columns: none;
        min-width: 0;
        max-width: 100%;
        gap: 0.7rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Room for the selected card's lift and shadow. */
        padding: 0.45rem 0.25rem 1.1rem;
    }

    .bk-cards::-webkit-scrollbar {
        display: none;
    }

    .bk-card {
        flex: 0 0 64%;
        max-width: 280px;
        scroll-snap-align: start;
    }

    .bk-swipe-hint {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin: -0.3rem 0 0.85rem;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--muted);
    }

    .bk-swipe-hint i {
        color: var(--main);
    }

    /* The receipt's button stands down for the pinned bar — one submit, never
       two, and always within reach of the thumb. */
    .bk-summary .bk-submit {
        display: none;
    }

    .bk-mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.7rem clamp(0.9rem, 4vw, 1.4rem);
        padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -12px 32px rgba(var(--panel-rgb), 0.14);
    }

    .bk-mobile-bar-info {
        display: flex;
        flex-direction: column;
        gap: 0.05rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    .bk-mobile-bar-len {
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bk-mobile-bar-price {
        font-family: var(--font-heading);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--main);
        white-space: nowrap;
    }

    .bk-mobile-bar-btn {
        flex: 0 0 auto;
        padding: 0.8rem 1.15rem;
        white-space: nowrap;
    }

    /* Keep the last field clear of the bar… */
    .bk-form {
        padding-bottom: 6rem;
    }

    /* …and lift the floating widgets above it. */
    .site-fabs {
        bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 640px) {
    .bk-card-body {
        padding: 0.7rem 0.75rem 0.75rem;
    }

    .bk-card-name {
        font-size: 0.88rem;
    }

    /* Too narrow for the duration and the price to share a line, so the
       price drops under it instead of wrapping out of alignment. */
    .bk-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        padding-top: 0.55rem;
        font-size: 0.74rem;
    }
}

/* ---------- Desktop / ultrawide ---------- */
@media (min-width: 1440px) {
    .bk-card-name {
        font-size: 1.05rem;
    }

    .bk-length-body strong {
        font-size: 1.12rem;
    }

    .bk-slot > span {
        font-size: 0.98rem;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .bk-card,
    .bk-card-media img,
    .bk-length,
    .bk-length-tick,
    .bk-slot > span,
    .bk-account-tick,
    .bk-account-tick i,
    .bk-submit,
    .bk-submit-shine,
    .bk-card-check,
    .bk-slots {
        transition: none;
    }

    .bk-account-fields.reveal,
    .bk-account-confirm,
    .bk-summary-list dd.is-flash {
        animation: none;
    }
}

/* ---------- Voucher ---------- */
.bk-voucher {
    margin: 0 0 1.1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border, #e6dfd2);
    border-radius: 14px;
    background: var(--bg-soft, #faf8f5);
}

.bk-voucher > label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary, #432219);
}

.bk-voucher-row {
    display: flex;
    gap: 0.5rem;
}

.bk-voucher-row input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.62rem 0.75rem;
    border: 1.5px solid var(--border, #e6dfd2);
    border-radius: 10px;
    background: #fff;
    color: var(--secondary, #432219);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bk-voucher-row input::placeholder {
    letter-spacing: normal;
    text-transform: none;
    color: var(--muted, #7a7266);
}

.bk-voucher-row input:focus-visible {
    outline: none;
    border-color: var(--main, #a4773a);
    box-shadow: 0 0 0 3px rgba(var(--main-rgb, 164 119 58), 0.18);
}

.bk-voucher-row .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.bk-voucher-msg {
    margin: 0.55rem 0 0;
    min-height: 1em;
    font-size: 0.84rem;
    line-height: 1.5;
}

.bk-voucher-msg.is-ok {
    color: #2e7d32;
    font-weight: 600;
}

.bk-voucher-msg.is-error {
    color: #b3261e;
    font-weight: 600;
}

/* The receipt's discount line, revealed once a code has been accepted. The
   [hidden] rule is needed because the receipt's rows are laid out with flex. */
.bk-summary-list > div[hidden] {
    display: none;
}

.bk-summary-list .is-discount,
.bk-summary-list .is-discount dt,
.bk-summary-list .is-discount dd {
    color: #2e7d32;
    font-weight: 700;
}

.bk-summary-list .is-discount dd {
    white-space: nowrap;
}

.bk-discount-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--muted, #7a7266);
}

@media (max-width: 480px) {
    .bk-voucher-row {
        flex-wrap: wrap;
    }

    .bk-voucher-row .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Treatment groups ---------- */
.bk-groups {
    display: grid;
    gap: 1.4rem;
}

.bk-group-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.7rem;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

/* A real count of the treatments in the group. */
.bk-group-head small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.45rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    .bk-groups {
        gap: 1.15rem;
    }

    .bk-group-head {
        font-size: 0.97rem;
    }
}
