/* Demo booking page (inherits global theme from styles.css) */

.demo-page,
html,
body {
    background: #020617;
}

.demo-page {
    padding: 3.5rem 0 3rem;
    background: radial-gradient(1200px 700px at 25% -10%, rgba(37, 99, 235, 0.35), transparent 60%),
                radial-gradient(900px 600px at 90% 20%, rgba(16, 185, 129, 0.18), transparent 55%),
                linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
    min-height: 100vh;
}

.demo-container {
    max-width: 1120px;
}

.demo-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.demo-kicker {
    margin: 0 0 0.35rem 0;
    color: rgba(226, 232, 240, 0.72);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.demo-title {
    margin: 0 0 0.6rem 0;
    color: #f8fafc;
    font-size: clamp(2rem, 3.4vw, 3rem);
    letter-spacing: -0.02em;
}

.demo-subtitle {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.6;
    max-width: 62ch;
}

.demo-back {
    color: rgba(226, 232, 240, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(10px);
}
.demo-back:hover { border-color: rgba(148, 163, 184, 0.45); }

.demo-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.demo-chat,
.demo-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.1rem;
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.demo-chat {
    overflow: hidden;
    min-height: 364px;
    max-height: 620px;
    display: grid;
    grid-template-rows: auto 1fr;
}

.demo-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.demo-ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.95rem;
}
.demo-ai-pill i { color: var(--accent-color); }

.demo-chat-meta {
    color: rgba(226, 232, 240, 0.65);
    font-size: 0.9rem;
}

.demo-chat-body {
    padding: 1rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-bubble {
    max-width: 86%;
    border-radius: 1rem;
    padding: 0.75rem 0.85rem;
    line-height: 1.55;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
    color: rgba(248, 250, 252, 0.92);
}
.chat-bubble.is-user {
    align-self: flex-end;
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.28);
}
.chat-bubble .muted { color: rgba(226, 232, 240, 0.7); }

.chat-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.35);
    color: rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    padding: 0.5rem 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.chip:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.45);
}
.chip.is-active {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.12);
}

.demo-panel {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.demo-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.demo-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.65rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.35);
    color: rgba(226, 232, 240, 0.7);
    font-weight: 700;
    font-size: 0.9rem;
    user-select: none;
}
.demo-step span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: rgba(226, 232, 240, 0.75);
    background: rgba(15, 23, 42, 0.55);
    font-size: 0.85rem;
}
.demo-step.is-active {
    border-color: rgba(37, 99, 235, 0.38);
    background: rgba(37, 99, 235, 0.12);
    color: rgba(248, 250, 252, 0.92);
}
.demo-step.is-active span {
    border-color: rgba(37, 99, 235, 0.55);
    color: rgba(248, 250, 252, 0.95);
}

.demo-card { overflow: hidden; }
.demo-card-body {
    padding: 1rem;
    max-height: 620px;
    overflow: auto;
}
.demo-card-foot {
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.35);
}

.demo-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.demo-actions #demoNextBtn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-color: #f59e0b;
    color: #fff;
}

.demo-actions #demoNextBtn:hover {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    border-color: #fbbf24;
}

.demo-actions #demoNextBtn.is-ready {
    animation: demo-ready-glow 1.5s ease-in-out infinite;
}

@keyframes demo-ready-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.demo-summary {
    min-height: 1.25rem;
    color: rgba(226, 232, 240, 0.78);
    font-weight: 600;
    font-size: 0.92rem;
    max-width: 50ch;
}

.demo-privacy {
    margin: 0;
    color: rgba(226, 232, 240, 0.65);
    font-size: 0.92rem;
    line-height: 1.5;
}

.demo-privacy a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.demo-privacy a:hover,
.demo-privacy a:focus-visible {
    color: #bfdbfe;
}

.demo-privacy a:active {
    color: #dbeafe;
}

.stage-title {
    margin: 0 0 0.6rem 0;
    color: rgba(248, 250, 252, 0.95);
    font-weight: 800;
    letter-spacing: -0.015em;
}

.stage-hint {
    margin: 0 0 0.95rem 0;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.55;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.option-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.45);
    padding: 0.85rem 0.9rem;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
    min-height: 88px;
}
.option-card:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.42);
}
.option-card.is-active {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.10);
}
.option-title {
    color: rgba(248, 250, 252, 0.95);
    font-weight: 800;
    margin: 0 0 0.35rem 0;
}
.option-desc {
    color: rgba(226, 232, 240, 0.72);
    margin: 0;
    line-height: 1.45;
    font-size: 0.92rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.4rem;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.field label {
    color: rgba(226, 232, 240, 0.8);
    font-weight: 700;
    font-size: 0.9rem;
}
.field input, .field select, .field textarea {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.9rem;
    padding: 0.75rem 0.8rem;
    background: rgba(2, 6, 23, 0.35);
    color: rgba(248, 250, 252, 0.92);
    outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.field a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.field a:hover,
.field a:focus-visible {
    color: #bfdbfe;
}

.field a:active {
    color: #dbeafe;
}

.telemetry-wrap {
    display: grid;
    gap: 0.75rem;
}
.telemetry-group {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1rem;
    padding: 0.75rem;
    background: rgba(2, 6, 23, 0.25);
}
.telemetry-group h4 {
    margin: 0 0 0.55rem 0;
    color: rgba(248, 250, 252, 0.92);
    font-size: 0.95rem;
}
.telemetry-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
}
.schedule-col {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1rem;
    background: rgba(2, 6, 23, 0.25);
    padding: 0.75rem;
    min-height: 220px;
    position: relative;
    z-index: 1;
}
.schedule-col h4 {
    margin: 0 0 0.6rem 0;
    color: rgba(248, 250, 252, 0.92);
    font-size: 0.95rem;
}
.schedule-list {
    display: grid;
    gap: 0.5rem;
    max-height: none;
    overflow: visible;
    padding-right: 0.2rem;
    position: relative;
    z-index: 2;
    overscroll-behavior: contain;
}
.slot-btn {
    width: 100%;
    display: block;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    -webkit-appearance: none;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.45);
    color: rgba(226, 232, 240, 0.9);
    border-radius: 0.9rem;
    padding: 0.6rem 0.7rem;
    cursor: pointer;
    font-weight: 700;
}
.slot-btn:hover { border-color: rgba(148, 163, 184, 0.42); }
.slot-btn.is-active { border-color: rgba(16, 185, 129, 0.55); background: rgba(16, 185, 129, 0.10); }
.slot-btn.is-booked {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: rgba(252, 165, 165, 0.95);
    cursor: not-allowed;
    opacity: 0.9;
}

.slot-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.8rem;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.95rem;
    background: rgba(2, 6, 23, 0.22);
}

.slot-picker-selected {
    color: rgba(248, 250, 252, 0.92);
    font-weight: 700;
    font-size: 0.95rem;
}

.slot-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.65);
}

.slot-picker-modal.is-open {
    display: flex;
}

.slot-picker-dialog {
    width: min(900px, 96vw);
    max-height: 86vh;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    background: rgba(2, 6, 23, 0.92);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.slot-picker-head,
.slot-picker-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    position: relative;
    z-index: 1;
}

.slot-picker-foot {
    border-bottom: none;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.slot-picker-title {
    color: rgba(248, 250, 252, 0.95);
    font-weight: 800;
}

.slot-picker-body {
    padding: 0.9rem;
    overflow: auto;
    position: relative;
    z-index: 3;
}

.hint-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.25);
    color: rgba(226, 232, 240, 0.75);
    border-radius: 999px;
    padding: 0.45rem 0.65rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.danger {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.24);
    border-radius: 0.9rem;
    padding: 0.7rem 0.8rem;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .demo-grid { grid-template-columns: 1fr; }
    .demo-chat { min-height: 266px; }
    .demo-chat,
    .demo-card-body {
        max-height: 520px;
    }
    .demo-stepper { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .option-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .schedule-grid { grid-template-columns: 1fr; }
    .demo-card-foot { flex-direction: column; align-items: stretch; }
    .demo-actions { justify-content: space-between; }
}

