/* ════════════════════════════════════════════════════════════════
   Prep Pal Interactive Demo — Site Chrome
   Two-column marketing hero wrapping the real app UI inside a tablet frame.
   The real app's own CSS (app.css) handles everything inside the screen.
   ════════════════════════════════════════════════════════════════ */

/* ── Root / body ── */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #0f1822;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Blazor WASM bootstrap loading (index.html #app) — template styles are not in app.css for this host */
#app {
    position: relative;
    height: 100%;
    min-height: 100vh;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 6rem;
    height: 6rem;
    inset: 0;
    margin: auto;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 0.55rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #5399db;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    inset: calc(50% + 3.75rem) 0 auto 0;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ── Demo site wrapper ── */
.demo-site {
    min-height: 100vh;
    background: linear-gradient(155deg, #0d1a10 0%, #111e28 45%, #0f1822 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 3rem 4rem;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Subtle background grid pattern */
.demo-site::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    z-index: 0;
}

/* ── Badge ── */
.demo-site__badge {
    display: inline-block;
    background: rgba(212, 162, 30, 0.13);
    color: #D4A21E;
    border: 1px solid rgba(212, 162, 30, 0.35);
    padding: 0.22rem 0.9rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* ── Three-column hero ── */
.demo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 2rem 4.5rem;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    position: relative;
    z-index: 1;
}

/* ── Left column ── */
.demo-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    color: #fff;
}

.demo-hero__headline {
    font-size: clamp(1.65rem, 2.8vw, 2.6rem);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -0.025em;
    margin: 0;
    color: #fff;
}

.demo-hero__sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Benefit cards ── */
.demo-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.demo-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: background 0.15s, border-color 0.15s;
}

.demo-benefit:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(212, 162, 30, 0.22);
}

.demo-benefit__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(212, 162, 30, 0.11);
    border: 1px solid rgba(212, 162, 30, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4A21E;
    flex-shrink: 0;
}

.demo-benefit__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.demo-benefit__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

.demo-benefit__body {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* ── Scenario selector ── */
.demo-scenarios {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-scenarios__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.demo-scenarios__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.demo-scenario {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-align: left;
    line-height: 1.3;
}

.demo-scenario:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.demo-scenario--active {
    background: rgba(212, 162, 30, 0.12);
    border-color: rgba(212, 162, 30, 0.5);
    color: #D4A21E;
}

.demo-scenario--active:hover {
    background: rgba(212, 162, 30, 0.18);
}

.demo-scenario__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.75;
}

.demo-scenario--active .demo-scenario__icon {
    opacity: 1;
}

/* ── CTA buttons ── */
.demo-hero__ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.demo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.68rem 1.35rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    white-space: nowrap;
    line-height: 1;
}

.demo-cta:active {
    transform: scale(0.97);
}

.demo-cta--primary {
    background: #D4A21E;
    color: #1a1100;
    border-color: #D4A21E;
}

.demo-cta--primary:hover:not(:disabled) {
    background: #e2af28;
    border-color: #e2af28;
}

.demo-cta--primary:disabled,
.demo-cta--primary.demo-cta--disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.demo-cta--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    border-color: rgba(255, 255, 255, 0.2);
}

.demo-cta--ghost:hover {
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ── Right column: device area ── */
.demo-hero__device {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ── Right column: guided tour status ── */
.demo-hero__guide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: start;
    padding-top: 2rem;
    gap: 1rem;
    color: #fff;
    min-width: 0;
}

.demo-device-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

/* Radial glow behind the tablet */
.demo-device-glow {
    position: absolute;
    inset: -18% -25%;
    background: radial-gradient(
        ellipse at 55% 50%,
        rgba(212, 162, 30, 0.13) 0%,
        rgba(22, 107, 26, 0.07) 42%,
        transparent 68%
    );
    pointer-events: none;
    z-index: 0;
}

/* ── Tablet frame ── */
.demo-tablet-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.demo-tablet {
    width: 370px;
    max-width: calc(100vw - 2rem);
    background: #1c1c1e;
    border-radius: 32px;
    padding: 14px 10px 18px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.07),
        0 4px 8px rgba(0, 0, 0, 0.35),
        0 28px 70px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.demo-tablet__camera {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3a3a3c;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    margin-bottom: 2px;
}

.demo-tablet__screen {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    height: 680px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    /* Creates a new containing block so position:fixed children (MobileBottomNav)
       are anchored to this frame instead of the browser viewport. */
    transform: translate3d(0, 0, 0);
}

/* The real app shell (.preppal-shell) fills the screen */
.demo-tablet__screen .preppal-shell {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.demo-tablet__screen .preppal-shell__main {
    flex: 1;
    overflow: hidden;
}

/* Label preview: the real app rotates 180° for physical printer roll orientation.
   In the on-screen demo the preview should display right-side up. */
.demo-tablet__screen .lp-real-preview {
    transform: none !important;
}

/* Hide the roll-verification debug info box — not relevant in the demo. */
.demo-tablet__screen .lp-real-preview-debug {
    display: none !important;
}

/* Batch editor and category manage panels: keep within tablet screen height
   so Save/Add buttons are always reachable by scrolling inside the panel. */
.demo-tablet__screen .prep-employee-picker-modal--batch-editor .batch-editor-panel {
    max-height: 88% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
.demo-tablet__screen .prep-employee-picker-modal--batch-editor .batch-editor-panel__body {
    overflow-y: auto !important;
    flex: 1 !important;
}
.demo-tablet__screen .prep-employee-picker-modal--category-manage .prep-employee-picker-modal__panel {
    max-height: 88% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
.demo-tablet__screen .prep-employee-picker-modal--category-manage .prep-employee-picker-modal__body {
    overflow-y: auto !important;
    flex: 1 !important;
}

/* Legacy category context menu: fixed + viewport coords clip inside transformed tablet frame */
.demo-tablet__screen .custom-label-legacy-ctx-backdrop,
.demo-tablet__screen .custom-label-legacy-ctx-menu {
    position: absolute !important;
}

.demo-tablet__bottom {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.demo-tablet__home {
    width: 42px;
    height: 5px;
    background: #3a3a3c;
    border-radius: 3px;
}

/* ── Floating label card — shows the actual SVG label preview ── */
.demo-label-float {
    width: 220px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.18);
    animation: demo-float-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
}

.demo-label-float__preview {
    display: block;
    width: 100%;
    height: auto;
}

/* Batch floating card — vertical stack of label previews */
.demo-label-float--batch {
    width: 220px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-label-float__batch-item {
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.32),
        0 2px 6px rgba(0, 0, 0, 0.16);
}

@keyframes demo-float-in {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dark header — item name */
.demo-label-float__header {
    background: #1d2433;
    color: #fff;
    padding: 0.6rem 0.75rem 0.5rem;
    text-align: center;
}

.demo-label-float__item {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    color: #fff;
}

.demo-label-float__app {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Prep date row */
.demo-label-float__body {
    padding: 0.45rem 0.75rem 0;
}

.demo-label-float__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.3rem;
    padding: 0.28rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.62rem;
}

.demo-label-float__key {
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.demo-label-float__val {
    color: #111827;
    font-weight: 700;
    text-align: right;
}

/* USE BY highlight block */
.demo-label-float__useby {
    margin: 0.45rem 0.75rem 0;
    background: #1d2433;
    color: #fff;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    text-align: center;
}

.demo-label-float__useby-label {
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.12rem;
}

.demo-label-float__useby-val {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
}

/* Footer */
.demo-label-float__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.75rem 0.45rem;
    margin-top: 0.35rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.58rem;
}

.demo-label-float__employee {
    font-weight: 700;
    color: #374151;
}

.demo-label-float__printed {
    color: #15803d;
    font-weight: 700;
    letter-spacing: 0.02em;
}
/* ── "Not available" overlay ── */
.demo-restricted-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 24, 34, 0.88);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    border-radius: 0;
    padding: 1.5rem;
}

.demo-restricted-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.demo-restricted-icon {
    font-size: 2rem;
    line-height: 1;
}

.demo-restricted-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.demo-restricted-body {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

.demo-restricted-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.25rem;
}

.demo-restricted-btn:hover {
    background: #15803d;
}

/* Blazor error banner */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: #b91c1c;
    color: #fff;
    z-index: 100000;
}
#blazor-error-ui.show,
body.blazor-error-bound #blazor-error-ui {
    display: block;
}

/* ── Responsive: tablet/mobile ── */
@media (max-width: 960px) {
    .demo-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .demo-hero__copy {
        align-items: center;
        text-align: center;
    }

    .demo-hero__guide {
        align-items: center;
        text-align: center;
        order: 3;
    }

    .demo-benefit {
        text-align: left;
    }

    .demo-hero__ctas {
        justify-content: center;
    }

    .demo-scenarios__grid {
        grid-template-columns: 1fr 1fr;
    }

    .demo-tablet {
        width: 390px;
    }

    .demo-tablet__screen {
        height: 700px;
    }
}

@media (max-width: 440px) {
    .demo-site {
        padding: 1.75rem 1rem 3rem;
    }

    .demo-tablet {
        border-radius: 24px;
        width: 100%;
    }

    .demo-tablet__screen {
        height: 600px;
    }
}

/* Desktop: ensure the tablet is nicely sized in the right column */
@media (min-width: 961px) {
    .demo-tablet {
        width: 400px;
    }

    .demo-tablet__screen {
        height: 730px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Settings section — view toggle + language selector
   ═══════════════════════════════════════════════════════════════ */

.demo-settings {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-settings__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.demo-settings__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.demo-settings__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.demo-settings__item-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

/* ── View toggle (Legacy / Default pill buttons) ── */
.demo-view-toggle {
    display: flex;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.demo-view-toggle__btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.38rem 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.demo-view-toggle__btn:not(:last-child) {
    border-right: 1.5px solid rgba(255, 255, 255, 0.12);
}

.demo-view-toggle__btn--active {
    background: rgba(212, 162, 30, 0.18);
    color: #D4A21E;
}

.demo-view-toggle__btn:not(.demo-view-toggle__btn--active):hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.8);
}

/* ── Language dropdown ── */
.demo-lang-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.36rem 0.65rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
    /* chevron icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    padding-right: 1.8rem;
}

.demo-lang-select:hover,
.demo-lang-select:focus {
    border-color: rgba(212, 162, 30, 0.5);
    color: #fff;
}

.demo-lang-select option {
    background: #1a2535;
    color: #fff;
}

/* ── Lead capture gate ──────────────────────────────────────────────────── */
.demo-lead-gate {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
}

.demo-lead-card {
    background: #111e28;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.demo-lead-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 1rem;
}

.demo-lead-headline {
    margin-top: 1.25rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 0.4rem;
    text-align: center;
    line-height: 1.2;
}

.demo-lead-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    margin: 0 0 1.35rem;
    text-align: center;
    line-height: 1.5;
}

.demo-lead-body {
    width: 100%;
    padding: 2.5rem 1.75rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #111e28;
}

.demo-lead-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.demo-lead-field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.demo-lead-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.01em;
}

.demo-lead-label span {
    color: #D4A21E;
}

.demo-lead-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255,255,255,0.07);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.demo-lead-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.demo-lead-input:focus {
    border-color: #D4A21E;
    box-shadow: 0 0 0 3px rgba(212, 162, 30, 0.25);
}

.demo-lead-input--error {
    border-color: #ef4444;
}

.demo-lead-input--error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.demo-lead-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.demo-lead-error {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
}

.demo-lead-error--block {
    text-align: center;
    margin-top: 0.25rem;
}

.demo-lead-btn {
    margin-top: 0.35rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid #D4A21E;
    background: #D4A21E;
    color: #1a1100;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    font-family: inherit;
}

.demo-lead-btn:hover:not(:disabled) {
    background: #e2af28;
    border-color: #e2af28;
}

.demo-lead-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.demo-lead-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.demo-lead-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(26, 17, 0, 0.25);
    border-top-color: #1a1100;
    border-radius: 50%;
    animation: demo-lead-spin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes demo-lead-spin {
    to { transform: rotate(360deg); }
}

.demo-lead-skip {
    margin-top: 0.9rem;
    background: none;
    border: none;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-family: inherit;
    transition: color 0.15s;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.demo-lead-skip:hover {
    color: rgba(255,255,255,0.75);
}

@media (max-width: 480px) {
    .demo-lead-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    .demo-lead-headline {
        font-size: 1.15rem;
    }
}
