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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

.main {
    flex-grow: 1;
}

/* ===== Steps (show/hide) ===== */
.step {
    display: none;
}
.step.active {
    display: block;
}

/* ===== Header ===== */
.header {
    background-color: #00529b;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

/* ===== Hero ===== */
.hero {
    padding: 32px 16px 32px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.hero-inner {
    max-width: 672px;
    margin: 0 auto;
    text-align: center;
}
.hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.25;
    margin-bottom: 24px;
}
.text-blue { color: #00529b; }
.text-green { color: #16a34a; }

.hero-image-wrapper {
    position: relative;
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
}
.hero-image {
    width: 100%;
    height: 256px;
    object-fit: cover;
    display: block;
}
.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.4), transparent);
}
.hero-subtitle {
    font-size: 1.125rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 8px;
}

.bounce-arrow {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    color: #9ca3af;
    animation: bounce 1s infinite;
}

/* ===== Quiz Section ===== */
.quiz-section {
    padding: 0 16px 48px;
    max-width: 672px;
    margin: 0 auto;
}
.step-question2-spacer {
    height: 32px;
}
.quiz-header {
    background-color: #4285f4;
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}
.quiz-body {
    background: #fff;
    padding: 24px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.quiz-question {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    color: #1e293b;
    margin-bottom: 32px;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.quiz-btn {
    width: 100%;
    padding: 20px 24px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background-color: #22c55e;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 0 #16a34a;
    transition: all 150ms ease;
    font-family: inherit;
}
.quiz-btn:hover {
    background-color: #16a34a;
    transform: translateY(2px);
    box-shadow: none;
}
.quiz-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.secure-badge {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
}
.secure-badge span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== Verification ===== */
.verification {
    padding: 80px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.spinner-wrapper {
    position: relative;
    margin-bottom: 40px;
    width: 96px;
    height: 96px;
}
.spinner {
    width: 96px;
    height: 96px;
    border: 4px solid #00529b;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.spinner-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner-center > div,
.spinner-percent {
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner-percent {
    width: 64px;
    height: 64px;
    background-color: rgba(0,82,155,.1);
    border-radius: 50%;
    color: #00529b;
    font-weight: 700;
    font-size: 1.25rem;
}
.verify-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}
.verify-sub {
    margin-top: 16px;
    color: #64748b;
}

/* ===== Result ===== */
.result-wrapper {
    padding: 40px 16px;
    max-width: 672px;
    margin: 0 auto;
    text-align: center;
}
.result-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    overflow: hidden;
    border: 2px solid #22c55e;
}
.result-header {
    background-color: #22c55e;
    padding: 24px 16px;
}
.result-title {
    color: #fff;
    font-size: 1.875rem;
    font-weight: 800;
}
.result-body {
    padding: 32px;
}
.result-cta-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
    margin-bottom: 32px;
}
.result-call-section {
    margin-bottom: 32px;
}
.result-tap-text {
    color: #475569;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 16px;
}
.call-button {
    display: block;
    width: 100%;
    padding: 24px;
    background-color: #16a34a;
    color: #fff;
    border-radius: 9999px;
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
    outline: 4px solid #dcfce7;
    transition: all 150ms ease;
}
.call-button:hover {
    background-color: #15803d;
    transform: scale(1.05);
}
.call-button:active {
    transform: scale(0.95);
}
.timer-box {
    background-color: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.timer-desc {
    color: #475569;
    font-weight: 500;
    margin-bottom: 12px;
}
.timer-display {
    font-size: 2.5rem;
    font-weight: 900;
    color: #dc2626;
    font-variant-numeric: tabular-nums;
}
.timer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f87171;
    font-weight: 700;
    margin-top: 8px;
}

.agent-status {
    margin-top: 32px;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}
.agent-icon {
    background-color: #3b82f6;
    color: #fff;
    padding: 8px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.agent-title {
    font-weight: 700;
    color: #1e3a5f;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.agent-desc {
    color: #1e40af;
    font-size: 0.875rem;
}

/* ===== Disqualified ===== */
.disqualified-wrapper {
    padding: 48px 16px;
    max-width: 672px;
    margin: 0 auto;
    text-align: center;
}
.disqualified-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    padding: 32px;
}
.disqualified-icon-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}
.disqualified-icon {
    background-color: #fff7ed;
    color: #ea580c;
    padding: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.disqualified-icon--success {
    background-color: #dcfce7;
    color: #16a34a;
}
.disqualified-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.3;
}
.disqualified-alt {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
}
.disqualified-alt-text {
    font-size: 1.125rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 24px;
}
.lucky-spin-btn {
    display: block;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to right, #facc15, #f97316);
    color: #fff;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 0 #ca8a04;
    transition: all 150ms ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.lucky-spin-btn:hover {
    background: linear-gradient(to right, #eab308, #ea580c);
}
.lucky-spin-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}
.lucky-spin-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.bounce-emoji {
    animation: bounce 1s infinite;
}
.limited-offer-text {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.go-back-btn {
    margin-top: 32px;
    color: #94a3b8;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}
.go-back-btn:hover {
    color: #00529b;
}

/* ===== Footer ===== */
.footer {
    background: #fff;
    padding: 48px 24px;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.7;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}
.footer-inner {
    max-width: 896px;
    margin: 0 auto;
}
.footer-inner > p {
    margin-bottom: 24px;
}
.footer-disclaimer {
    font-weight: 600;
    color: #334155;
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.footer-links a {
    font-weight: 500;
    color: #475569;
    text-decoration: none;
}
.footer-links a:hover {
    color: #00529b;
}

/* ===== Animations ===== */
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .header-title {
        font-size: 1.5rem;
    }
    .hero {
        padding: 48px 16px 48px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-image {
        height: 320px;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
    .quiz-body {
        padding: 40px;
    }
    .quiz-question {
        font-size: 1.875rem;
    }
    .result-title {
        font-size: 2.25rem;
    }
    .result-body {
        padding: 48px;
    }
    .result-cta-text {
        font-size: 1.5rem;
    }
    .call-button {
        font-size: 1.875rem;
    }
    .timer-display {
        font-size: 3rem;
    }
    .disqualified-title {
        font-size: 1.875rem;
    }
    .disqualified-card {
        padding: 48px;
    }
    .disqualified-alt {
        padding: 32px;
    }
    .lucky-spin-btn {
        font-size: 1.875rem;
    }
}
