/* ============================================================
   WEALTH FACTORY — GET TO KNOW YOU QUIZ
   Prefix: .wfq-  (Wealth Factory Quiz)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --wfq-cool-black: #002349;
    --wfq-satin-gold: #C29B40;
    --wfq-gold-light: #E5C478;
    --wfq-gold-soft: rgba(194, 155, 64, 0.12);
    --wfq-gold-border: rgba(194, 155, 64, 0.3);
    --wfq-cream: #FDF8F0;
    --wfq-cream-dark: #F5EDE0;
    --wfq-white: #FFFFFF;
    --wfq-text-primary: #1A1A2E;
    --wfq-text-secondary: #5A5A6E;
    --wfq-text-light: #8A8A9A;
    --wfq-border: #E0D8CC;
    --wfq-border-hover: #C29B40;
    --wfq-shadow-sm: 0 1px 3px rgba(0, 35, 73, 0.06);
    --wfq-shadow-md: 0 4px 12px rgba(0, 35, 73, 0.08);
    --wfq-shadow-lg: 0 8px 24px rgba(0, 35, 73, 0.12);
    --wfq-radius: 12px;
    --wfq-radius-sm: 8px;
    --wfq-transition: 0.3s ease;
    --wfq-font-headline: 'Cormorant Garamond', Georgia, serif;
    --wfq-font-body: 'Montserrat', -apple-system, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--wfq-font-body);
    background-color: #FFFFFF;
    color: var(--wfq-text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Container ---------- */
.wfq-container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ---------- Intro Headline (Q1 only) ---------- */
.wfq-intro-headline {
    text-align: center;
    padding: 20px 24px 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}

.wfq-intro-headline.wfq-hidden {
    opacity: 0;
    max-height: 0;
    padding: 0 24px;
}

/* ---------- Progress Bar ---------- */
.wfq-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--wfq-border);
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wfq-progress-step-label {
    font-family: var(--wfq-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--wfq-text-secondary);
    letter-spacing: 0.02em;
}

.wfq-progress-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wfq-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--wfq-border);
    transition: all var(--wfq-transition);
}

.wfq-dot-completed {
    background-color: var(--wfq-satin-gold);
}

.wfq-dot-active {
    width: 28px;
    border-radius: 4px;
    background-color: var(--wfq-cool-black);
}

/* ---------- Screens Wrapper ---------- */
.wfq-screens-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* ---------- Screen (each step) ---------- */
.wfq-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    padding: 20px 24px 20px;
    overflow-y: auto;
}

.wfq-screen-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.wfq-screen-exit-left {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-40px);
}

.wfq-screen-content {
    width: 100%;
    max-width: 680px;
    text-align: center;
    overflow-x: hidden;
    margin: 0 auto;
}

.wfq-results-content.wfq-screen-content {
    max-width: 860px;
}

/* ---------- Intro Screen ---------- */
.wfq-logo {
    width: 180px;
    height: auto;
    margin-bottom: 32px;
}

.wfq-headline {
    font-family: var(--wfq-font-headline);
    font-size: 48px;
    font-weight: 600;
    color: var(--wfq-cool-black);
    line-height: 1.2;
    margin-bottom: 4px;
}

.wfq-subtext {
    font-size: 15px;
    font-weight: 400;
    color: var(--wfq-text-secondary);
    margin-bottom: 20px;
}

.wfq-start-btn {
    min-width: 200px;
}

/* ---------- Question Screens ---------- */
.wfq-question-title {
    font-family: var(--wfq-font-headline);
    font-size: 30px;
    font-weight: 600;
    color: var(--wfq-cool-black);
    line-height: 1.25;
    margin-bottom: 8px;
}

.wfq-question-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--wfq-text-secondary);
    margin-bottom: 32px;
}

/* ---------- Option Cards ---------- */
.wfq-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.wfq-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border: 1.5px solid var(--wfq-border);
    border-radius: var(--wfq-radius);
    background-color: var(--wfq-white);
    cursor: pointer;
    transition: all var(--wfq-transition);
    position: relative;
}

.wfq-option-card:hover {
    border-color: var(--wfq-border-hover);
    box-shadow: var(--wfq-shadow-sm);
}

.wfq-option-card.wfq-option-selected {
    border-color: var(--wfq-satin-gold);
    background-color: var(--wfq-gold-soft);
    box-shadow: 0 0 0 1px var(--wfq-satin-gold), var(--wfq-shadow-sm);
}

.wfq-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wfq-option-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.wfq-option-label {
    font-family: var(--wfq-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--wfq-text-primary);
    word-break: break-word;
}

.wfq-option-desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--wfq-text-secondary);
}

/* Custom Radio */
.wfq-radio {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--wfq-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--wfq-transition);
    margin-left: 16px;
}

.wfq-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--wfq-satin-gold);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.wfq-option-selected .wfq-radio {
    border-color: var(--wfq-satin-gold);
}

.wfq-option-selected .wfq-radio::after {
    transform: scale(1);
}

/* ---------- Buttons ---------- */
.wfq-btn {
    font-family: var(--wfq-font-body);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--wfq-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--wfq-transition);
    line-height: 1;
}

.wfq-btn-primary {
    background-color: var(--wfq-cool-black);
    color: var(--wfq-white);
    padding: 14px 28px;
}

.wfq-btn-primary:hover {
    background-color: #003366;
    box-shadow: var(--wfq-shadow-md);
    transform: translateY(-1px);
}

.wfq-btn-primary:active {
    transform: translateY(0);
}

.wfq-btn-primary:disabled {
    background-color: #B0B8C4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wfq-btn-arrow {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

/* ---------- Navigation ---------- */
.wfq-nav {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    border-top: 1px solid var(--wfq-border);
    background-color: #FFFFFF;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.wfq-nav.wfq-nav-visible {
    display: flex;
}

.wfq-nav-back {
    font-family: var(--wfq-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--wfq-text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--wfq-radius-sm);
    transition: color var(--wfq-transition), background-color var(--wfq-transition);
}

.wfq-nav-back:hover {
    color: var(--wfq-cool-black);
    background-color: rgba(0, 35, 73, 0.05);
}

.wfq-nav-back.wfq-hidden {
    visibility: hidden;
    pointer-events: none;
}

.wfq-nav-continue {
    min-width: 140px;
}

/* ---------- Processing Screen ---------- */
.wfq-processing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.wfq-processing-spinner {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wfq-spinner-ring {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(194, 155, 64, 0.15);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.wfq-spinner-ring::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-top-color: var(--wfq-satin-gold);
    border-radius: 50%;
    animation: wfq-spin 1.5s linear infinite;
}

.wfq-spinner-dot {
    width: 14px;
    height: 14px;
    background-color: var(--wfq-cool-black);
    border-radius: 50%;
    animation: wfq-pulse 1.5s ease-in-out infinite;
}

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

@keyframes wfq-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.wfq-processing-text {
    font-family: var(--wfq-font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--wfq-text-primary);
}

.wfq-processing-bar-wrapper {
    width: 280px;
    height: 4px;
    background-color: var(--wfq-border);
    border-radius: 2px;
    overflow: hidden;
}

.wfq-processing-bar {
    height: 100%;
    width: 0%;
    background-color: var(--wfq-cool-black);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.wfq-processing-percent {
    font-size: 13px;
    font-weight: 400;
    color: var(--wfq-text-light);
}

/* ---------- Results Screen ---------- */
.wfq-results-content {
    text-align: center;
    padding-bottom: 40px;
    max-width: 100%;
}

.wfq-results-content .wfq-results-heading {
    text-align: left;
}

.wfq-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1.5px solid var(--wfq-gold-border);
    border-radius: 24px;
    background-color: var(--wfq-gold-soft);
    margin-bottom: 12px;
}

.wfq-badge-icon {
    font-size: 14px;
    color: var(--wfq-satin-gold);
}

.wfq-badge-label {
    font-family: var(--wfq-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--wfq-cool-black);
}

.wfq-profile-tagline {
    display: none;
}

.wfq-profile-summary {
    font-size: 14px;
    font-weight: 400;
    color: var(--wfq-text-secondary);
    line-height: 1.65;
    text-align: center;
    margin-bottom: 32px;
    padding: 0 4px;
}

.wfq-results-heading {
    font-family: var(--wfq-font-headline);
    font-size: 24px;
    font-weight: 600;
    color: var(--wfq-cool-black);
    text-align: left;
    margin-bottom: 16px;
}

/* ---------- Strategy Cards ---------- */
.wfq-strategy-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.wfq-strategy-card {
    border: 1.5px solid var(--wfq-border);
    border-radius: var(--wfq-radius);
    background-color: var(--wfq-white);
    padding: 18px;
    border-left: 3px solid var(--wfq-satin-gold);
    display: flex;
    flex-direction: column;
}

.wfq-strategy-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--wfq-text-light);
    margin-bottom: 4px;
}

.wfq-strategy-title {
    font-family: var(--wfq-font-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--wfq-text-primary);
    margin-bottom: 8px;
}

.wfq-strategy-desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--wfq-text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.wfq-strategy-savings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--wfq-border);
    gap: 8px;
}

.wfq-savings-key {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--wfq-text-light);
    text-transform: uppercase;
}

.wfq-savings-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--wfq-satin-gold);
}

/* Savings Total Box */
.wfq-savings-total {
    background: linear-gradient(135deg, rgba(194, 155, 64, 0.08) 0%, rgba(194, 155, 64, 0.15) 100%);
    border: 1.5px solid var(--wfq-gold-border);
    border-radius: var(--wfq-radius);
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
}

.wfq-savings-total .wfq-savings-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--wfq-text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.wfq-savings-total .wfq-savings-amount {
    display: block;
    font-family: var(--wfq-font-headline);
    font-size: 36px;
    font-weight: 700;
    color: var(--wfq-cool-black);
    margin-bottom: 4px;
}

.wfq-savings-total .wfq-savings-note {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--wfq-text-secondary);
}

/* Locked Teaser */
.wfq-locked-teaser {
    border: 2px dashed var(--wfq-gold-border);
    border-radius: var(--wfq-radius);
    background: linear-gradient(135deg, rgba(194, 155, 64, 0.04) 0%, rgba(194, 155, 64, 0.08) 100%);
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.wfq-locked-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.wfq-locked-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--wfq-text-primary);
    margin-bottom: 6px;
}

.wfq-locked-subtext {
    font-size: 13px;
    font-weight: 400;
    color: var(--wfq-text-secondary);
}

.wfq-disclaimer {
    font-size: 12px;
    font-weight: 400;
    color: var(--wfq-text-light);
    line-height: 1.5;
    margin-bottom: 36px;
}

/* CTA Section */
.wfq-results-cta {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--wfq-border);
    margin-bottom: 24px;
}

.wfq-cta-heading {
    font-family: var(--wfq-font-headline);
    font-size: 32px;
    font-weight: 600;
    color: var(--wfq-cool-black);
    margin-bottom: 8px;
}

.wfq-cta-subtext {
    font-size: 14px;
    font-weight: 400;
    color: var(--wfq-text-secondary);
    margin-bottom: 20px;
}

.wfq-cta-btn {
    min-width: 240px;
    padding: 16px 32px;
    font-size: 16px;
    background-color: var(--wfq-satin-gold);
    color: var(--wfq-white);
}

.wfq-cta-btn:hover {
    background-color: #B08A30;
    box-shadow: var(--wfq-shadow-md);
    transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .wfq-headline {
        font-size: 28px;
    }

    .wfq-question-title {
        font-size: 24px;
    }

    .wfq-screen {
        padding: 24px 16px 80px;
    }

    .wfq-progress-bar {
        padding: 12px 16px;
    }

    .wfq-option-card {
        padding: 14px 16px;
    }

    .wfq-option-label {
        font-size: 15px;
    }

    .wfq-option-desc {
        font-size: 12px;
    }

    .wfq-savings-total .wfq-savings-amount {
        font-size: 28px;
    }

    .wfq-strategy-cards {
        grid-template-columns: 1fr;
    }

    .wfq-strategy-card {
        padding: 16px 18px;
    }

    .wfq-nav {
        padding: 12px 16px;
    }

    .wfq-cta-btn {
        width: 100%;
    }

    .wfq-processing-bar-wrapper {
        width: 220px;
    }
}

@media (max-width: 380px) {
    .wfq-headline {
        font-size: 24px;
    }

    .wfq-question-title {
        font-size: 22px;
    }

    .wfq-logo {
        width: 140px;
    }
}
