:root {
    color-scheme: dark;

    --bg: #050a09;
    --panel: #0e1715;
    --panel-soft: #14201d;
    --panel-raised: #172520;

    --border: rgba(211, 230, 217, .13);
    --border-gold: rgba(226, 196, 109, .35);

    --gold: #e2c46d;
    --gold-light: #f1daa0;

    --green: #91d7b8;
    --green-bright: #63d5a6;
    --green-dark: #17493a;

    --text: #f3f5f1;
    --muted: #a3b2aa;
    --faint: #718079;

    --danger: #ff91a0;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at 93% 3%,
            rgba(226, 196, 109, .12),
            transparent 30%
        ),
        radial-gradient(
            circle at 4% 95%,
            rgba(99, 213, 166, .11),
            transparent 34%
        ),
        var(--bg);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input,
textarea,
select {
    font: inherit;
}

.wizard-shell {
    width: min(1220px, calc(100% - 32px));
    margin: auto;
    padding: 20px 0 55px;
}

.wizard-header {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wizard-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
}

.wizard-brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--border-gold);
    border-radius: 13px;
    color: var(--gold);
    background:
        rgba(226, 196, 109, .08);
    font-size: 12px;
    font-weight: 950;
}

.wizard-brand > span:last-child {
    display: grid;
}

.wizard-brand strong {
    color: var(--gold-light);
    font-size: 13px;
    letter-spacing: .13em;
}

.wizard-brand small {
    color: var(--faint);
    font-size: 10px;
}

.test-mode-badge {
    padding: 7px 10px;
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(226, 196, 109, .07);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.test-mode-notice {
    display: grid;
    grid-template-columns:
        auto minmax(0, 1fr) auto;
    margin: 18px 0 26px;
    padding: 15px 17px;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    background:
        linear-gradient(
            135deg,
            rgba(29, 40, 35, .97),
            rgba(13, 21, 18, .97)
        );
}

.notice-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--gold);
    background:
        rgba(226, 196, 109, .09);
}

.test-mode-notice strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.test-mode-notice p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.test-mode-notice button {
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background:
        rgba(255, 255, 255, .045);
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
}

.wizard-layout {
    display: grid;
    grid-template-columns:
        minmax(280px, .7fr)
        minmax(0, 1.3fr);
    min-height: 650px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(17, 29, 25, .97),
            rgba(8, 15, 13, .98)
        );
    box-shadow:
        0 35px 100px rgba(0, 0, 0, .35);
}

.wizard-intro {
    display: flex;
    padding:
        clamp(30px, 5vw, 62px);
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(99, 213, 166, .09),
            transparent 38%
        );
}

.wizard-eyebrow {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.wizard-intro h1 {
    margin: 17px 0 19px;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(43px, 5vw, 67px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.045em;
}

.wizard-intro > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.wizard-progress-copy {
    display: flex;
    margin-top: 45px;
    justify-content: space-between;
    color: var(--faint);
    font-size: 11px;
}

.wizard-progress-copy strong {
    color: var(--green);
}

.wizard-progress {
    height: 5px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 99px;
    background:
        rgba(255, 255, 255, .07);
}

.wizard-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--green-bright),
            var(--gold)
        );
    transition: width .35s ease;
}

.question-card {
    display: flex;
    min-width: 0;
    padding:
        clamp(28px, 5vw, 64px);
    flex-direction: column;
    justify-content: space-between;
}

.question-number {
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.question-title {
    max-width: 720px;
    margin: 12px 0 10px;
    font-size: clamp(29px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -.025em;
}

.question-description {
    max-width: 680px;
    margin: 0 0 27px;
    color: var(--muted);
    line-height: 1.6;
}

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

.option-card {
    display: grid;
    min-height: 105px;
    padding: 17px;
    align-content: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    text-align: left;
    background:
        rgba(255, 255, 255, .025);
    cursor: pointer;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color:
        rgba(145, 215, 184, .45);
    background:
        rgba(145, 215, 184, .055);
}

.option-card.is-selected {
    border-color: var(--green);
    background:
        rgba(145, 215, 184, .1);
    box-shadow:
        inset 0 0 0 1px
        rgba(145, 215, 184, .12);
}

.option-card strong {
    font-size: 14px;
}

.option-card span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.multi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.multi-option {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background:
        rgba(255, 255, 255, .025);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.multi-option.is-selected {
    color: #07100d;
    border-color: var(--green);
    background: var(--green);
}

.text-answer {
    width: 100%;
    min-height: 125px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    color: var(--text);
    background: rgba(0, 0, 0, .22);
    resize: vertical;
}

.text-answer:focus {
    border-color: var(--green);
    box-shadow:
        0 0 0 3px
        rgba(145, 215, 184, .08);
}

.question-actions {
    display: flex;
    margin-top: 34px;
    justify-content: space-between;
    gap: 12px;
}

.wizard-button {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 900;
}

.wizard-button-primary {
    margin-left: auto;
    border: 0;
    color: #07100d;
    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--gold-light)
        );
}

.wizard-button-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background:
        rgba(255, 255, 255, .035);
}

/* SweetAlert2 */

.swal2-container {
    backdrop-filter: blur(8px);
}

.kj-swal-popup {
    border: 1px solid var(--border-gold) !important;
    border-radius: 22px !important;
    color: var(--text) !important;
    background:
        radial-gradient(
            circle at 90% 0,
            rgba(226, 196, 109, .12),
            transparent 34%
        ),
        #0e1715 !important;
    box-shadow:
        0 35px 100px rgba(0, 0, 0, .65) !important;
}

.kj-swal-title {
    color: var(--text) !important;
    font-family:
        Georgia,
        "Times New Roman",
        serif !important;
    font-size: 31px !important;
    font-weight: 500 !important;
}

.kj-swal-html {
    color: var(--muted) !important;
}

.kj-swal-confirm {
    border: 0 !important;
    border-radius: 11px !important;
    color: #07100d !important;
    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--gold-light)
        ) !important;
    font-weight: 900 !important;
}

.kj-swal-cancel {
    border: 1px solid var(--border) !important;
    border-radius: 11px !important;
    color: var(--text) !important;
    background:
        rgba(255, 255, 255, .045) !important;
}

.result-section {
    margin-top: 15px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    text-align: left;
    background:
        rgba(255, 255, 255, .025);
}

.result-section strong {
    display: block;
    margin-bottom: 9px;
    color: var(--gold-light);
}

.result-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.result-chip {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid
        rgba(145, 215, 184, .3);
    border-radius: 999px;
    color: var(--green);
    background:
        rgba(145, 215, 184, .07);
    font-size: 11px;
    font-weight: 850;
}

@media (max-width: 820px) {
    .wizard-layout {
        grid-template-columns: 1fr;
    }

    .wizard-intro {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .wizard-intro h1 {
        font-size: clamp(38px, 10vw, 57px);
    }

    .test-mode-notice {
        grid-template-columns:
            auto minmax(0, 1fr);
    }

    .test-mode-notice button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .wizard-shell {
        width: min(100% - 18px, 1220px);
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .question-card,
    .wizard-intro {
        padding: 25px 19px;
    }

    .question-actions {
        position: sticky;
        bottom: 0;
        padding-top: 14px;
        background:
            linear-gradient(
                transparent,
                var(--panel) 25%
            );
    }
}
