﻿:root {
    --navy: #0D1B2A;
    --navy-mid: #162338;
    --navy-light: #1E3352;
    --gold: #C9A84C;
    --gold-light: #E4C97E;
    --gold-pale: #F5EAC8;
    --cream: #FAF7F2;
    --white: #FFFFFF;
    --text-dark: #0D1B2A;
    --text-mid: #3A4A5C;
    --text-light: #6B7C93;
    --border: #D8CEBA;
    --success: #2D7A5B;
    --error: #B33A3A;
    --step-done: #2D7A5B;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    min-height: 100vh;
}

/* ─── HEADER ─── */
.site-header {
    background: #cfebf7 !important;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 32px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-emblem {
    width: 44px;
    height: 44px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
    flex-shrink: 0;
}

.header-titles h1 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.header-titles p {
    font-size: 11px;
    color: var(--gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
    text-align:center;
}

.header-badge {
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

/* ─── HERO BANNER ─── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1A3A5C 100%);
    padding: 56px 32px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .hero::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -40px;
        width: 280px;
        height: 280px;
        background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
        border-radius: 50%;
    }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: rgba(201,168,76,0.2);
    border: 1px solid rgba(201,168,76,0.5);
    color: var(--gold-light);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 16px;
}

    .hero h2 span {
        color: var(--gold-light);
    }

.hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: 0.04em;
}

    .hero-meta-item .dot {
        width: 6px;
        height: 6px;
        background: var(--gold);
        border-radius: 50%;
    }

/* ─── STEP WIZARD ─── */
.wizard-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 73px;
    z-index: 90;
}

.wizard-steps {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    overflow-x: auto;
}

.step-item {
    flex: 1;
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 10px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.25s;
    white-space: nowrap;
}

    .step-item:hover {
        background: rgba(201,168,76,0.06);
    }

    .step-item.active {
        border-bottom-color: var(--gold);
    }

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #EDE8DF;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
}

.step-item.active .step-num {
    background: var(--gold);
    color: var(--navy);
}

.step-item.done .step-num {
    background: var(--step-done);
    color: white;
}

    .step-item.done .step-num::after {
        content: '✓';
    }

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}

.step-item.active .step-label {
    color: var(--navy);
    font-weight: 600;
}

/* ─── MAIN CONTENT ─── */
.main-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ─── SECTION PANELS ─── */
.form-section {
    display: none;
    animation: fadeSlide 0.35s ease;
}

    .form-section.active {
        display: block;
    }

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.section-icon {
    width: 46px;
    height: 46px;
    background: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
}

.section-header-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

.section-header-text p {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.5;
}

/* ─── RESPONDENT FORM ─── */
.resp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

    .resp-grid .full {
        grid-column: 1/-1;
    }

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-field label {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-mid);
    }

        .form-field label .req {
            color: var(--gold);
        }

    .form-field input,
    .form-field select,
    .form-field textarea {
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        padding: 11px 14px;
        border: 1.5px solid var(--border);
        border-radius: 8px;
        background: var(--white);
        color: var(--text-dark);
        transition: border-color 0.2s, box-shadow 0.2s;
        outline: none;
        width: 100%;
    }

        .form-field input:focus,
        .form-field select:focus,
        .form-field textarea:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
        }

    .form-field textarea {
        resize: vertical;
        min-height: 90px;
    }

/* ─── QUESTION CARD ─── */
.q-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

    .q-card:hover {
        box-shadow: 0 4px 24px rgba(13,27,42,0.08);
    }

.q-number {
    display: inline-block;
    background: var(--navy);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.q-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.4;
}

.q-context {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #F5F2EC;
    border-left: 3px solid var(--gold);
    border-radius: 0 6px 6px 0;
}

.q-instruction {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

/* ─── OPTIONS ─── */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 14px;
    border: 1.5px solid #EDE8DF;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.18s;
    background: #FDFCFA;
}

    .option-item:hover {
        border-color: var(--gold);
        background: rgba(201,168,76,0.05);
    }

    .option-item input[type="checkbox"],
    .option-item input[type="radio"] {
        width: 17px;
        height: 17px;
        accent-color: var(--navy);
        margin-top: 1px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .option-item label {
        font-size: 13.5px;
        color: var(--text-dark);
        cursor: pointer;
        line-height: 1.5;
        font-weight: 400;
    }

/* ─── SECTION B (Chapter Viability) ─── */
.chapter-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    margin-bottom: 28px;
    overflow: hidden;
}

.chapter-head {
    background: var(--navy);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.chapter-badge {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 5px;
    letter-spacing: 0.05em;
}

.chapter-head-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.chapter-head-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 3px;
}

.chapter-body {
    padding: 24px;
}

.viability-group {
    margin-bottom: 24px;
}

.sub-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #EDE8DF;
}

.viability-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.viability-btn {
    position: relative;
}

    .viability-btn input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .viability-btn label {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 20px;
        border: 1.5px solid var(--border);
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.18s;
        background: #FDFCFA;
        color: var(--text-dark);
    }

    .viability-btn input[type="radio"]:checked + label {
        background: var(--navy);
        color: var(--white);
        border-color: var(--navy);
    }

    .viability-btn label:hover {
        border-color: var(--gold);
        background: rgba(201,168,76,0.06);
    }

.v-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.v-high .v-dot {
    background: var(--success);
}

.v-med .v-dot {
    background: var(--gold);
}

.v-low .v-dot {
    background: var(--error);
}

.compact-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .compact-options .option-item {
        padding: 8px 12px;
        border-radius: 7px;
    }

        .compact-options .option-item label {
            font-size: 13px;
        }

/* ─── SECTION C ─── */
.open-q-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    margin-bottom: 24px;
    overflow: hidden;
}

.open-q-head {
    background: linear-gradient(90deg, var(--navy-mid) 0%, var(--navy-light) 100%);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.open-q-num {
    background: var(--gold);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.open-q-head h5 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: var(--white);
    font-weight: 600;
}

.open-q-body {
    padding: 20px 22px;
}

    .open-q-body .hint {
        font-size: 12px;
        color: var(--text-light);
        margin-bottom: 12px;
        line-height: 1.6;
    }

    .open-q-body textarea {
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid var(--border);
        border-radius: 8px;
        min-height: 120px;
        resize: vertical;
        color: var(--text-dark);
        background: var(--cream);
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .open-q-body textarea:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
            background: var(--white);
        }

/* ─── COMMENT BOX ─── */
.comment-box {
    margin-top: 16px;
}

    .comment-box label {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--text-light);
        display: block;
        margin-bottom: 6px;
    }

    .comment-box textarea {
        font-family: 'DM Sans', sans-serif;
        font-size: 13px;
        width: 100%;
        padding: 10px 12px;
        border: 1.5px solid #EDE8DF;
        border-radius: 8px;
        min-height: 72px;
        resize: vertical;
        color: var(--text-dark);
        background: #FDFCFA;
        outline: none;
        transition: border-color 0.2s;
    }

        .comment-box textarea:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
        }

/* ─── NAV BUTTONS ─── */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1.5px solid var(--border);
}

    .nav-bar .progress-info {
        font-size: 12px;
        color: var(--text-light);
    }

        .nav-bar .progress-info strong {
            color: var(--navy);
        }

.btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

    .btn-primary:hover {
        background: var(--navy-light);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(13,27,42,0.25);
    }

.btn-secondary {
    background: transparent;
    color: var(--text-mid);
    border: 1.5px solid var(--border);
}

    .btn-secondary:hover {
        border-color: var(--navy);
        color: var(--navy);
    }

.btn-submit {
    background: linear-gradient(135deg, var(--gold) 0%, #B8922A 100%);
    color: var(--navy);
    padding: 14px 36px;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 28px rgba(201,168,76,0.45);
    }

/* ─── SUCCESS PANEL ─── */
.success-panel {
    display: none;
    text-align: center;
    padding: 60px 40px;
}

    .success-panel.show {
        display: block;
    }

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
}

.success-panel h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 12px;
}

.success-panel p {
    font-size: 15px;
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto 8px;
    line-height: 1.6;
}

.success-ref {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: #F5F2EC;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-mid);
}

    .success-ref strong {
        color: var(--navy);
    }

/* ─── ERROR MESSAGE ─── */
.error-msg {
    background: #FBF0F0;
    border: 1px solid #E8BFBF;
    color: var(--error);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

    .error-msg.show {
        display: block;
    }

/* ─── PROGRESS BAR ─── */
.progress-wrap {
    max-width: 960px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.progress-bar-outer {
    height: 5px;
    background: #EDE8DF;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ─── FOOTER ─── */
.site-footer {
    background: var(--navy);
    padding: 24px 32px;
    text-align: center;
}

    .site-footer p {
        font-size: 12px;
        color: rgba(255,255,255,0.45);
        line-height: 1.7;
    }

    .site-footer a {
        color: var(--gold-light);
        text-decoration: none;
    }

/* ─── RESPONSIVE ─── */
@media (max-width: 680px) {
    .resp-grid {
        grid-template-columns: 1fr;
    }

    .wizard-steps {
        padding: 0 12px;
    }

    .main-wrap {
        padding: 24px 16px 60px;
    }

    .q-card, .chapter-body {
        padding: 18px 16px;
    }

    .header-inner {
        padding: 12px 16px;
    }

    .hero {
        padding: 36px 16px 32px;
    }

    .hero-meta {
        gap: 16px;
    }
}