/*
 * Booking page — loaded only on /book
 * All design tokens come from cex-design-tokens.css via app.css.
 */

/* ── Step 7: two-column layout ─────────────────────────────────────────── */
.bk7-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    align-items: start;
}

/* Summary column */
.bk7-summary-col { position: sticky; top: 1rem; }
.bk7-summary-heading {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 0 0 0.65rem;
}

/* Form column */
.bk7-form-col { display: flex; flex-direction: column; gap: 1rem; }
.bk7-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.bk7-field { display: flex; flex-direction: column; gap: 0.35rem; }
.bk7-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
}
.bk7-optional {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--muted);
    margin-left: 0.4rem;
}
.bk7-required { color: #f0387a; }

.bk7-input, .bk7-textarea {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.bk7-input::placeholder, .bk7-textarea::placeholder { color: #7b85b8; }
.bk7-input:focus, .bk7-textarea:focus {
    outline: none;
    border-color: rgba(46,91,255,0.55);
    box-shadow: 0 0 0 3px rgba(46,91,255,0.12);
}
.bk7-input--error, .bk7-textarea--error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
}
.bk7-field-error {
    font-size: 0.78rem;
    color: #f87171;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.bk7-field-error::before { content: '⚠'; font-size: 0.72rem; }
.terms-accept-block--error {
    border-color: rgba(239,68,68,0.5) !important;
    background: rgba(239,68,68,0.06) !important;
}
.terms-error-msg {
    font-size: 0.78rem;
    color: #f87171;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.terms-error-msg::before { content: '⚠'; font-size: 0.72rem; }
.bk7-textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.bk7-readonly {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--muted);
    min-height: 42px;
}
.bk7-readonly svg { flex-shrink: 0; opacity: 0.5; }

/* Alternate contact collapsible */
.bk7-alt-contact {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.bk7-alt-contact__toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
    transition: color 0.15s, background 0.15s;
    user-select: none;
}
.bk7-alt-contact__toggle::-webkit-details-marker { display: none; }
.bk7-alt-contact__toggle svg { flex-shrink: 0; }
.bk7-alt-contact[open] .bk7-alt-contact__toggle { color: var(--white); background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); }
.bk7-alt-contact__toggle:hover { color: var(--white); }
.bk7-alt-contact__toggle::after {
    content: '﹢';
    margin-left: auto;
    font-size: 1rem;
    line-height: 1;
    color: var(--muted);
}
.bk7-alt-contact[open] .bk7-alt-contact__toggle::after { content: '﹣'; }
.bk7-alt-contact__hint {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--muted);
    opacity: 0.7;
}
.bk7-alt-contact__body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
}

.bk7-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.bk7-btn-back {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.bk7-btn-back:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }
.bk7-btn-submit {
    flex: 1;
    background: var(--blue);
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.16s;
}
.bk7-btn-submit:hover { background: var(--blue-h); }

@media (max-width: 700px) {
    .bk7-layout { grid-template-columns: 1fr; }
    .bk7-summary-col { position: static; }
    .bk7-row-2col { grid-template-columns: 1fr; }
}

/* Dark booking page overrides -------------------------------------------------
   Use the site's dark design tokens so the booking wizard blends with the
   existing site theme. These rules only apply when `body` has `booking-page`.
*/

body.booking-page {
    background: var(--navy);
    color: var(--white);
}

/* Override global booking-page max-width (app.css) to allow wider wizard */
.booking-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
    box-sizing: border-box;
}

.booking-page .bk-wizard {
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

/* Slot grid styling */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
}
.slot-btn {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    text-align: center;
    font-weight: 700;
}
.slot-btn[disabled], .slot-btn[aria-disabled='true'] {
    opacity: 0.35;
    cursor: not-allowed;
}
.slot-btn .slot-time { font-size: 0.95rem; }
.slot-btn .slot-end { font-size: 0.72rem; color: var(--muted); }
.slot-btn.selected {
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(46,91,255,0.12);
    transform: translateY(-2px);
}

/* Deposit hint */
.book-deposit-hint { margin: 0.75rem 0 0; padding: 0.6rem 0.8rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 8px; color: var(--muted); font-size: 0.92rem; }

/* ── Step 6: calendar + slots layout ───────────────────────────────────── */
.bk-step6-layout {
    display: grid;
    grid-template-columns: 294px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Calendar widget */
.bk-cal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    user-select: none;
}
.bk-cal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.bk-cal__month-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
}
.bk-cal__nav {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.bk-cal__nav:hover:not(:disabled) {
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
}
.bk-cal__nav:disabled { opacity: 0.2; cursor: not-allowed; }
.bk-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.bk-cal__dow {
    text-align: center;
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--muted);
    padding: 0.2rem 0 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bk-cal__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--white);
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.13s, color 0.13s;
}
.bk-cal__day:hover:not(:disabled):not(.bk-cal__day--empty) {
    background: rgba(46,91,255,0.2);
}
.bk-cal__day--empty { cursor: default; pointer-events: none; }
.bk-cal__day--today {
    background: rgba(46,91,255,0.12);
    color: #8ba4ff;
    font-weight: 700;
}
.bk-cal__day--selected {
    background: var(--blue) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(46,91,255,0.4);
}
.bk-cal__day--disabled { opacity: 0.22; cursor: not-allowed; }

/* Slots panel */
.bk-slots-col { min-width: 0; }
.bk-slots-heading {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 0.85rem;
}

/* Skip link */
.bk-step6-skip {
    margin-top: 1.5rem;
    text-align: center;
}
.bk-step6-skip a {
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.bk-step6-skip a:hover { color: var(--cyan); }

@media (max-width: 640px) {
    .bk-step6-layout { grid-template-columns: 1fr; }
    .bk-cal { width: 100%; box-sizing: border-box; }
    .slot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Animation timing tokens (easy tuning) */
:root {
    --anim-fast: 180ms;
    --anim-medium: 360ms;
    --anim-slow: 480ms;
    --anim-ease: cubic-bezier(.2,.9,.2,1);
}

/* Page headings and subheadings */
body.booking-page .wiz-page-title,
body.booking-page .bsh-title,
body.booking-page .bk-hero-h1 { color: var(--white); }
body.booking-page .wiz-page-sub,
body.booking-page .bsh-sub { color: var(--muted); }

/* Keep header dark (no override) but ensure logo/text remain readable */
body.booking-page .site-header { background: var(--header-bg); }
body.booking-page .site-header .logo-text { color: var(--white); }

/* Primary CTA uses brand blue on dark background */
.bk-btn-primary, .wiz-cat-card__cta { background: var(--blue) !important; color: #fff !important; border: none !important; }
.bk-btn-primary:hover, .wiz-cat-card__cta:hover { background: var(--blue-h) !important; }

/* Category cards — dark surface tokens */
.wiz-cat-card, .bk-cat-tile { background: var(--card-bg); border: 1px solid var(--border); color: var(--white); }
.wiz-cat-card__name, .bk-cat-tile__name { color: var(--white); }
.wiz-cat-card__hint, .bk-cat-tile__sub { color: var(--muted); }
.wiz-cat-card__icon-wrap { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.04); }

/* Booking summary card — dark variant */
.booking-summary-card { background: var(--card-bg); border: 1px solid var(--border); }

/* Trust pills on dark background */
.bk-trust-pill { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.04); color: var(--muted); }

/* Form controls on dark surfaces */
body.booking-page input, body.booking-page select, body.booking-page textarea { background: var(--card-bg); color: var(--white); border: 1px solid var(--border); }

/* Ensure dev tiles and detail lists are readable on dark */
.bk-dev-grid .bk-dev-tile, .bk-dev-tile { background: var(--card-bg); border: 1px solid var(--border); }

/* Subtle dark shadows for depth */
.wiz-cat-card, .bk-cat-grid .bk-cat-tile, .bk-dev-tile { box-shadow: 0 8px 30px rgba(2,6,23,0.6); }

@media (max-width: 768px) { body.booking-page .site-header { box-shadow: none; } }

/* Entrance animation utility */
.bk-anim-in {
    opacity: 1 !important;
    transform: none !important;
    transition: transform var(--anim-medium) var(--anim-ease), opacity var(--anim-medium) var(--anim-ease);
}

/* Card hover interactions */
.bk-cat-tile, .bk-dev-tile {
    transition: transform var(--anim-fast) ease, box-shadow var(--anim-fast) ease;
    will-change: transform;
}
.bk-cat-tile:hover, .bk-dev-tile:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 40px rgba(2,6,23,0.6); }

.bk-repair-card { transition: transform var(--anim-fast) ease, box-shadow var(--anim-fast) ease; }
.bk-repair-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(2,6,23,0.6); }

/* Hero phone gentle float */
@keyframes bkFloat { 0% { transform: translateY(0); } 50% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
.bk-hero-right svg { animation: bkFloat var(--anim-slow) ease-in-out infinite; transform-origin: 50% 50%; }

/* CTA micro-interaction */
.bk-btn-primary { transition: transform var(--anim-fast) ease, box-shadow var(--anim-fast) ease; }
.bk-btn-primary:active { transform: scale(0.98); }
.bk-btn-primary.bk-cta-pulse { box-shadow: 0 6px 26px rgba(46,91,255,0.18); animation: bkPulse var(--anim-medium) infinite; }
@keyframes bkPulse { 0% { box-shadow: 0 6px 26px rgba(46,91,255,0.0); } 50% { box-shadow: 0 10px 40px rgba(46,91,255,0.12); } 100% { box-shadow: 0 6px 26px rgba(46,91,255,0.0); } }

/* Thumbnail active scale */
.bk-thumb { transition: transform var(--anim-fast) ease, box-shadow var(--anim-fast) ease; }
.bk-thumb.active { transform: scale(1.02); box-shadow: 0 10px 30px rgba(2,6,23,0.6); }

/* SVG icon styling */
.icon { display: inline-block; vertical-align: middle; color: var(--muted); }
.icon use { fill: currentColor; }
.icon.icon-phone-portrait, .icon.icon-tablet, .icon.icon-laptop, .icon.icon-console { color: var(--muted); }
.bk-cat-tile__icon svg.icon { width: 40px; height: 40px; }
.bk-dev-img svg.icon { width: 44px; height: 56px; }
.bk-repair-img svg.icon { width: 60px; height: 60px; }
.bk-dev-img img.bk-dev-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.hero-phone { width: 220px; height: 320px; display: block; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .bk-anim-in, .bk-cat-tile, .bk-dev-tile, .bk-repair-card, .bk-thumb, .bk-btn-primary { transition: none !important; animation: none !important; transform: none !important; }
    .bk-hero-right svg { animation: none !important; }
}


/* ── Hide old 5-step progress nav (JS still references it internally) ─────── */
.wiz-progress { display: none !important; }

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.repair-wizard-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* ── 3-Step Progress Bar ──────────────────────────────────────────────────── */
.booking-progress {
    max-width: 480px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.bp-track {
    position: absolute;
    top: 24px;
    left: 16.67%;
    right: 16.67%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    z-index: 0;
}

.bp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), #00c2e8);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bp-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.bp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.bp-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #181b35;
    border: 2px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bp-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
}

.bp-tick {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.bp-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-align: center;
    white-space: nowrap;
}

.bp-step.active .bp-dot {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 0 5px rgba(46,91,255,0.18), 0 4px 16px rgba(46,91,255,0.4);
}

.bp-step.active .bp-num { color: #fff; }

.bp-step.active .bp-label {
    color: #fff;
    font-weight: 700;
}

.bp-step.completed .bp-dot {
    background: rgba(0,194,140,0.15);
    border-color: #00c28c;
}

.bp-step.completed .bp-label { color: #00c28c; }

@media (max-width: 480px) {
    .bp-label { font-size: 0.72rem; }
    .bp-dot { width: 40px; height: 40px; }
    .bp-num, .bp-tick { font-size: 0.85rem; }
    .bp-track { top: 20px; }
    .booking-progress { margin-bottom: 2rem; }
}

/* ── Step heading ─────────────────────────────────────────────────────────── */
.booking-step-heading {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2rem;
}

.bsh-title {
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bsh-sub {
    font-size: 0.95rem;
    color: rgba(168,179,216,0.9);
    line-height: 1.6;
    margin: 0;
}

/* ── Help panel (hidden — removed from HTML, kept for safety) ─────────────── */
.booking-help { display: none !important; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.wiz-page-head {
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 0.25rem;
}

.wiz-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.wiz-page-sub {
    font-size: 1rem;
    color: rgba(168,179,216,0.9);
    margin: 0 0 1.5rem;
}

/* ── Trust strip ─────────────────────────────────────────────────────────── */
.bk-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    justify-content: center;
}

.bk-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 99px;
    background: rgba(46,91,255,0.1);
    border: 1px solid rgba(46,91,255,0.22);
    font-size: 0.83rem;
    font-weight: 600;
    color: #dce4ff;
    white-space: nowrap;
}

.bk-trust-check {
    color: #4ade80;
    font-weight: 700;
}

/* ── Category grid ────────────────────────────────────────────────────────── */
.wiz-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto 2.5rem;
}

@media (min-width: 700px) {
    .wiz-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
}

/* ── Category cards ───────────────────────────────────────────────────────── */
.wiz-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #13162e;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease,
                box-shadow 0.2s ease, background 0.2s ease;
    text-align: center;
    gap: 0;
    height: auto;
}

.wiz-cat-card:hover,
.wiz-cat-card:focus-visible {
    border-color: rgba(46,91,255,0.55);
    background: rgba(46,91,255,0.08);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(46,91,255,0.25);
    outline: none;
}

.wiz-cat-card:active { transform: scale(0.97); }

.wiz-cat-bg { display: none; }

/* ── Icon wrapper ─────────────────────────────────────────────────────────── */
.wiz-cat-card__icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(46,91,255,0.13);
    border: 1px solid rgba(46,91,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.wiz-cat-card__icon {
    color: #c5d0ff;
}

.wiz-cat-card__icon svg {
    display: block;
    width: 30px;
    height: 30px;
}

/* ── Card text ────────────────────────────────────────────────────────────── */
.wiz-cat-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.wiz-cat-card__hint {
    font-size: 0.8rem;
    color: var(--cyan);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ── Typical repairs list ─────────────────────────────────────────────────── */
.wiz-cat-card__repairs {
    list-style: none;
    margin: 0 0 auto;
    padding: 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.75rem;
}

.wiz-cat-card__repairs li {
    font-size: 0.75rem;
    color: rgba(168,179,216,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 4px 0;
    text-align: left;
}

.wiz-cat-card__repairs li:last-child { border-bottom: none; }

/* ── CTA button ──────────────────────────────────────────────────────────── */
.wiz-cat-card__cta {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.wiz-cat-card:hover .wiz-cat-card__cta,
.wiz-cat-card:focus-visible .wiz-cat-card__cta {
    background: var(--blue-h);
}

/* ── How it works strip ───────────────────────────────────────────────────── */
.bk-how-it-works {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.bk-how-it-works__title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(168,179,216,0.55);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 1rem;
}

.bk-how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bk-how-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.025);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: left;
}

.bk-how-step__num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(46,91,255,0.14);
    border: 1px solid rgba(46,91,255,0.28);
    color: #a0b0ff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bk-how-step__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    line-height: 1.3;
}

/* ── Booking Summary Card ─────────────────────────────────────────────────── */
.booking-summary-card {
    background: rgba(46,91,255,0.06);
    border: 1px solid rgba(46,91,255,0.2);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.bsc-head {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(168,179,216,0.55);
    margin-bottom: 0.85rem;
}

.bsc-rows { display: flex; flex-direction: column; gap: 0.5rem; }

.bsc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 0.5rem;
}

.bsc-row:last-child { border-bottom: none; padding-bottom: 0; }

.bsc-label { color: rgba(168,179,216,0.8); flex-shrink: 0; }
.bsc-value { color: #fff; font-weight: 600; text-align: right; }

.bsc-price .bsc-price-val {
    color: var(--cyan);
    font-size: 1.2rem;
    font-weight: 800;
}

.bsc-deposit-note {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #f5a623;
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.bsc-edit {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: rgba(168,179,216,0.6);
    text-decoration: none;
}

.bsc-edit:hover { color: var(--cyan); }

/* ── Field hints ─────────────────────────────────────────────────────────── */
.field-hint,
.form-hint {
    font-size: 0.78rem;
    color: rgba(168,179,216,0.75);
    margin-top: 0.35rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .bk-trust-strip {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .bk-trust-strip::-webkit-scrollbar { display: none; }

    .wiz-cat-grid { gap: 0.75rem; }

    .bk-how-it-works__steps { grid-template-columns: 1fr; gap: 0.6rem; }

    .btn,
    button[type="submit"],
    .wiz-cat-card__cta { min-height: 48px; font-size: 1rem; }
}

@media (max-width: 380px) {
    .wiz-cat-grid { grid-template-columns: 1fr; }
}


/* Final dark-theme overrides (placed last to win specificity) */
body.booking-page .wiz-page-title { color: var(--white) !important; }
body.booking-page .bsh-title { color: var(--white) !important; }
body.booking-page .wiz-page-sub, body.booking-page .bsh-sub { color: var(--muted) !important; }
body.booking-page .wiz-cat-card, body.booking-page .wiz-cat-card__icon-wrap { background: var(--card-bg) !important; border-color: var(--border) !important; color: var(--white) !important; }
body.booking-page .wiz-cat-card__name { color: var(--white) !important; }
body.booking-page .wiz-cat-card__hint { color: var(--muted) !important; }
body.booking-page .wiz-cat-card__cta, body.booking-page .bk-btn-primary { background: var(--blue) !important; color: #fff !important; border: none !important; }
body.booking-page .booking-summary-card { background: var(--card-bg) !important; border-color: var(--border) !important; }
body.booking-page .bk-trust-pill { background: rgba(255,255,255,0.02) !important; border-color: rgba(255,255,255,0.04) !important; color: var(--muted) !important; }
body.booking-page .wiz-cat-card, .bk-cat-grid .bk-cat-tile, .bk-dev-tile { box-shadow: 0 8px 30px rgba(2,6,23,0.6) !important; }

/* Additional selectors used by the JS-rendered wizard */
body.booking-page .bk-hero-h1, body.booking-page h1 { color: var(--white) !important; }
body.booking-page .bk-cat-tile { background: var(--card-bg) !important; border: 1px solid var(--border) !important; color: var(--white) !important; box-shadow: 0 8px 30px rgba(2,6,23,0.6) !important; }
body.booking-page .bk-cat-tile .bk-cat-tile__name { color: var(--white) !important; }
body.booking-page .bk-cat-tile .bk-cat-tile__sub { color: var(--muted) !important; }

/* ── Intro hero banner (step 1 only — hidden via JS on steps 2+) ──────────── */
.bk-intro {
    text-align: center;
    padding: 1.75rem 1rem 2.75rem;
}
.bk-intro.hidden { display: none; }

.bk-intro__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cyan);
    background: rgba(0,194,232,0.08);
    border: 1px solid rgba(0,194,232,0.2);
    border-radius: 99px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1.25rem;
}

.bk-intro__title {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.035em;
    margin: 0 0 0.9rem;
    line-height: 1.1;
}

.bk-intro__title mark {
    background: none;
    background-image: linear-gradient(135deg, #4d7bff 0%, #00c2e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bk-intro__sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 460px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
}

.bk-intro__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.bk-intro__pills li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.pill-check { color: #4ade80; font-weight: 800; }

/* ── Redesigned book-header ─────────────────────────────────────────────── */
.book-header {
    display: block !important;
    margin-bottom: 2.25rem;
}

.book-progress-wrap {
    height: 5px;
    background: rgba(255,255,255,0.07);
    overflow: hidden;
    margin-bottom: 1.75rem;
    border-radius: 0 0 4px 4px;
}

.book-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
    border-radius: 0 2px 2px 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(46,91,255,0.45);
}

.book-header__inner {
    position: relative;
    text-align: center;
    padding: 0 3.5rem;
}

.bk-header-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.42rem 0.85rem;
    border-radius: 9px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.bk-header-back:hover { border-color: rgba(255,255,255,0.22); color: var(--white); }
.bk-header-back[hidden] { display: none; }

/* ── Step dots progress indicator ──────────────────────────────────────── */
.bk-step-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1rem;
}

.bk-sd-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.bk-sd-dot--done {
    background: var(--blue);
    border-color: var(--blue);
}

.bk-sd-dot--active {
    width: 12px;
    height: 12px;
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(46,91,255,0.25), 0 0 10px rgba(46,91,255,0.4);
    transform: scale(1.1);
}

.bk-sd-line {
    flex: 1;
    max-width: 28px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    transition: background 0.25s;
}

.bk-sd-line--done {
    background: var(--blue);
}

@media (max-width: 480px) {
    .bk-sd-line { max-width: 16px; }
}

/* Override app.css: bigger + centred step label */
.booking-page .book-step-label {
    font-size: clamp(1.5rem, 4vw, 2.1rem) !important;
    font-weight: 800 !important;
    text-align: center !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.2 !important;
}

.booking-page .book-step-counter {
    text-align: center !important;
    font-size: 0.7rem !important;
    opacity: 0.55 !important;
}

/* ── Per-category accent colours ────────────────────────────────────────── */
.book-tile[data-slug*="phone"],
.book-tile[data-slug*="tablet"] {
    --tc-accent: #2e5bff;
    --tc-glow: rgba(46,91,255,0.1);
}
.book-tile[data-slug*="laptop"],
.book-tile[data-slug*="macbook"],
.book-tile[data-slug*="chromebook"] {
    --tc-accent: #00c2e8;
    --tc-glow: rgba(0,194,232,0.1);
}
.book-tile[data-slug*="console"],
.book-tile[data-slug*="gaming"],
.book-tile[data-slug*="nintendo"] {
    --tc-accent: #9b7aff;
    --tc-glow: rgba(155,122,255,0.1);
}
.book-tile[data-slug*="audio"],
.book-tile[data-slug*="earbud"],
.book-tile[data-slug*="headphone"] {
    --tc-accent: #ff7a5a;
    --tc-glow: rgba(255,122,90,0.1);
}
.book-tile[data-slug*="watch"] {
    --tc-accent: #f5a623;
    --tc-glow: rgba(245,166,35,0.1);
}
.book-tile[data-slug*="camera"],
.book-tile[data-slug*="drone"] {
    --tc-accent: #0eb87f;
    --tc-glow: rgba(14,184,127,0.1);
}

.book-tile:hover,
.book-tile.selected {
    border-color: var(--tc-accent, var(--blue)) !important;
    background: var(--tc-glow, rgba(46,91,255,0.1)) !important;
    box-shadow: 0 0 0 1px var(--tc-accent, var(--blue)), 0 8px 24px rgba(0,0,0,0.3) !important;
}

/* Centre the category grid so partial rows don't left-align */
#stepCategoryGrid {
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Category tiles: larger, with icon glow + top accent line */
#stepCategoryGrid .book-tile {
    min-height: 105px;
    padding: 1.5rem 0.85rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}

#stepCategoryGrid .book-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tc-accent, var(--blue)), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
#stepCategoryGrid .book-tile:hover::before,
#stepCategoryGrid .book-tile.selected::before { opacity: 0.8; }

#stepCategoryGrid .book-tile svg {
    filter: drop-shadow(0 2px 6px var(--tc-accent, rgba(46,91,255,0.5)));
    opacity: 0.8;
    transition: opacity 0.18s, filter 0.18s;
}
#stepCategoryGrid .book-tile:hover svg,
#stepCategoryGrid .book-tile.selected svg {
    opacity: 1;
    filter: drop-shadow(0 3px 10px var(--tc-accent, rgba(46,91,255,0.7)));
}

#stepCategoryGrid .book-tile .book-tile__label { font-size: 0.88rem; font-weight: 700; }

/* ── Step transition animation ──────────────────────────────────────────── */
.book-step.active {
    animation: bkStepIn 0.2s ease both;
}
@keyframes bkStepIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Better slot buttons ─────────────────────────────────────────────────── */
.slot-btn:not([disabled]):not([aria-disabled='true']) {
    border-color: rgba(46,91,255,0.28);
    background: rgba(46,91,255,0.06);
    transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.slot-btn:not([disabled]):not([aria-disabled='true']):hover {
    border-color: var(--blue);
    background: rgba(46,91,255,0.14);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46,91,255,0.2);
}
.slot-btn.selected {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(46,91,255,0.38) !important;
    transform: translateY(-2px) !important;
}
.slot-btn .slot-time { font-size: 1rem; font-weight: 800; }

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .book-header__inner { padding: 0 2.25rem; }
    .bk-header-back { font-size: 0.72rem; padding: 0.35rem 0.6rem; }
    .bk-intro { padding: 1.25rem 1rem 2rem; }
    .bk-intro__sub { font-size: 0.92rem; }
    .bk-intro__pills { gap: 0.4rem; }
    .bk-intro__pills li { font-size: 0.75rem; padding: 0.38rem 0.8rem; }
    #stepCategoryGrid .book-tile { min-height: 88px; }
}

/* ── Terms acceptance block (Step 7) ──────────────────────────────────────── */
.terms-accept-block {
    background: rgba(46,91,255,0.06);
    border: 1px solid rgba(46,91,255,0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.25rem 0;
}
.terms-check-label {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    cursor: pointer;
}
.terms-check-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--blue);
    cursor: pointer;
}
.terms-check-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--offwhite, var(--white));
}
.terms-link { color: var(--cyan); text-decoration: underline; }
.terms-link:hover { color: var(--white); }
.terms-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.5rem;
    margin-left: 2.375rem;
}



