/* ==========================================================================
   Book a Meeting — Editorial / Swiss minimalism
   Light cream background, single compact widget, internal slot scroll
   ========================================================================== */

:root {
    --bm-bg: #fffae8;
    --bm-card: #ffffff;
    --bm-ink: #11100f;
    --bm-muted: #7a7673;
    --bm-hairline: rgba(17, 16, 15, 0.08);
    --bm-hairline-strong: rgba(17, 16, 15, 0.14);
    --bm-accent: #ffc814;
    --bm-accent-soft: #fff4c2;
    --bm-accent-ink: #11100f;
    --bm-danger: #c64545;
    --bm-success: #2f9a5a;
    --bm-card-shift: 0;
    --bm-box-height: clamp(320px, calc(100vh - 340px), 380px);
    /* Lift for calendar/slots boxes - auto 0 on stacked layouts */
    --bm-box-lift: -92px;
    --bm-calendar-offset: 18px;
    --bm-slots-offset: 18px;
}

@media (max-width: 1024px) {
    :root {
        --bm-card-shift: 0;
        --bm-box-height: clamp(295px, calc(100vh - 305px), 345px);
        --bm-box-lift: -62px;
        --bm-calendar-offset: 10px;
        --bm-slots-offset: 10px;
    }
}

@media (max-width: 900px) {
    :root {
        --bm-card-shift: 0px;
        --bm-box-height: clamp(255px, calc(100vh - 315px), 300px);
        --bm-box-lift: 0px;
        --bm-calendar-offset: 0px;
        --bm-slots-offset: 0px;
    }
}

.bm-page {
    min-height: 100vh;
    background: var(--bm-bg);
    padding: clamp(80px, 8.5vh, 100px) clamp(24px, 4vw, 72px) 56px;
    font-family: 'Montserrat', sans-serif;
    color: var(--bm-ink);
    position: relative;
    overflow-x: hidden;
}

/* Subtle grainy + soft glow backdrop */
.bm-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 200, 20, 0.22) 0%, transparent 38%),
        radial-gradient(circle at 88% 110%, rgba(255, 200, 20, 0.14) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.bm-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 0;
}

.bm-container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

/* ---------- Page entrance (smooth on first open) ---------- */
body:not(.bm-ready) .bm-intro,
body:not(.bm-ready) .bm-card {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
    filter: blur(2px);
}

body.bm-ready .bm-intro {
    animation: bm-page-enter 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.bm-ready .bm-card {
    animation: bm-page-enter 640ms cubic-bezier(0.22, 1, 0.36, 1) 70ms both;
}

@keyframes bm-page-enter {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.995);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ---------- Intro ---------- */
.bm-intro {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.bm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bm-ink);
    padding: 6px 12px;
    border: 1px solid var(--bm-hairline-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.bm-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bm-accent);
    box-shadow: 0 0 0 3px rgba(255, 200, 20, 0.25);
}

.bm-title {
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0;
    color: var(--bm-ink);
}

.bm-title-em {
    font-style: normal;
    position: relative;
    color: var(--bm-ink);
    white-space: nowrap;
}

/* Hand-drawn scribble under "demo" — signature detail */
.bm-title-em::after {
    content: '';
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: -8%;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2,9 C40,2 80,13 120,6 C150,1 180,11 198,4' stroke='%23FFC814' stroke-width='4' fill='none' stroke-linecap='round'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.bm-sub {
    font-size: 15.5px;
    color: var(--bm-muted);
    max-width: 520px;
    line-height: 1.55;
    margin: 0 auto;
    text-align: center;
}

.bm-tz {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--bm-ink);
    padding: 6px 12px 6px 10px;
    background: #fff;
    border: 1px solid var(--bm-hairline);
    border-radius: 999px;
    font-weight: 500;
}

.bm-tz svg {
    color: var(--bm-accent);
}

.bm-tz strong {
    font-weight: 600;
}

/* Keep the Request to Demo CTA content centered on this page */
.book-meeting-page .hero-header-card .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

/* ---------- Main card ---------- */
.bm-card {
    background: var(--bm-card);
    border: 1px solid rgba(17, 16, 15, 0.1);
    border-radius: 28px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 34px 72px -34px rgba(17, 16, 15, 0.26),
        0 8px 24px -14px rgba(17, 16, 15, 0.14);
    overflow: hidden;
    margin-top: var(--bm-card-shift);
    position: relative;
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bm-card>* {
    position: relative;
    z-index: 1;
}

.bm-card::after {
    content: '';
    position: absolute;
    left: var(--bm-click-x, 50%);
    top: var(--bm-click-y, 50%);
    width: 240px;
    height: 240px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.18);
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 200, 20, 0.35) 0%, rgba(255, 200, 20, 0.12) 38%, transparent 72%);
    z-index: 0;
}

.bm-card.is-clicked {
    animation: bm-card-press 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.bm-card.is-clicked::after {
    animation: bm-card-ripple 0.44s ease-out;
}

.bm-click-text {
    cursor: pointer;
    transform-origin: center;
    transition: color 0.15s ease;
}

.bm-click-text.is-clicked {
    animation: bm-text-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.bm-fade-text {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(1.5px);
}

.bm-fade-text.is-visible {
    animation: bm-fade-in-up 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bm-text-pop {
    0% {
        transform: translateY(0) scale(1);
    }

    45% {
        transform: translateY(-1px) scale(1.03);
        text-shadow: 0 6px 18px rgba(255, 200, 20, 0.35);
    }

    100% {
        transform: translateY(0) scale(1);
        text-shadow: none;
    }
}

@keyframes bm-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(1.5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes bm-card-press {
    0% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-1px) scale(0.998);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.9) inset,
            0 40px 82px -38px rgba(17, 16, 15, 0.28),
            0 10px 28px -14px rgba(17, 16, 15, 0.16);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes bm-card-ripple {
    0% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.18);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.28);
    }
}

/* ---------- Toolbar (global options) ---------- */
.bm-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 30px;
    background: linear-gradient(180deg, #fffbed 0%, #ffffff 100%);
    border-bottom: 1px solid var(--bm-hairline);
    flex-wrap: wrap;
    position: relative;
}

.bm-toolbar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--bm-accent);
    opacity: 0.8;
}

.bm-tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
}

.bm-tool--tz {
    min-width: 0;
    flex: 1 1 280px;
}

.bm-tool-icon {
    color: var(--bm-ink);
    opacity: 0.55;
    flex-shrink: 0;
}

.bm-tool-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bm-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.bm-tool-field {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.bm-tool-field--grow {
    flex: 1 1 auto;
    min-width: 0;
}

.bm-tool-divider {
    width: 1px;
    height: 22px;
    background: var(--bm-hairline-strong);
    flex-shrink: 0;
}

.bm-tool-hint {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--bm-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding-left: 12px;
    border-left: 1px dashed var(--bm-hairline-strong);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bm-tool-hint::before {
    content: 'Times shown in ';
    color: var(--bm-muted);
    opacity: 0.75;
    font-weight: 500;
}

/* Hide toolbar once user advances to form / confirmation step */
.bm-card:has(.bm-grid.on-form) .bm-toolbar {
    display: none;
}

/* Pill-style select inside toolbar */
.bm-toolbar .bm-select {
    height: 34px;
    padding: 0 30px 0 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(17, 16, 15, 0.04);
    background-position: right 12px center;
}

.bm-toolbar .bm-select:hover {
    border-color: var(--bm-ink);
}

.bm-toolbar .bm-duration-custom {
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    width: 72px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .bm-toolbar {
        padding: 12px 18px;
        gap: 10px;
    }

    .bm-tool-hint {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        flex-basis: 100%;
    }

    .bm-tool--tz {
        flex-basis: 100%;
    }

    .bm-tool-divider {
        display: none;
    }
}

.bm-grid {
    display: grid;
    grid-template-columns: 248px minmax(540px, 1.55fr) minmax(220px, 0.65fr);
    min-height: 0;
    align-items: start;
    align-content: start;
    column-gap: 26px;
    row-gap: 18px;
    padding: 14px 22px 6px;
}

/* Column dividers (hairlines) */
.bm-grid>.bm-info {
    border-right: none;
}

.bm-grid>.bm-calendar {
    border-right: none;
}

@media (max-width: 1024px) {
    .bm-grid {
        grid-template-columns: 210px minmax(0, 1.42fr) minmax(210px, 0.7fr);
        column-gap: 18px;
        row-gap: 16px;
        padding: 12px 16px 6px;
    }

    .bm-calendar {
        padding: 0;
    }

    .bm-slots {
        padding: 0;
    }
}

@media (max-width: 900px) {
    .bm-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.8fr);
        column-gap: 16px;
        row-gap: 16px;
        padding: 12px 12px 6px;
    }

    .bm-info {
        grid-column: 1 / -1;
        border-right: none !important;
        border-bottom: 1px solid var(--bm-hairline);
        padding-bottom: 16px;
    }
}

@media (max-width: 720px) {
    .bm-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 14px;
        padding: 10px 8px 6px;
    }

    .bm-calendar {
        border-right: none !important;
        border-bottom: 1px solid var(--bm-hairline);
    }

    .bm-calendar-box,
    .bm-slots-box {
        height: auto;
        min-height: 320px;
    }
}

/* ---------- Info column ---------- */
.bm-info {
    padding: 8px 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.bm-host {
    display: flex;
    align-items: center;
    gap: 11px;
}

.bm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bm-ink);
    color: var(--bm-accent);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.bm-avatar-logo {
    width: 74%;
    height: 74%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 720px) {
    .bm-avatar {
        width: 34px;
        height: 34px;
    }

    .bm-avatar-logo {
        width: 68%;
        height: 68%;
    }
}

.bm-host-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.bm-host-txt small {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bm-muted);
}

.bm-host-txt strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--bm-ink);
}

.bm-meeting-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--bm-ink);
}

.bm-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px dashed var(--bm-hairline-strong);
}

.bm-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--bm-ink);
    font-weight: 500;
}

.bm-meta li svg {
    flex-shrink: 0;
    color: var(--bm-ink);
    opacity: 0.55;
}

.bm-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--bm-muted);
    padding-top: 14px;
    border-top: 1px dashed var(--bm-hairline-strong);
}

.bm-expect-list {
    padding-inline-start: 28px;
    font-size: 14.5px;
    line-height: 1.55;
}

.bm-expect-label {
    font-size: 15px;
    font-weight: 600;
}

.bm-help-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    width: auto;
    padding-left: 8px;
    white-space: nowrap;
    flex-wrap: nowrap;
    font-size: 15px;
    color: var(--bm-ink);
    opacity: 0.9;
}

.bm-help-hint span {
    line-height: 1.2;
    white-space: nowrap;
}

.bm-help-email {
    text-align: left;
    font-weight: 600;
}

.bm-help-hint svg {
    width: 14px;
    height: 14px;
    display: block;
    flex: 0 0 14px;
    color: var(--bm-ink);
    opacity: 0.78;
}

/* ---------- Calendar column ---------- */
.bm-calendar {
    padding: 0 4px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-width: 0;
}

.bm-month-picker {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

/* Boxed frame around the calendar grid */
.bm-calendar-box {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin-top: calc(var(--bm-box-lift) + var(--bm-calendar-offset));
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 18px 18px;
    background:
        radial-gradient(ellipse 120% 60% at 50% 0%, #FFF7D4 0%, transparent 55%),
        linear-gradient(180deg, #FFFCEF 0%, #FFFFFF 60%);
    border: 1px solid rgba(17, 16, 15, 0.12);
    border-radius: 18px;
    box-shadow:
        0 2px 10px rgba(17, 16, 15, 0.05),
        0 20px 38px -24px rgba(17, 16, 15, 0.2);
    position: relative;
    height: var(--bm-box-height);
    min-height: var(--bm-box-height);
}

/* Yellow archival corner brackets — signature editorial detail */
.bm-calendar-box::before,
.bm-calendar-box::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    pointer-events: none;
}

.bm-calendar-box::before {
    top: -1px;
    left: -1px;
    border-top: 3px solid var(--bm-accent);
    border-left: 3px solid var(--bm-accent);
    border-top-left-radius: 18px;
}

.bm-calendar-box::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 3px solid var(--bm-accent);
    border-right: 3px solid var(--bm-accent);
    border-bottom-right-radius: 18px;
}

.bm-calendar-box .bm-col-head {
    flex-shrink: 0;
}

.bm-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bm-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bm-muted);
}

.bm-month-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--bm-ink);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

/* Month dropdown — looks like a heading, acts like a select */
.bm-month-select {
    height: 34px;
    padding: 0 30px 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--bm-ink);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: none;
    min-width: 150px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bm-month-select:hover,
.bm-month-select:focus-visible {
    border-color: var(--bm-hairline-strong);
    background-color: rgba(17, 16, 15, 0.035);
}

.bm-month-select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 200, 20, 0.25);
}

.bm-nav {
    display: flex;
    gap: 6px;
}

.bm-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--bm-hairline);
    color: var(--bm-ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}

.bm-nav-btn:hover:not(:disabled) {
    background: var(--bm-ink);
    border-color: var(--bm-ink);
    color: var(--bm-accent);
}

.bm-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bm-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 200, 20, 0.4);
    margin-bottom: 4px;
}

.bm-weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--bm-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 0 6px;
}

.bm-days {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    gap: 3px;
    align-content: stretch;
    justify-items: center;
    align-items: center;
}

.bm-day {
    width: min(100%, 52px);
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--bm-ink);
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
    font-family: inherit;
    transition: all 0.12s ease;
    padding: 0;
}

.bm-day:hover:not(:disabled):not(.selected) {
    background: var(--bm-accent-soft);
    border-color: var(--bm-accent);
}

.bm-day:disabled {
    color: rgba(17, 16, 15, 0.3);
    cursor: not-allowed;
}

.bm-day.outside {
    opacity: 0;
    pointer-events: none;
}

.bm-day.today {
    color: var(--bm-ink);
    font-weight: 700;
    border-color: var(--bm-hairline-strong);
}

.bm-day.has-availability:not(:disabled)::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bm-accent);
    box-shadow: 0 0 0 2px rgba(255, 200, 20, 0.22);
}

.bm-day.selected {
    background: var(--bm-ink);
    color: var(--bm-accent);
    font-weight: 700;
    border-color: var(--bm-ink);
    border-radius: 4px;
}

.bm-day.selected::after {
    background: var(--bm-accent) !important;
}

.bm-cal-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 4px;
    font-size: 11px;
    color: var(--bm-muted);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.bm-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bm-cal-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bm-accent);
    display: inline-block;
}

.bm-cal-legend i.empty {
    background: transparent;
    border: 1px solid var(--bm-hairline-strong);
}

/* ---------- Slots column ---------- */
.bm-slots {
    padding: 0 4px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    min-width: 0;
    min-height: 0;
    max-height: 800px;
}

/* Boxed frame around the "Available times" block */
.bm-slots-box {
    flex: 0 1 auto;
    min-height: var(--bm-box-height);
    height: var(--bm-box-height);
    max-height: 100%;
    margin-top: calc(var(--bm-box-lift) + var(--bm-slots-offset));
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 18px 18px;
    background:
        radial-gradient(ellipse 120% 60% at 50% 0%, #FFF7D4 0%, transparent 55%),
        linear-gradient(180deg, #FFFCEF 0%, #FFFFFF 60%);
    border: 1px solid rgba(17, 16, 15, 0.12);
    border-radius: 18px;
    box-shadow:
        0 2px 10px rgba(17, 16, 15, 0.05),
        0 20px 38px -24px rgba(17, 16, 15, 0.2);
    position: relative;
}

/* Next step CTA — appears after user picks a slot */
.bm-next-btn {
    flex-shrink: 0;
    align-self: stretch;
    margin-top: 2px;
    background: var(--bm-ink);
    color: var(--bm-accent);
    border: none;
    border-radius: 999px;
    height: 40px;
    padding: 0 20px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    text-transform: uppercase;
    opacity: 1 !important;
    filter: none !important;
}

.bm-next-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px rgba(17, 16, 15, 0.35);
}

.bm-next-btn:disabled {
    opacity: 1 !important;
    cursor: not-allowed;
    background: var(--bm-ink);
    color: var(--bm-accent);
    filter: none !important;
}

.bm-next-btn.is-transitioning {
    opacity: 1 !important;
    pointer-events: none;
    transform: translateY(0);
    filter: none !important;
}

.bm-next-btn:not(:disabled) {
    animation: bm-next-pop 0.28s ease-out;
}

@keyframes bm-next-pop {
    from {
        transform: translateY(4px);
    }

    to {
        transform: translateY(0);
    }
}

/* Yellow archival corner brackets — matches calendar-box */
.bm-slots-box::before,
.bm-slots-box::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    pointer-events: none;
}

.bm-slots-box::before {
    top: -1px;
    left: -1px;
    border-top: 3px solid var(--bm-accent);
    border-left: 3px solid var(--bm-accent);
    border-top-left-radius: 18px;
}

.bm-slots-box::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 3px solid var(--bm-accent);
    border-right: 3px solid var(--bm-accent);
    border-bottom-right-radius: 18px;
}

/* Legacy rules kept for safety if any old markup lingers */
.bm-controls {
    display: contents;
}

.bm-control {
    display: contents;
}

.bm-control-label {
    display: none;
}

.bm-duration-row {
    display: contents;
}

.bm-select {
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--bm-hairline-strong);
    border-radius: 10px;
    padding: 9px 30px 9px 12px;
    color: var(--bm-ink);
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2311100F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bm-select:focus {
    outline: none;
    border-color: var(--bm-ink);
    box-shadow: 0 0 0 3px rgba(255, 200, 20, 0.25);
}

.bm-duration-custom {
    width: 86px;
    display: none;
    font-size: 12.5px;
    padding: 9px 10px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.bm-duration-custom.active {
    display: block;
}

.bm-slots-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(17, 16, 15, 0.14);
}

.bm-slots-date {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--bm-ink);
    letter-spacing: -0.01em;
    min-height: 20px;
}

.bm-slots-date:empty::before {
    content: 'Pick a date';
    color: var(--bm-muted);
    font-weight: 500;
}

.bm-slots-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 16, 15, 0.18) transparent;
}

.bm-slots-list.is-placeholder {
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-right: 0;
}

.bm-slots-list::-webkit-scrollbar {
    width: 4px;
}

.bm-slots-list::-webkit-scrollbar-thumb {
    background: rgba(17, 16, 15, 0.15);
    border-radius: 2px;
}

.bm-slots-list::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 16, 15, 0.3);
}

.bm-slot {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--bm-hairline);
    border-radius: 8px;
    color: var(--bm-ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    text-align: center;
    transition: all 0.12s ease;
    flex-shrink: 0;
}

.bm-slot:hover:not(:disabled):not(.selected) {
    border-color: var(--bm-ink);
    background: rgba(17, 16, 15, 0.04);
    transform: translateY(-1px);
}

.bm-slot.selected {
    background: var(--bm-ink);
    color: var(--bm-accent);
    border-color: var(--bm-ink);
    box-shadow: 0 4px 10px -4px rgba(17, 16, 15, 0.4);
}

.bm-slot:disabled {
    color: rgba(17, 16, 15, 0.3);
    cursor: not-allowed;
    background: rgba(17, 16, 15, 0.03);
    text-decoration: line-through;
}

.bm-placeholder,
.bm-slots-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 12px;
    text-align: center;
    color: var(--bm-muted);
    font-size: 12.5px;
    line-height: 1.55;
    background: rgba(17, 16, 15, 0.02);
    border: 1px dashed var(--bm-hairline-strong);
    border-radius: 12px;
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    margin: auto;
}

.bm-slots-list.is-placeholder .bm-placeholder,
.bm-slots-list.is-placeholder .bm-slots-empty {
    flex: 0 1 auto;
    width: 92%;
    height: auto;
    min-height: 138px;
    margin: 0;
}

/* ---------- Form step ---------- */
.bm-form-wrap {
    display: none;
    padding: 0 32px 32px;
    grid-column: 2 / -1;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.bm-form-wrap.active {
    display: flex;
}

.bm-grid.on-form .bm-calendar,
.bm-grid.on-form .bm-slots {
    display: none;
}

@media (max-width: 900px) {
    .bm-form-wrap {
        grid-column: 1 / -1;
    }
}

.bm-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bm-accent-soft);
    border: 1px solid rgba(255, 200, 20, 0.5);
    border-radius: 14px;
    flex-wrap: wrap;
}

.bm-summary-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bm-summary-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--bm-ink);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.bm-summary-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--bm-ink);
    letter-spacing: -0.01em;
}

.bm-back-btn {
    background: transparent;
    border: 1px solid var(--bm-ink);
    color: var(--bm-ink);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
    letter-spacing: 0.02em;
}

.bm-back-btn:hover {
    background: var(--bm-ink);
    color: var(--bm-accent);
}

.bm-form-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bm-ink);
    margin: 4px 0 -6px;
    letter-spacing: -0.015em;
}

.bm-form-sub {
    color: var(--bm-muted);
    font-size: 13px;
    margin: 0 0 4px;
}

.bm-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bm-form .full {
    grid-column: 1 / -1;
}

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

.bm-input,
.bm-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--bm-hairline-strong);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--bm-ink);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.15s;
}

.bm-input::placeholder,
.bm-textarea::placeholder {
    font-weight: 500;
}

.bm-textarea {
    resize: vertical;
    min-height: 76px;
}

.bm-input::placeholder,
.bm-textarea::placeholder {
    color: rgba(17, 16, 15, 0.38);
}

.bm-input:focus,
.bm-textarea:focus {
    outline: none;
    border-color: var(--bm-ink);
    box-shadow: 0 0 0 3px rgba(255, 200, 20, 0.25);
}

.bm-submit-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.bm-submit-status {
    font-size: 12.5px;
    font-weight: 500;
    margin-right: auto;
    color: var(--bm-muted);
}

.bm-submit-status.error {
    color: var(--bm-danger);
}

.bm-submit-status.success {
    color: var(--bm-success);
}

.bm-submit {
    background: var(--bm-ink);
    color: var(--bm-accent);
    border: none;
    border-radius: 999px;
    padding: 0 22px;
    height: 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bm-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -4px rgba(17, 16, 15, 0.35);
}

.bm-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---------- Confirmation ---------- */
.bm-confirm {
    display: none;
    padding: 44px 32px;
    text-align: center;
    grid-column: 2 / -1;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

@media (max-width: 900px) {
    .bm-confirm {
        grid-column: 1 / -1;
    }
}

.bm-confirm.active {
    display: flex;
}

.bm-grid.on-form .bm-confirm.active~* {
    display: none;
}

.bm-confirm-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bm-accent);
    color: var(--bm-ink);
    display: grid;
    place-items: center;
    position: relative;
}

.bm-confirm-check::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(255, 200, 20, 0.4);
    border-radius: 50%;
}

.bm-confirm-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--bm-ink);
}

.bm-confirm-text {
    color: var(--bm-muted);
    font-size: 14px;
    max-width: 420px;
    margin: 0;
    line-height: 1.55;
}

.bm-confirm-detail {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 18px;
    background: var(--bm-accent-soft);
    border: 1px solid rgba(255, 200, 20, 0.5);
    border-radius: 12px;
    margin-top: 4px;
}

.bm-confirm-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    height: 40px;
    border-radius: 999px;
    background: var(--bm-ink);
    color: var(--bm-accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: all 0.2s;
    margin-top: 6px;
}

.bm-confirm-home:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -4px rgba(17, 16, 15, 0.35);
}

/* ---------- Active nav state (for header active link) ---------- */
.desktop-nav-link.active,
.menu-item.active {
    color: #ffc814 !important;
}

/* ---------- Footer Spacing ---------- */
.bm-page+.new-footer {
    margin-top: 20px;
}

/* Footer text reveal on book-meeting: smooth and stable */
.book-meeting-page .new-footer .fade-in-up {
    opacity: 0;
    transform: translateY(12px);
    filter: none;
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.book-meeting-page .new-footer .fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: none;
    margin-bottom: 0;
}

/* ---------- Mobile Harmonization ---------- */
@media (max-width: 900px) {
    .bm-page {
        padding: 84px 12px 28px;
    }

    .bm-container {
        max-width: 100%;
    }

    .bm-intro {
        margin-bottom: 14px;
        gap: 8px;
    }

    .bm-title {
        font-size: clamp(26px, 8.2vw, 34px);
        line-height: 1.06;
    }

    .bm-sub {
        font-size: 14px;
        max-width: none;
    }

    .bm-card {
        margin-top: 0;
        border-radius: 18px;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.92) inset,
            0 18px 36px -24px rgba(17, 16, 15, 0.2),
            0 4px 12px -10px rgba(17, 16, 15, 0.12);
    }

    .bm-toolbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .bm-tool {
        width: 100%;
        flex: 1 1 100%;
    }

    .bm-tool-field,
    .bm-tool-field--grow {
        width: 100%;
    }

    .bm-toolbar .bm-select {
        width: 100%;
        min-width: 0;
    }

    .bm-grid {
        grid-template-columns: 1fr;
        row-gap: 12px;
        column-gap: 0;
        padding: 10px 10px 8px;
    }

    .bm-info,
    .bm-calendar,
    .bm-slots {
        padding: 0;
        border: none !important;
    }

    .bm-info {
        padding-bottom: 10px;
        border-bottom: 1px solid var(--bm-hairline) !important;
        gap: 14px;
    }

    .bm-calendar-box,
    .bm-slots-box {
        margin-top: 0;
        height: auto;
        min-height: 0;
        padding: 16px 14px;
        border-radius: 14px;
    }

    .bm-calendar-box {
        min-height: 320px;
    }

    .bm-slots-box {
        gap: 12px;
        min-height: 200px;
        max-height: 220px;
        width: 92%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .bm-days {
        gap: 2px;
    }

    .bm-day {
        width: min(100%, 44px);
    }

    .bm-slots-list {
        max-height: 250px;
        padding-right: 4px;
    }

    .bm-next-btn {
        width: 100%;
        margin-top: 4px;
    }

    .bm-form-wrap {
        padding: 0 10px 16px;
    }

    .bm-confirm {
        padding: 28px 12px 24px;
    }

    .bm-page+.new-footer {
        margin-top: 14px;
    }
}

/* ---------- Small screens: disable sticky heights so list can scroll naturally ---------- */
@media (max-width: 720px) {
    .bm-slots {
        max-height: none;
    }

    .bm-slots-list {
        max-height: 280px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

    .bm-day,
    .bm-slot,
    .bm-submit,
    .bm-confirm-home,
    .bm-nav-btn,
    .bm-back-btn,
    .bm-click-text,
    .bm-card {
        transition: none !important;
    }

    .bm-submit:hover,
    .bm-confirm-home:hover,
    .bm-slot:hover {
        transform: none !important;
    }

    .bm-click-text.is-clicked,
    .bm-card.is-clicked,
    .bm-card.is-clicked::after,
    .bm-fade-text.is-visible {
        animation: none !important;
    }

    .bm-fade-text {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    body:not(.bm-ready) .bm-intro,
    body:not(.bm-ready) .bm-card,
    body.bm-ready .bm-intro,
    body.bm-ready .bm-card {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}