/* ===== Book Demo Page ===== */

.bd-page {
    min-height: 100vh;
    background: #f8fafc;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 1.5rem 2.5rem;
    overflow-x: clip;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Glow blobs */
.bd-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
}
.bd-glow--tl {
    top: -100px; left: -120px;
    width: 580px; height: 580px;
    background: radial-gradient(circle, rgba(0,168,150,0.08) 0%, transparent 65%);
}
.bd-glow--br {
    bottom: -80px; right: -100px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(0,168,150,0.06) 0%, transparent 65%);
}

/* Watermark */
.bd-watermark {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(56px, 10vw, 130px);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgba(0,0,0,0.06);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.bd-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1080px;
}

/* Page header */
.bd-head {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 1.6rem;
}

.bd-tag {
    display: inline-block;
    border: 1px solid rgba(0,168,150,0.4);
    color: #00A896;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(0,168,150,0.06);
    margin-bottom: 0.9rem;
}

.bd-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.45rem;
}

.bd-title-accent { color: #00A896; }

.bd-sub {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
    max-width: 600px;
    margin: 0 auto;
}

/* Card */
.bd-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow:
        0 2px 4px rgba(15,23,42,0.03),
        0 20px 50px rgba(15,23,42,0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 600px;
}

/* Left aside */
.bd-aside {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.bd-aside-brand img {
    height: 28px;
    width: auto;
    display: block;
}

.bd-aside-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.bd-main {
    display: flex;
    flex-direction: column;
}

/* Vertical stepper */
.bd-stepper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0;
    border-bottom: none;
    background: transparent;
}

.bd-stepnav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.bd-stepnav-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
}

.bd-stepnav-num { display: block; }
.bd-stepnav-check { width: 14px; height: 14px; display: none; }

.bd-stepnav-item--active .bd-stepnav-dot {
    background: linear-gradient(180deg, #00bfac 0%, #00A896 100%);
    border-color: #00A896;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,168,150,0.35);
}

.bd-stepnav-item--done .bd-stepnav-dot {
    background: rgba(0,168,150,0.1);
    border-color: rgba(0,168,150,0.4);
    color: #00A896;
}
.bd-stepnav-item--done .bd-stepnav-num { display: none; }
.bd-stepnav-item--done .bd-stepnav-check { display: block; }

.bd-stepnav-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    transition: color 0.2s;
}

.bd-stepnav-item--active .bd-stepnav-label { color: #0f172a; }
.bd-stepnav-item--done .bd-stepnav-label { color: #00A896; }

.bd-stepnav-bar {
    width: 2px;
    height: 22px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-left: 14px;
    transition: background 0.3s;
}
.bd-stepnav-bar--done { background: rgba(0,168,150,0.45); }

/* Form */
.bd-form {
    display: flex;
    flex-direction: column;
}

.bd-body {
    padding: 30px 36px 8px;
}

/* Steps */
.bd-step {
    display: none;
    animation: bd-fade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-step--active { display: block; }

@keyframes bd-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bd-step-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.bd-step-sub {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1.3rem;
}

/* ── Product cards ── */
.bd-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.bd-product { cursor: pointer; }
.bd-product input { position: absolute; opacity: 0; pointer-events: none; }

.bd-product-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: center;
    transition: all 0.2s;
}

.bd-product-card:hover {
    border-color: rgba(0,168,150,0.4);
    background: #f0fdf9;
}

.bd-product input:checked + .bd-product-card {
    border-color: #00A896;
    background: #f0fdf9;
    box-shadow: 0 6px 16px rgba(0,168,150,0.15);
}

.bd-product-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,168,150,0.12) 0%, rgba(0,168,150,0.05) 100%);
    border: 1px solid rgba(0,168,150,0.22);
    color: #00A896;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bd-product-icon svg { width: 22px; height: 22px; }

.bd-product-body { display: flex; flex-direction: column; gap: 4px; }

.bd-product-name {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.bd-product-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.bd-product-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00A896;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s, transform 0.2s;
}
.bd-product-check svg { width: 12px; height: 12px; }

.bd-product input:checked + .bd-product-card .bd-product-check {
    opacity: 1;
    transform: scale(1);
}

/* "Not sure yet" — small text-style card under the grid */
.bd-product-unsure {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    transition: all 0.2s;
}

.bd-product-unsure input { position: absolute; opacity: 0; pointer-events: none; }

.bd-product-unsure:hover {
    border-color: rgba(0,168,150,0.45);
    background: #f0fdf9;
}

.bd-product-unsure:has(input:checked) {
    border-style: solid;
    border-color: #00A896;
    background: #f0fdf9;
}

.bd-product-unsure-text {
    font-size: 0.88rem;
    color: #475569;
}

.bd-product-unsure-text strong { color: #00A896; font-weight: 700; }

/* ── Form fields (floating-label) ── */
.bd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.bd-section-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.bd-field {
    position: relative;
    display: block;
    margin-bottom: 18px;
}
.bd-field:last-child { margin-bottom: 0; }

.bd-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 14px 14px;
    font-size: 0.95rem;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bd-input::placeholder { color: transparent; }
.bd-input:focus {
    border-color: rgba(0,168,150,0.6);
    box-shadow: 0 0 0 3px rgba(0,168,150,0.1);
}

.bd-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 0 6px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #94a3b8;
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.bd-label-opt { color: #cbd5e1; font-weight: 500; font-size: 0.78rem; }

/* Float when filled or focused (input/textarea) */
.bd-field:has(.bd-input:focus) .bd-label,
.bd-field:has(.bd-input:not(:placeholder-shown)) .bd-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.74rem;
    color: #00A896;
    font-weight: 600;
}

/* Selects: always-floated label */
.bd-field:has(.bd-select) .bd-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 600;
}
.bd-field:has(.bd-select:focus) .bd-label { color: #00A896; }

.bd-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.bd-textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.55;
}

/* Textarea: label sits at top, floats up further on focus/fill */
.bd-field:has(.bd-textarea) .bd-label {
    top: 18px;
    transform: translateY(-50%);
}
.bd-field:has(.bd-textarea:focus) .bd-label,
.bd-field:has(.bd-textarea:not(:placeholder-shown)) .bd-label {
    top: 0;
    font-size: 0.74rem;
}

/* ── Chips ── */
.bd-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.bd-chip {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}
.bd-chip:hover { border-color: rgba(0,168,150,0.4); color: #00A896; }
.bd-chip--active {
    background: rgba(0,168,150,0.08);
    border-color: #00A896;
    color: #00A896;
}

/* ── Calendar ── */
.bd-cal {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 14px;
}

.bd-cal-dates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.bd-cal-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.bd-cal-date:hover { border-color: rgba(0,168,150,0.4); }
.bd-cal-date--active {
    background: rgba(0,168,150,0.08);
    border-color: #00A896;
}

.bd-cal-date-dow {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bd-cal-date-day {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.bd-cal-date--active .bd-cal-date-day { color: #00A896; }
.bd-cal-date-mon { font-size: 0.72rem; color: #64748b; font-weight: 600; }

.bd-cal-slots {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    max-height: 300px;
    overflow-y: auto;
}

.bd-cal-slots-head { margin-bottom: 12px; }
.bd-cal-slots-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.bd-cal-slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.bd-cal-slot {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}
.bd-cal-slot:hover { border-color: rgba(0,168,150,0.4); color: #00A896; }
.bd-cal-slot--active {
    background: linear-gradient(180deg, #00bfac 0%, #00A896 100%);
    border-color: #00A896;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,168,150,0.3);
}

/* ── Summary ── */
.bd-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bd-summary-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.bd-summary-row:last-child { padding-bottom: 0; border-bottom: none; }

.bd-summary-key {
    font-size: 0.74rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.bd-summary-val {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

.bd-summary-row--highlight {
    background: rgba(0,168,150,0.06);
    margin: 4px -10px 0;
    padding: 12px 10px;
    border-radius: 8px;
    border-bottom: none;
}
.bd-summary-row--highlight .bd-summary-key { color: #00A896; }

/* ── Messages ── */
.bd-msg {
    font-size: 0.88rem;
    line-height: 1.55;
    font-weight: 600;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.25s;
}
.bd-msg.show { opacity: 1; height: auto; }

.bd-msg--success {
    background: rgba(0,168,150,0.1);
    border: 1px solid rgba(0,168,150,0.3);
    color: #006d63;
}
.bd-msg--error {
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.3);
    color: #b91c1c;
}

/* ── Actions bar ── */
.bd-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 36px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.bd-step-counter {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 600;
}

.bd-actions .bd-btn--primary { margin-left: auto; }

.bd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s;
}
.bd-btn svg { width: 14px; height: 14px; }

.bd-btn--primary {
    background: linear-gradient(180deg, #00bfac 0%, #00A896 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0,168,150,0.4);
}
.bd-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0,168,150,0.55);
}
.bd-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bd-btn--ghost {
    background: transparent;
    color: #475569;
    border-color: #e2e8f0;
}
.bd-btn--ghost:hover:not(:disabled) {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}
.bd-btn--ghost:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Contact strip */
.bd-contact {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bd-contact a {
    color: #00A896;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}
.bd-contact a:hover { color: #006d63; }
.bd-contact span { color: #cbd5e1; }

/* ── Responsive ── */
@media (max-width: 760px) {
    .bd-watermark { top: 3rem; font-size: 14vw; }
    .bd-card { grid-template-columns: 1fr; min-height: 0; }
    .bd-aside {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 18px 22px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px 18px;
    }
    .bd-aside-title { font-size: 1.1rem; }
    .bd-stepper {
        flex-direction: row;
        gap: 2px;
        width: 100%;
        overflow-x: auto;
    }
    .bd-stepnav-bar { width: 18px; height: 2px; margin-left: 0; flex-shrink: 0; }
    .bd-stepnav-item { gap: 8px; }
    .bd-stepnav-label { display: none; }
    .bd-body { padding: 22px 22px 6px; }
    .bd-actions { padding: 14px 22px; }
    .bd-products { grid-template-columns: 1fr; }
    .bd-grid { grid-template-columns: 1fr; }
    .bd-cal { grid-template-columns: 1fr; }
    .bd-cal-dates { flex-direction: row; max-height: none; overflow-x: auto; padding-bottom: 6px; }
    .bd-cal-date { flex-direction: column; gap: 2px; padding: 8px 10px; min-width: 72px; flex-shrink: 0; align-items: center; }
    .bd-summary-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
    .bd-page { padding: 4rem 1rem 2rem; }
    .bd-actions { flex-direction: column-reverse; gap: 10px; }
    .bd-actions .bd-btn { width: 100%; justify-content: center; }
    .bd-step-counter { order: -1; }
}
