:root {
    /* LIGHT MODE THEME */
    --bg-dark: #F4F6F9; /* Fundo principal cinza muito claro */
    --bg-card: #FFFFFF; /* Painel branco puro */
    --bg-option: #F8F9FA;
    --bg-option-hover: #E9ECEF;
    --text-main: #1A1A1A; /* Texto quase preto para contraste */
    --text-muted: #5A6268;
    --primary-color: #0056B3; /* Azul escuro (transmite confiança/clínico) */
    --primary-glow: rgba(0, 86, 179, 0.05);
    --accent-color: #D97706; /* Dourado/Laranja escuro */
    --accent-glow: rgba(217, 119, 6, 0.2);
    --danger: #DC3545;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background Elements - Subtly adapted for light mode */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.8;
}
.purple-glow { top: -20%; left: -10%; width: 60vw; height: 60vw; background: var(--primary-glow); }
.gold-glow { bottom: -20%; right: -10%; width: 50vw; height: 50vw; background: rgba(217, 119, 6, 0.05); }

/* Clean Panel instead of Glassmorphism */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.quiz-container {
    width: 100%;
    max-width: 700px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Typography */
h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 20px; line-height: 1.1; text-align: center; color: #111; }
h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 30px; text-align: center; }
.subtitle { font-size: 1.1rem; color: var(--text-muted); text-align: center; margin-bottom: 40px; }
.micro-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 15px; }

.highlight {
    color: var(--accent-color);
    font-weight: 900;
}

.badge {
    display: table;
    margin: 0 auto 20px;
    padding: 6px 14px;
    background: rgba(0, 86, 179, 0.1);
    border: 1px solid rgba(0, 86, 179, 0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Steps Visibility */
.quiz-step {
    display: none;
    animation: fadeIn 0.5s ease;
}
.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #28A745, #218838); /* Verde converte mais em fundo branco */
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1e7e34);
}

.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Quiz Interface */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #E9ECEF;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #00A8FF);
    width: 0%;
    transition: width 0.4s ease;
}

.question-counter {
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: var(--bg-option);
    border: 1px solid #DEE2E6;
    padding: 20px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: var(--bg-option-hover);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* Loading State */
.loader {
    width: 60px;
    height: 60px;
    border: 4px solid #E9ECEF;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.calculating-text { margin-bottom: 40px; color: var(--primary-color); }
.loading-steps { list-style: none; text-align: center; color: var(--text-muted); }
.loading-steps li { opacity: 0; margin-bottom: 10px; transition: opacity 0.3s; }
.loading-steps li.visible { opacity: 1; }

/* Result State */
.alert-box {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid var(--danger);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.alert-box h3 { color: var(--danger); margin: 0; font-size: 1.1rem; }
.result-headline { font-size: 1.8rem; text-align: left; color: #111; }
.result-body { margin-bottom: 15px; font-size: 1.05rem; }

.product-reveal {
    margin-top: 30px;
    padding: 25px;
    background: #F8F9FA;
    border: 1px solid #DEE2E6;
    border-radius: 16px;
}

.product-layout {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.product-img {
    width: 120px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-info h3 { margin-bottom: 5px; text-align: left; font-size: 1.3rem; }
.product-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; }

.price-box { background: #FFFFFF; border: 1px solid #E9ECEF; padding: 15px; border-radius: 8px; }
.retail { font-size: 0.85rem; color: var(--text-muted); }
.price { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 900; color: #28A745; line-height: 1; }
.cents { font-size: 1.2rem; }

/* Conversion Triggers */
.benefits-list { list-style: none; margin-bottom: 20px; font-size: 0.95rem; }
.benefits-list li { margin-bottom: 8px; color: var(--text-main); }
.benefits-list strong { color: var(--primary-color); }

.urgency-bar {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid var(--danger);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-main);
}
.urgency-bar span { color: var(--danger); }

.trust-badges {
    margin-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.trust-badges .security { margin-bottom: 5px; font-weight: 600; color: #333; }
.trust-badges .stars { color: #D97706; }

@media (max-width: 600px) {
    .quiz-container { padding: 30px 20px; border-radius: 0; border: none; box-shadow: none; min-height: 100vh; }
    .product-layout { flex-direction: column; text-align: center; }
    .product-info h3 { text-align: center; }
    .benefits-list { text-align: left; display: inline-block; }
    body { padding: 0; background-color: var(--bg-card); }
}
