/* ================================================
   BAFA Quiz-Funnel – Marketing Connect
   Full-screen step-by-step funnel
   Dark Mode + Neon Green (#22E783) + Inter
   ================================================ */

:root {
    --bg: #000000;
    --bg-card: #0a0f0a;
    --bg-elevated: #111811;
    --bg-input: #0d120d;
    --accent: #22E783;
    --accent-hover: #1BD475;
    --accent-glow: rgba(34, 231, 131, 0.25);
    --accent-subtle: rgba(34, 231, 131, 0.06);
    --text: #ffffff;
    --text-sec: #a0a8a0;
    --text-muted: #5a625a;
    --border: rgba(34, 231, 131, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --error: #ff4444;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 16px;
    --radius-sm: 12px;
    --pill: 50px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    height: 100%;
    -webkit-text-size-adjust: 100%; 
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }

.accent { color: var(--accent); }

.hide-mobile { display: inline; }

/* === Progress Bar === */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.04);
    z-index: 100;
}

.progress__fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Logo Watermark === */
.logo-mark {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 100;
}

.logo-mark__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #000;
    font-weight: 900;
    font-size: 14px;
    border-radius: 50%;
    letter-spacing: -0.5px;
}

/* === Nav Back === */
.nav-back {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-sec);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-back:hover {
    border-color: var(--border);
    color: var(--text);
    background: var(--bg-card);
}

/* === Footer Watermark === */
.footer-mark {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-mark a {
    color: var(--text-sec);
    font-weight: 600;
    transition: color 0.3s;
}

.footer-mark a:hover { color: var(--accent); }

/* === Funnel Container === */
.funnel {
    width: 100%;
    height: 100%;
    position: relative;
}

/* === Step === */
.step {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 80px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(60px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.step--active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.step--exit-left {
    opacity: 0;
    transform: translateX(-60px);
}

.step__content {
    max-width: 600px;
    width: 100%;
}

.step__content--center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === Step Header === */
.step__question-number {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.8;
}

.step__title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.step__hint {
    font-size: 15px;
    color: var(--text-sec);
    line-height: 1.5;
    margin-bottom: 36px;
}

/* === Hero Step === */
.step__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-subtle);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: var(--pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.step__hero-title {
    font-size: clamp(32px, 7vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.step__hero-sub {
    font-size: 17px;
    color: var(--text-sec);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 480px;
}

/* === Start Button === */
.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--accent);
    color: #000;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: var(--pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px var(--accent-glow), 0 0 80px rgba(34, 231, 131, 0.08);
    margin-bottom: 24px;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px var(--accent-glow), 0 0 120px rgba(34, 231, 131, 0.12);
    background: var(--accent-hover);
}

.btn-start:active {
    transform: translateY(-1px);
}

/* === Micro Trust === */
.step__micro {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.micro-trust {
    font-size: 13px;
    color: var(--text-muted);
}

/* === Social Proof === */
.step__social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-sec);
}

.avatars {
    display: flex;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: hsl(var(--hue), 70%, 45%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #000;
    margin-left: -6px;
    border: 2px solid var(--bg);
}

.avatar:first-child { margin-left: 0; }

/* === Options Grid === */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.options--compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
}

.option:hover {
    border-color: var(--border);
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

.option:active {
    transform: translateY(0);
}

.option--selected {
    border-color: var(--accent) !important;
    background: var(--accent-subtle) !important;
    box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 20px rgba(34, 231, 131, 0.1);
}

.option--disabled {
    opacity: 0.45;
}

.option--small {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 12px;
}

.option__icon {
    font-size: 28px;
    flex-shrink: 0;
}

.option--small .option__icon {
    font-size: 32px;
}

.option__label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.option--small .option__label {
    font-size: 13px;
}

.option__desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
}

.option--small .option__desc {
    display: none;
}

/* === Result Screen === */
.step__result-title {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 32px;
}

.step__result-sub {
    font-size: 15px;
    color: var(--text-sec);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}

/* Result Check Animation */
.result-animation {
    margin-bottom: 32px;
}

.result-check {
    width: 80px;
    height: 80px;
}

.result-check__svg {
    width: 80px;
    height: 80px;
}

.result-check__circle {
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkCircle 0.8s 0.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.result-check__path {
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkPath 0.4s 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes checkCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes checkPath {
    to { stroke-dashoffset: 0; }
}

/* Result Stats */
.result-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: 0 0 40px var(--accent-glow);
}

.result-stat { text-align: center; flex: 1; }

.result-stat__value {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
}

.result-stat__label {
    font-size: 12px;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-stat__divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* === Contact Form === */
.contact-form {
    width: 100%;
    max-width: 440px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    text-align: left;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-field input {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.form-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-field input::placeholder {
    color: var(--text-muted);
}

.form-field input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15);
}

.field-error {
    display: block;
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
    min-height: 16px;
}

/* Submit Button */
.btn-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 18px 32px;
    background: var(--accent);
    color: #000;
    font-family: var(--font);
    border: none;
    border-radius: var(--pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px var(--accent-glow);
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--accent-glow);
    background: var(--accent-hover);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit__text {
    font-size: 16px;
    font-weight: 700;
}

.btn-submit__sub {
    font-size: 12px;
    opacity: 0.6;
}

/* Form Trust */
.form-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

/* === Success Screen === */
.success-burst {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-burst__ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: burstRing 1.5s 0.3s ease-out forwards;
}

.success-burst__ring--2 {
    animation-delay: 0.6s;
}

@keyframes burstRing {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.success-burst__emoji {
    font-size: 56px;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Next Steps */
.next-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: 100%;
    margin-bottom: 40px;
}

.next-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: left;
}

.next-step__num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    font-size: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* CTA Phone */
.cta-phone {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-phone a {
    font-weight: 700;
    font-size: 16px;
}

/* === Animations === */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Option entrance animation */
.step--active .option {
    opacity: 0;
    transform: translateY(16px);
    animation: optionIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.step--active .option:nth-child(1) { animation-delay: 0.05s; }
.step--active .option:nth-child(2) { animation-delay: 0.1s; }
.step--active .option:nth-child(3) { animation-delay: 0.15s; }
.step--active .option:nth-child(4) { animation-delay: 0.2s; }
.step--active .option:nth-child(5) { animation-delay: 0.25s; }
.step--active .option:nth-child(6) { animation-delay: 0.3s; }
.step--active .option:nth-child(7) { animation-delay: 0.35s; }
.step--active .option:nth-child(8) { animation-delay: 0.4s; }
.step--active .option:nth-child(9) { animation-delay: 0.45s; }

@keyframes optionIn {
    to { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
@media (max-width: 768px) {
    .step {
        padding: 56px 20px 72px;
    }

    .step__hero-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    .step__title {
        font-size: 24px;
    }

    .step__micro {
        flex-direction: column;
        gap: 8px;
    }

    .step__social-proof {
        flex-direction: column;
        gap: 6px;
    }

    .options--compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .option {
        padding: 14px 16px;
        gap: 12px;
    }

    .option__icon {
        font-size: 24px;
    }

    .option--small {
        padding: 14px 8px;
    }

    .option--small .option__icon {
        font-size: 26px;
    }

    .option__desc {
        display: none;
    }

    .result-stats {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .result-stat__divider {
        width: 60px;
        height: 1px;
    }

    .hide-mobile { display: none; }

    .cta-phone {
        flex-direction: column;
        gap: 6px;
    }

    .form-trust {
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .options--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .step__hero-title {
        font-size: 28px;
    }
}

/* === Disqualified overlay === */
.disqualified-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 24px;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.disqualified-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    max-width: 480px;
    text-align: center;
}

.disqualified-card h3 {
    font-size: 22px;
    margin: 16px 0 12px;
}

.disqualified-card p {
    font-size: 15px;
    color: var(--text-sec);
    line-height: 1.6;
    margin-bottom: 24px;
}

.disqualified-card .btn-start {
    font-size: 15px;
    padding: 14px 28px;
}
