/* =========================================================
   NORTH CRESCENT FACILITY SOLUTIONS
   BOOKING PAGE — SINGLE-SCREEN EXPERIENCE
   File: /styles/booking.css

   Layout:  hero (title + email)
            └ stage card: progress → 3 columns → details row
   Depends on /styles/design-system.css for header, footer and
   the floating contact bar. Uses its --nc-* tokens when they
   exist and falls back to the brand values otherwise.
   ========================================================= */


/* =========================================================
   0. TOKENS & BASE
========================================================= */

.booking-page {
    --bk-navy: var(--nc-navy, #0B2D48);
    --bk-navy-2: #174563;
    --bk-deep: #08263E;
    --bk-teal: var(--nc-teal, #08A99D);
    --bk-teal-2: var(--nc-teal-light, #35C8B9);
    --bk-teal-dark: #087F7B;
    --bk-ink: #173B59;
    --bk-muted: #5B7083;
    --bk-faint: #5F778B;
    --bk-line: #DCE8EF;
    --bk-soft: #F4F9FB;
    --bk-danger: #C0392B;
    --bk-ease: cubic-bezier(.2, .75, .25, 1);

    box-sizing: border-box;
    width: 100%;
    padding-bottom: clamp(40px, 6vw, 72px);
    font-family: var(--nc-font, "Poppins", "Poppins Fallback", sans-serif);
    color: var(--bk-ink);
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F7F9 100%);
}

.booking-page *,
.booking-page *::before,
.booking-page *::after {
    box-sizing: border-box;
}

/* JS toggles [hidden]; it must always win over display: grid/flex */
.booking-page [hidden] {
    display: none !important;
}

.booking-container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.booking-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.booking-page :is(button, input, textarea):focus-visible {
    outline: 3px solid rgb(8 169 157 / 45%);
    outline-offset: 3px;
}

.booking-page button {
    font-family: inherit;
}

.booking-stage,
.booking-panel,
.booking-details,
.booking-review {
    scroll-margin-top: 96px;
}


/* =========================================================
   1. HERO
========================================================= */

.booking-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(30px, 4vw, 48px) 0 clamp(96px, 9vw, 116px);
    color: #FFFFFF;
    background:
        radial-gradient(
            ellipse at 82% 0%,
            rgb(8 169 157 / 22%),
            transparent 46%
        ),
        linear-gradient(
            100deg,
            rgb(8 38 62 / 95%) 0%,
            rgb(11 45 72 / 86%) 52%,
            rgb(11 45 72 / 58%) 100%
        ),
        url("/images/service-cleanin-moncton-nb.WEBP")
            center / cover no-repeat,
        #0B2D48;
}

.booking-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}

.booking-hero-copy {
    min-width: 0;
}

.booking-hero-kicker {
    margin: 0 0 8px;
    color: var(--bk-teal-2);
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.booking-hero-title {
    margin: 0 0 22px;
    color: #FFFFFF;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.booking-hero-title span {
    color: var(--bk-teal-2);
}

.booking-hero-benefits {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.booking-hero-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: clamp(14px, 2vw, 26px);
    color: rgb(255 255 255 / 94%);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
}

.booking-hero-benefit + .booking-hero-benefit {
    padding-left: clamp(14px, 2vw, 26px);
    border-left: 1px solid rgb(255 255 255 / 22%);
}

.booking-hero-benefit svg {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #FFFFFF;
}


/* =========================================================
   2. EMAIL CARD
========================================================= */

.booking-email-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 22px 24px;
    border: 2px solid var(--bk-teal-2);
    border-radius: 22px;
    background: #FFFFFF;
    color: var(--bk-ink);
    box-shadow:
        0 0 0 6px rgb(53 200 185 / 28%),
        0 8px 18px rgb(0 0 0 / 14%),
        0 30px 60px rgb(0 0 0 / 30%);
    transition:
        box-shadow 300ms ease,
        transform 300ms var(--bk-ease);
}

/* Pulsing halo that draws the eye until the visitor interacts */
.booking-email-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgb(53 200 185 / 55%);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .booking-email-card::before {
        animation: booking-email-pulse 2.4s ease-out infinite;
    }

    .booking-email-card:focus-within::before,
    .booking-email-card.is-valid::before {
        animation: none;
    }
}

@keyframes booking-email-pulse {
    0%   { box-shadow: 0 0 0 0 rgb(53 200 185 / 55%); }
    70%  { box-shadow: 0 0 0 22px rgb(53 200 185 / 0%); }
    100% { box-shadow: 0 0 0 0 rgb(53 200 185 / 0%); }
}

.booking-email-card:focus-within {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 6px rgb(53 200 185 / 45%),
        0 8px 18px rgb(0 0 0 / 14%),
        0 34px 70px rgb(0 0 0 / 32%);
}

.booking-email-icon {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0AB7A8, #08A99D 55%, #078C86);
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgb(8 169 157 / 35%);
}

.booking-email-icon svg {
    width: 28px;
    height: 28px;
}

.booking-email-content {
    flex: 1;
    min-width: 0;
}

.booking-email-content label {
    display: block;
    margin-bottom: 8px;
    color: var(--bk-navy);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.booking-email-input-wrap {
    position: relative;
}

.booking-email-input-wrap input {
    width: 100%;
    height: 56px;
    padding: 0 68px 0 18px;
    border: 2px solid #B5E3DD;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--bk-navy);
    font-family: inherit;
    font-size: 1rem;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.booking-email-input-wrap input::placeholder {
    color: #6E8496;
}

.booking-email-input-wrap input:focus {
    outline: none;
    border-color: var(--bk-teal);
    box-shadow: 0 0 0 4px rgb(8 169 157 / 14%);
}

.booking-email-go {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0AB7A8, #08A99D 55%, #078C86);
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 6px 14px rgb(8 169 157 / 32%);
    transition:
        transform 260ms var(--bk-ease),
        box-shadow 260ms ease;
}

.booking-email-go svg {
    grid-area: 1 / 1;
    width: 18px;
    height: 18px;
    transition:
        opacity 220ms ease,
        transform 320ms var(--bk-ease);
}

.booking-email-go .booking-icon-check {
    opacity: 0;
    transform: scale(0.4) rotate(-30deg);
}

@media (hover: hover) and (pointer: fine) {
    .booking-email-go:hover {
        transform: translateX(2px) scale(1.06);
        box-shadow: 0 8px 18px rgb(8 169 157 / 42%);
    }
}

.booking-email-card.is-valid .booking-icon-arrow {
    opacity: 0;
    transform: scale(0.4);
}

.booking-email-card.is-valid .booking-icon-check {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.booking-email-card.is-invalid .booking-email-input-wrap input {
    border-color: var(--bk-danger);
    box-shadow: 0 0 0 4px rgb(192 57 43 / 10%);
}

.booking-email-feedback {
    margin: 0;
    color: var(--bk-danger);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
}

.booking-email-feedback {
    min-height: 1.2em;
    margin-top: 6px;
}

.booking-email-card.is-valid .booking-email-feedback {
    color: var(--bk-teal-dark);
}


/* =========================================================
   3. STAGE CARD
========================================================= */

.booking-stage {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * clamp(60px, 6vw, 72px));
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 28px;
    background: rgb(255 255 255 / 94%);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow:
        0 2px 6px rgb(8 38 62 / 6%),
        0 14px 34px rgb(8 38 62 / 10%),
        0 40px 80px rgb(8 38 62 / 14%);
}


/* ---------- Progress ---------- */

.booking-progress {
    padding: 4px 4px 18px;
}

.booking-progress-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.booking-progress-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.booking-progress-step:not(:last-child)::before,
.booking-progress-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 4px;
    border-radius: 4px;
}

.booking-progress-step:not(:last-child)::before {
    background: var(--bk-line);
}

.booking-progress-step:not(:last-child)::after {
    background: linear-gradient(90deg, var(--bk-teal), var(--bk-teal-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 520ms var(--bk-ease);
}

.booking-progress-step.is-complete:not(:last-child)::after {
    transform: scaleX(1);
}

.booking-progress-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--bk-line);
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--bk-faint);
    font-size: 0.92rem;
    font-weight: 700;
    transition:
        background-color 320ms ease,
        border-color 320ms ease,
        color 320ms ease,
        box-shadow 320ms ease,
        transform 320ms var(--bk-ease);
}

.booking-progress-label {
    color: var(--bk-faint);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 320ms ease;
}

.booking-progress-step.is-active .booking-progress-number {
    border-color: var(--bk-navy);
    background: linear-gradient(145deg, var(--bk-navy-2), var(--bk-deep));
    color: #FFFFFF;
    box-shadow:
        0 0 0 5px rgb(11 45 72 / 10%),
        0 8px 16px rgb(11 45 72 / 22%);
}

.booking-progress-step.is-active .booking-progress-label {
    color: var(--bk-navy);
}

.booking-progress-step.is-complete .booking-progress-number {
    border-color: var(--bk-teal);
    background: var(--bk-teal);
    color: #FFFFFF;
    font-size: 0;
}

.booking-progress-step.is-complete .booking-progress-number::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 6px;
    border-bottom: 2.5px solid currentColor;
    border-left: 2.5px solid currentColor;
    transform: translate(-50%, -68%) rotate(-45deg);
}

.booking-progress-step.is-complete .booking-progress-label {
    color: var(--bk-teal-dark);
}

/* ---------- Progress route effects ---------- */

/* Completed segments: solid teal with a light sweeping along the route */
.booking-progress-step.is-complete:not(:last-child)::after {
    background:
        linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 75%) 50%, transparent 100%) no-repeat,
        linear-gradient(90deg, var(--bk-teal), var(--bk-teal-2));
    background-size: 40% 100%, 100% 100%;
    background-position: -60% 0, 0 0;
}

/* Segment ahead of the current step: animated dashes flowing to the next step */
.booking-progress-step.is-active:not(.is-complete):not(:last-child)::after {
    background: repeating-linear-gradient(
        90deg,
        var(--bk-teal-2) 0 10px,
        transparent 10px 18px
    );
    background-size: 36px 100%;
    opacity: 0.85;
    transform: scaleX(1);
}

/* Current step: soft "you are here" pulse */
.booking-progress-step.is-active .booking-progress-number::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgb(53 200 185 / 55%);
    pointer-events: none;
}

.booking-progress-step.is-active .booking-progress-number {
    transform: scale(1.08);
}

@media (prefers-reduced-motion: no-preference) {
    .booking-progress-step.is-complete:not(:last-child)::after {
        animation: booking-route-shine 2.6s ease-in-out infinite;
    }

    .booking-progress-step.is-active:not(.is-complete):not(:last-child)::after {
        animation: booking-route-flow 0.9s linear infinite;
    }

    .booking-progress-step.is-active .booking-progress-number::after {
        animation: booking-step-pulse 2s ease-out infinite;
    }

    .booking-progress-step.is-complete .booking-progress-number {
        animation: booking-step-pop 420ms var(--bk-ease);
    }
}

@keyframes booking-route-shine {
    0%   { background-position: -60% 0, 0 0; }
    60%, 100% { background-position: 160% 0, 0 0; }
}

@keyframes booking-route-flow {
    from { background-position: 0 0; }
    to   { background-position: 36px 0; }
}

@keyframes booking-step-pulse {
    0%   { box-shadow: 0 0 0 0 rgb(53 200 185 / 55%); }
    70%  { box-shadow: 0 0 0 12px rgb(53 200 185 / 0%); }
    100% { box-shadow: 0 0 0 0 rgb(53 200 185 / 0%); }
}

@keyframes booking-step-pop {
    0%   { transform: scale(0.7); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}


/* ---------- Columns ---------- */

.booking-columns {
    display: grid;
    grid-template-columns:
        minmax(0, 1.18fr)
        minmax(0, 1fr)
        minmax(0, 0.92fr);
    gap: clamp(12px, 1.6vw, 18px);
    align-items: stretch;
}

.booking-panel,
.booking-details {
    position: relative;
    min-width: 0;
    padding: clamp(16px, 1.8vw, 22px);
    border: 1px solid var(--bk-line);
    border-radius: 20px;
    background: linear-gradient(160deg, #FFFFFF 0%, #F7FBFC 100%);
    box-shadow:
        0 2px 6px rgb(11 45 72 / 4%),
        0 12px 28px rgb(11 45 72 / 5%);
    transition:
        border-color 320ms ease,
        box-shadow 320ms ease;
}

/* signature hairline across the top of every panel */
.booking-panel::before,
.booking-details::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #104C70, var(--bk-teal), var(--bk-teal-2));
    opacity: 0.55;
    transition: opacity 320ms ease;
}

.booking-panel:focus-within::before,
.booking-details:focus-within::before {
    opacity: 1;
}

.booking-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.booking-panel-num {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--bk-navy-2), var(--bk-deep));
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgb(11 45 72 / 22%);
}

.booking-panel-head h2 {
    margin: 0;
    color: var(--bk-navy);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

/* validation attention pulse (added by JS when something is missing) */
.booking-panel.is-attention,
.booking-details.is-attention {
    border-color: var(--bk-danger);
    animation: bkAttention 1.4s ease 1;
}

@keyframes bkAttention {
    0%, 100% { box-shadow: 0 2px 6px rgb(11 45 72 / 4%), 0 12px 28px rgb(11 45 72 / 5%); }
    35%      { box-shadow: 0 0 0 5px rgb(192 57 43 / 16%), 0 12px 28px rgb(11 45 72 / 5%); }
}


/* =========================================================
   4. SERVICE CARDS
========================================================= */

.booking-service-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.booking-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.booking-service-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 34px 10px 12px;
    border: 1.5px solid var(--bk-line);
    border-radius: 14px;
    background: linear-gradient(145deg, #FFFFFF, #F8FBFD);
    color: var(--bk-ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 5px rgb(11 45 72 / 3%);
    transition:
        transform 280ms var(--bk-ease),
        border-color 240ms ease,
        background 280ms ease,
        color 240ms ease,
        box-shadow 280ms ease;
}

/* odd one out spans the row */
.booking-service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.booking-service-card input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.booking-service-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: var(--bk-navy);
    transition:
        color 240ms ease,
        transform 320ms var(--bk-ease);
}

.booking-service-name {
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.booking-service-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 1.5px solid #B7C8D5;
    border-radius: 50%;
    background: #FFFFFF;
    transition:
        background-color 240ms ease,
        border-color 240ms ease,
        transform 340ms cubic-bezier(.3, 1.6, .5, 1);
}

.booking-service-check::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 5px;
    width: 8px;
    height: 4.5px;
    border-bottom: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    opacity: 0;
    transform: rotate(-45deg) scale(0.4);
    transition:
        opacity 200ms ease,
        transform 340ms cubic-bezier(.3, 1.6, .5, 1);
}

@media (hover: hover) and (pointer: fine) {
    .booking-service-card:hover {
        transform: translateY(-3px);
        border-color: var(--bk-teal);
        box-shadow:
            0 6px 14px rgb(11 45 72 / 6%),
            0 12px 26px rgb(8 169 157 / 12%);
    }

    .booking-service-card:hover .booking-service-icon {
        transform: scale(1.08);
    }
}

.booking-service-card:has(input:checked) {
    border-color: var(--bk-navy);
    background: linear-gradient(145deg, #1A4C6D 0%, var(--bk-navy) 60%, var(--bk-deep) 100%);
    color: #FFFFFF;
    box-shadow:
        0 0 0 3px rgb(53 200 185 / 28%),
        0 12px 24px rgb(11 45 72 / 26%);
}

.booking-service-card:has(input:checked) .booking-service-icon {
    color: var(--bk-teal-2);
}

.booking-service-card:has(input:checked) .booking-service-check {
    border-color: var(--bk-teal-2);
    background: var(--bk-teal);
    transform: scale(1.08);
}

.booking-service-card:has(input:checked) .booking-service-check::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

.booking-service-card:has(input:focus-visible) {
    outline: 3px solid rgb(8 169 157 / 50%);
    outline-offset: 3px;
}


/* =========================================================
   5. CALENDAR
========================================================= */

.booking-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.booking-calendar-header h3 {
    margin: 0;
    color: #0F5D8C;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
}

.booking-calendar-nav {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--bk-navy);
    cursor: pointer;
    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        color 220ms ease,
        transform 220ms var(--bk-ease);
}

.booking-calendar-nav svg {
    width: 20px;
    height: 20px;
}

.booking-calendar-nav:hover:not(:disabled) {
    border-color: var(--bk-teal);
    background: rgb(8 169 157 / 10%);
    color: var(--bk-teal-dark);
}

.booking-calendar-nav:active:not(:disabled) {
    transform: scale(0.92);
}

.booking-calendar-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.booking-calendar-weekdays,
.booking-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.booking-calendar-weekdays {
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bk-line);
}

.booking-calendar-weekdays span {
    padding: 4px 0;
    color: #5E7487;
    font-size: 0.76rem;
    font-weight: 600;
    text-align: center;
}

.booking-calendar-days {
    margin-top: 6px;
    row-gap: 2px;
}

.booking-calendar-day,
.booking-calendar-outside {
    position: relative;
    display: grid;
    place-items: center;
    height: 42px;
    margin: 0 auto;
    width: 100%;
    max-width: 44px;
    padding: 0 0 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--bk-navy);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
}

.booking-calendar-outside {
    color: #BCC9D3;
    pointer-events: none;
}

.booking-calendar-day {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 220ms var(--bk-ease),
        background-color 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease;
}

/* availability dot */
.booking-calendar-day::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bk-teal);
    transform: translateX(-50%);
    transition: background-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .booking-calendar-day:hover:not(:disabled):not(.is-selected) {
        background: rgb(8 169 157 / 12%);
        color: var(--bk-teal-dark);
        transform: translateY(-2px);
    }
}

.booking-calendar-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 1.5px var(--bk-teal);
    font-weight: 700;
}

.booking-calendar-day.is-selected {
    background: linear-gradient(145deg, #1A4C6D, var(--bk-deep));
    color: #FFFFFF;
    font-weight: 700;
    box-shadow:
        0 0 0 3px rgb(53 200 185 / 30%),
        0 10px 20px rgb(11 45 72 / 28%);
    animation: bkPop 420ms cubic-bezier(.3, 1.5, .5, 1) 1;
}

.booking-calendar-day.is-selected::after {
    background: var(--bk-teal-2);
}

@keyframes bkPop {
    0%   { transform: scale(0.82); }
    100% { transform: scale(1); }
}

.booking-calendar-day:disabled {
    color: #B4C2CD;
    cursor: not-allowed;
}

.booking-calendar-day:disabled::after {
    background: transparent;
}

.booking-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bk-line);
}

.booking-calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--bk-ink);
    font-size: 0.76rem;
    font-weight: 500;
}

.booking-calendar-legend-item i {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.booking-calendar-legend-item i.is-selected    { background: var(--bk-deep); }
.booking-calendar-legend-item i.is-available   { background: var(--bk-teal); }
.booking-calendar-legend-item i.is-unavailable { background: #D5DEE5; }


/* =========================================================
   6. TIME
========================================================= */

.booking-time {
    display: flex;
    flex-direction: column;
}

.booking-time-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--bk-navy);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.booking-time-date svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--bk-navy-2);
}

.booking-time-date.is-empty {
    color: var(--bk-faint);
    font-weight: 500;
}

.booking-time-slots {
    min-width: 0;
}

.booking-time-empty {
    margin: 0;
    padding: 18px 16px;
    border: 1.5px dashed var(--bk-line);
    border-radius: 14px;
    color: var(--bk-muted);
    font-size: 0.84rem;
    line-height: 1.6;
    text-align: center;
}

.booking-time-options-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.booking-time-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #E4F0F7;
    color: var(--bk-navy);
    font-size: 0.86rem;
    font-weight: 600;
    float: none;
}

.booking-time-pill svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.booking-time-options-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.booking-time-option {
    position: relative;
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.booking-time-option input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.booking-time-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 50px;
    padding: 8px 12px 8px 14px;
    border: 1.5px solid var(--bk-line);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--bk-ink);
    transition:
        transform 260ms var(--bk-ease),
        border-color 220ms ease,
        background 260ms ease,
        color 220ms ease,
        box-shadow 260ms ease;
}

.booking-time-option-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.booking-time-option-label small {
    display: block;
    margin-top: 1px;
    color: var(--bk-teal-dark);
    font-size: 0.68rem;
    font-weight: 600;
    transition: color 220ms ease;
}

.booking-time-option-indicator {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 1.5px solid #B7C8D5;
    border-radius: 50%;
    background: #FFFFFF;
    transition:
        border-color 220ms ease,
        background-color 220ms ease;
}

.booking-time-option-indicator::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--bk-navy);
    transform: scale(0);
    transition: transform 300ms cubic-bezier(.3, 1.6, .5, 1);
}

@media (hover: hover) and (pointer: fine) {
    .booking-time-option:hover .booking-time-option-content {
        transform: translateY(-2px);
        border-color: var(--bk-teal);
        box-shadow: 0 8px 18px rgb(8 169 157 / 14%);
    }
}

.booking-time-option:has(input:checked) .booking-time-option-content {
    border-color: var(--bk-navy);
    background: linear-gradient(145deg, #1A4C6D, var(--bk-deep));
    color: #FFFFFF;
    box-shadow:
        0 0 0 3px rgb(53 200 185 / 26%),
        0 10px 20px rgb(11 45 72 / 24%);
}

.booking-time-option:has(input:checked) .booking-time-option-label small {
    color: var(--bk-teal-2);
}

.booking-time-option:has(input:checked) .booking-time-option-indicator {
    border-color: #FFFFFF;
    background: #FFFFFF;
}

.booking-time-option:has(input:checked) .booking-time-option-indicator::after {
    transform: scale(1);
}

.booking-time-option:has(input:focus-visible) .booking-time-option-content {
    outline: 3px solid rgb(8 169 157 / 50%);
    outline-offset: 2px;
}


/* ---------- Live selection ---------- */

.booking-summary {
    display: grid;
    gap: 8px;
    margin: auto 0 0;
    padding: 12px 14px;
    border: 1px solid rgb(8 169 157 / 22%);
    border-radius: 14px;
    background: rgb(8 169 157 / 7%);
    list-style: none;
}

.booking-time-slots + .booking-sr-only + .booking-summary,
.booking-summary {
    margin-top: 14px;
}

.booking-time {
    justify-content: flex-start;
}

.booking-summary li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bk-navy);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.booking-summary svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--bk-teal-dark);
}


/* =========================================================
   7. DETAILS ROW
========================================================= */

.booking-details {
    margin-top: clamp(12px, 1.6vw, 18px);
}

.booking-details .booking-panel-head {
    margin-bottom: 14px;
}

.booking-details-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1.4fr);
    gap: 14px;
    align-items: start;
}

/* floating-label field: icon + input + label */

.booking-field {
    position: relative;
    min-width: 0;
}

.booking-field-icon {
    position: absolute;
    top: 29px;
    left: 14px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--bk-navy);
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 220ms ease;
}

.booking-field-icon svg {
    width: 22px;
    height: 22px;
}

.booking-field :is(input, textarea) {
    display: block;
    width: 100%;
    height: 58px;
    padding: 22px 14px 6px 48px;
    border: 1.5px solid var(--bk-line);
    border-radius: 14px;
    background: #FFFFFF;
    color: var(--bk-navy);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.booking-field textarea {
    min-height: 58px;
    max-height: 150px;
    resize: none;
    overflow-y: auto;
}

.booking-field label {
    position: absolute;
    top: 29px;
    left: 48px;
    right: 12px;
    overflow: hidden;
    color: #637789;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateY(-50%);
    pointer-events: none;
    transition:
        top 200ms var(--bk-ease),
        font-size 200ms var(--bk-ease),
        color 200ms ease;
}

.booking-field label span {
    font-size: 0.74rem;
    font-weight: 400;
    color: var(--bk-faint);
}

.booking-field :is(input, textarea):focus {
    outline: none;
    border-color: var(--bk-teal);
    box-shadow: 0 0 0 4px rgb(8 169 157 / 14%);
}

/* label floats on focus or when filled */
.booking-field :is(input, textarea):focus + label,
.booking-field :is(input, textarea):not(:placeholder-shown) + label {
    top: 12px;
    color: var(--bk-teal-dark);
    font-size: 0.68rem;
    font-weight: 600;
}

.booking-field:focus-within .booking-field-icon {
    color: var(--bk-teal-dark);
}

.booking-field.is-invalid :is(input, textarea) {
    border-color: var(--bk-danger);
    box-shadow: 0 0 0 4px rgb(192 57 43 / 10%);
}

.booking-field.is-invalid label {
    color: var(--bk-danger);
}

.booking-details-feedback {
    margin: 0;
    color: var(--bk-danger);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.5;
}

.booking-details-feedback:not(:empty) {
    margin-top: 12px;
}


/* ---------- Primary action ---------- */

.booking-review-button,
.booking-review-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 58px;
    padding: 0 28px;
    border: 1px solid #08A99D;
    border-radius: 29px;
    background: linear-gradient(135deg, #0AB7A8 0%, #08A99D 48%, #078C86 100%);
    color: #FFFFFF;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        0 4px 8px rgb(8 169 157 / 18%),
        0 12px 26px rgb(8 169 157 / 24%),
        inset 0 1px 0 rgb(255 255 255 / 24%);
    transition:
        transform 280ms var(--bk-ease),
        box-shadow 280ms ease;
}

/* light sweep */
.booking-review-button::before,
.booking-review-submit::before {
    content: "";
    position: absolute;
    top: -80%;
    left: -65%;
    z-index: -1;
    width: 40%;
    height: 260%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 30%), transparent);
    transform: rotate(24deg);
    transition: left 700ms var(--bk-ease);
}

.booking-review-button svg,
.booking-review-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 280ms var(--bk-ease);
}

@media (hover: hover) and (pointer: fine) {
    .booking-review-button:hover,
    .booking-review-submit:hover {
        transform: translateY(-3px);
        box-shadow:
            0 7px 14px rgb(8 169 157 / 24%),
            0 18px 36px rgb(8 169 157 / 32%),
            0 0 0 4px rgb(8 169 157 / 10%),
            inset 0 1px 0 rgb(255 255 255 / 26%);
    }

    .booking-review-button:hover::before,
    .booking-review-submit:hover::before {
        left: 140%;
    }

    .booking-review-button:hover svg,
    .booking-review-submit:hover svg {
        transform: translateX(4px);
    }
}

.booking-review-button:active,
.booking-review-submit:active {
    transform: translateY(-1px);
}

/* every step done → button glows once to invite the click */
.booking-review-button.is-ready {
    animation: bkReady 1.1s ease 1;
}

@keyframes bkReady {
    0%   { box-shadow: 0 0 0 0 rgb(8 169 157 / 55%), 0 12px 26px rgb(8 169 157 / 24%); }
    100% { box-shadow: 0 0 0 16px rgb(8 169 157 / 0%), 0 12px 26px rgb(8 169 157 / 24%); }
}


/* =========================================================
   8. REVIEW VIEW
========================================================= */

.booking-review-heading {
    margin: 0 0 18px;
    padding: 0 4px;
}

.booking-review-heading h2 {
    margin: 0 0 6px;
    color: var(--bk-navy);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.booking-review-heading p {
    margin: 0;
    color: var(--bk-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.booking-review-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 18px);
}

.booking-review-group {
    position: relative;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--bk-line);
    border-radius: 20px;
    background: linear-gradient(160deg, #FFFFFF, #F7FBFC);
    box-shadow: 0 2px 6px rgb(11 45 72 / 4%), 0 12px 28px rgb(11 45 72 / 5%);
}

.booking-review-group-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bk-line);
}

.booking-review-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(145deg, #E8FAF7, #DDF5F2);
    color: #079D94;
}

.booking-review-icon svg {
    width: 21px;
    height: 21px;
}

.booking-review-group-heading h3 {
    margin: 0;
    color: var(--bk-navy);
    font-size: 1rem;
    font-weight: 700;
}

.booking-review-detail + .booking-review-detail {
    margin-top: 14px;
}

.booking-review-label {
    display: block;
    margin-bottom: 2px;
    color: var(--bk-faint);
    font-size: 0.74rem;
    font-weight: 600;
}

.booking-review-value {
    margin: 0;
    color: var(--bk-navy);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

#booking-review-service {
    font-size: 1.1rem;
    font-weight: 700;
}

#booking-review-notes {
    font-weight: 500;
    white-space: pre-line;
}

.booking-review-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgb(8 169 157 / 22%);
    border-radius: 14px;
    background: rgb(8 169 157 / 7%);
}

.booking-review-notice > span {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bk-teal);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
}

.booking-review-notice p {
    margin: 0;
    color: var(--bk-ink);
    font-size: 0.86rem;
    line-height: 1.6;
}

.booking-review-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
}

.booking-review-back {
    height: 58px;
    padding: 0 28px;
    border: 1.5px solid var(--bk-line);
    border-radius: 29px;
    background: #FFFFFF;
    color: var(--bk-navy);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .booking-review-back:hover {
        border-color: var(--bk-teal);
        color: var(--bk-teal-dark);
        box-shadow: 0 6px 14px rgb(11 45 72 / 8%);
    }
}

.booking-review-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.booking-review-feedback {
    margin: 14px 0 0;
    color: var(--bk-teal-dark);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: right;
}

.booking-review-feedback:empty {
    display: none;
}


/* =========================================================
   9. ENTRANCE — ONE ORCHESTRATED MOMENT
========================================================= */

@media (prefers-reduced-motion: no-preference) {
    .booking-stage > .booking-progress,
    .booking-columns > .booking-panel,
    .booking-details {
        animation: bkRise 760ms var(--bk-ease) both;
    }

    .booking-columns > .booking-panel:nth-child(1) { animation-delay: 80ms; }
    .booking-columns > .booking-panel:nth-child(2) { animation-delay: 170ms; }
    .booking-columns > .booking-panel:nth-child(3) { animation-delay: 260ms; }
    .booking-details                                { animation-delay: 360ms; }
}

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


/* =========================================================
   10. RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .booking-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-time {
        grid-column: 1 / -1;
    }

    .booking-time-options-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .booking-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {
    .booking-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .booking-review-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .booking-container {
        width: calc(100% - 24px);
    }

    .booking-stage {
        border-radius: 22px;
    }

    .booking-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .booking-time-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-time-option-label {
        white-space: nowrap;
    }

    .booking-hero-benefit {
        font-size: 0.8rem;
    }

    .booking-progress-number {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    .booking-progress-step:not(:last-child)::before,
    .booking-progress-step:not(:last-child)::after {
        top: 15px;
        left: calc(50% + 22px);
        width: calc(100% - 44px);
    }

    .booking-progress-label {
        font-size: 0.68rem;
    }
}

@media (max-width: 560px) {
    .booking-hero-benefits {
        gap: 14px 0;
    }

    .booking-hero-benefit svg {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .booking-email-card {
        padding: 16px;
        border-radius: 18px;
    }

    .booking-email-icon {
        display: none;
    }

    .booking-service-card {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
        min-height: 88px;
        padding: 12px 12px 10px;
    }

    .booking-service-name {
        padding-right: 4px;
        font-size: 0.8rem;
    }

    .booking-service-card:last-child:nth-child(odd) {
        flex-direction: row;
        align-items: center;
        min-height: 60px;
    }

    .booking-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .booking-progress-step:not(.is-active) .booking-progress-label {
        display: none;
    }

    .booking-review-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .booking-review-back,
    .booking-review-submit {
        width: 100%;
    }

    .booking-review-feedback {
        text-align: left;
    }
}

@media (max-width: 380px) {
    .booking-service-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .booking-service-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
}


/* =========================================================
   11. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .booking-page *,
    .booking-page *::before,
    .booking-page *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   12. PROPERTY DESCRIPTION + ACTIONS ROW
========================================================= */

.booking-field--notes {
    grid-column: 1 / -1;
}

.booking-field--notes textarea {
    height: 120px;
    min-height: 120px;
    max-height: 240px;
    padding-top: 30px;
    line-height: 1.55;
    resize: vertical;
}

.booking-field--notes .booking-field-icon {
    top: 31px;
}

.booking-field--notes label {
    top: 31px;
}

.booking-field--notes :is(textarea):focus + label,
.booking-field--notes :is(textarea):not(:placeholder-shown) + label {
    top: 13px;
}

.booking-field-hint {
    margin: 8px 0 0 4px;
    color: var(--bk-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.booking-details-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
}

.booking-details-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--bk-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.booking-details-note svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--bk-teal);
    color: #FFFFFF;
}

@media (max-width: 1100px) {
    .booking-details-grid .booking-field:nth-child(3) {
        grid-column: 1 / -1;
    }

    .booking-details-actions .booking-review-button {
        grid-column: auto;
        width: auto;
    }
}

@media (max-width: 560px) {
    .booking-details-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .booking-details-actions .booking-review-button {
        width: 100%;
    }

    .booking-field--notes textarea {
        height: 140px;
        min-height: 140px;
    }
}

@media (max-width: 560px) {
    .booking-field--notes label span {
        display: none;
    }
}


/* =========================================================
   13. TURNSTILE + SUCCESS
========================================================= */

.booking-turnstile {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.booking-turnstile:empty {
    display: none;
}

.booking-review-submit.is-sending {
    pointer-events: none;
    opacity: 0.75;
}

.booking-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(32px, 6vw, 64px) 20px;
    text-align: center;
}

.booking-success-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0AB7A8, #08A99D 55%, #078C86);
    color: #FFFFFF;
    box-shadow:
        0 0 0 8px rgb(8 169 157 / 14%),
        0 16px 34px rgb(8 169 157 / 30%);
}

.booking-success-icon svg {
    width: 38px;
    height: 38px;
}

.booking-success h2 {
    margin: 0 0 10px;
    color: var(--bk-navy);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.booking-success p {
    max-width: 520px;
    margin: 0 0 8px;
    color: var(--bk-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.booking-success-email strong {
    color: var(--bk-navy);
    overflow-wrap: anywhere;
}

.booking-success-link {
    margin-top: 18px;
    padding: 14px 28px;
    border: 1.5px solid var(--bk-line);
    border-radius: 29px;
    color: var(--bk-navy);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 220ms ease, color 220ms ease;
}

.booking-success-link:hover {
    border-color: var(--bk-teal);
    color: var(--bk-teal-dark);
}

@media (max-width: 560px) {
    .booking-turnstile {
        justify-content: center;
    }
}
