/* Free Funding Assessment — public lead-magnet quiz (/funding-assessment) */

.fa-page {
    --fa-primary: #0284c7;
    --fa-primary-dark: #0369a1;
    --fa-bg: #f8fafc;
    --fa-card: #ffffff;
    --fa-text: #0f172a;
    --fa-muted: #64748b;
    --fa-border: #e2e8f0;
    --fa-success: #22c55e;

    background: var(--fa-bg);
    color: var(--fa-text);
    padding: 3rem 0 4rem;
    /* Fixed site header — keep the page clear of it when linked to by anchor */
    scroll-margin-top: 100px;
}

.fa-page * {
    box-sizing: border-box;
}

.fa-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.fa-left {
    flex: 1.2;
    min-width: 0;
}

.fa-right {
    flex: 0.8;
    min-width: 0;
    background: var(--fa-card);
    border: 1px solid var(--fa-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 110px;
}

/* ---------- Landing ---------- */

.fa-eyebrow {
    color: var(--fa-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fa-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0.75rem 0 1rem;
}

.fa-page h1 span {
    color: var(--fa-primary);
}

.fa-hero-desc {
    color: var(--fa-muted);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.fa-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.fa-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.fa-feature-icon {
    background: #f0f9ff;
    color: var(--fa-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
}

.fa-feature-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.fa-feature-text {
    color: var(--fa-muted);
    font-size: 0.9rem;
}

.fa-btn {
    background: var(--fa-primary);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fa-btn:hover,
.fa-btn:focus {
    background: var(--fa-primary-dark);
    color: #fff;
    text-decoration: none;
}

.fa-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.fa-note {
    font-size: 0.85rem;
    color: var(--fa-muted);
    margin-top: 0.75rem;
}

/* ---------- Quiz ---------- */

.fa-card {
    background: var(--fa-card);
    border: 1px solid var(--fa-border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.fa-progress-outer {
    background: var(--fa-border);
    height: 6px;
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.fa-progress {
    background: var(--fa-primary);
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.fa-step-count {
    font-size: 0.8rem;
    color: var(--fa-muted);
    margin-bottom: 1.25rem;
}

.fa-question {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.fa-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fa-option {
    border: 2px solid var(--fa-border);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    background: #fff;
    text-align: left;
    width: 100%;
}

.fa-option:hover,
.fa-option:focus {
    border-color: var(--fa-primary);
    background: #f0f9ff;
    outline: none;
}

.fa-back {
    background: none;
    border: none;
    color: var(--fa-muted);
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1.5rem;
    padding: 0;
}

.fa-back:hover {
    color: var(--fa-primary);
}

/* ---------- Results panel ---------- */

.fa-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--fa-border);
    padding-bottom: 0.75rem;
    gap: 0.5rem;
}

.fa-preview-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.fa-badge {
    font-size: 0.75rem;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--fa-muted);
    white-space: nowrap;
}

.fa-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fa-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--fa-border);
    border-radius: 8px;
    background: #fafafa;
    opacity: 0.85;
    transition: all 0.3s;
    gap: 0.75rem;
}

.fa-result.unlocked {
    opacity: 1;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.fa-result-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.fa-rank {
    background: var(--fa-border);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    flex: 0 0 24px;
}

.fa-result-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.fa-result-desc {
    font-size: 0.8rem;
    color: var(--fa-muted);
}

.fa-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fa-score-label {
    font-size: 0.75rem;
    color: var(--fa-muted);
}

.fa-score-val {
    font-weight: 700;
    color: var(--fa-primary);
    font-size: 1.1rem;
}

.fa-footer-note {
    font-size: 0.85rem;
    color: var(--fa-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Legally required — do not remove. */
.fa-disclaimer {
    font-size: 0.75rem;
    color: var(--fa-muted);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--fa-border);
    line-height: 1.4;
}

/* ---------- Email step & completion ---------- */

.fa-field {
    margin-bottom: 1rem;
    text-align: left;
}

.fa-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.fa-field input {
    width: 100%;
    border: 1px solid var(--fa-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.fa-field input:focus {
    border-color: var(--fa-primary);
    outline: none;
}

.fa-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.fa-center {
    text-align: center;
}

.fa-tick {
    color: var(--fa-success);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.fa-done-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.fa-done-text {
    color: var(--fa-muted);
    margin-bottom: 1.5rem;
}

.fa-cta-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fa-btn-ghost {
    background: #fff;
    color: var(--fa-primary);
    border: 1px solid var(--fa-border);
}

.fa-btn-ghost:hover,
.fa-btn-ghost:focus {
    background: #f0f9ff;
    color: var(--fa-primary-dark);
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .fa-wrap {
        flex-direction: column;
    }

    .fa-right {
        position: static;
        width: 100%;
    }

    .fa-page h1 {
        font-size: 2rem;
    }

    .fa-card {
        padding: 1.5rem;
    }

    .fa-question {
        font-size: 1.25rem;
    }
}
