/* --- Variáveis Globais e Reset Básico --- */
:root {
    --background-color: #f5f6f8;
    --card-background: #ffffff;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #ddd;
    --shadow-color: rgba(0,0,0,0.1);
    
    /* Cores da Marca do Colégio Presbiteriano */
    --accent-color: #78B1A2; /* Verde */
    --cta-color: #D42D20; /* Vermelho */
    --white: #fff;
    --red-error: #e53e3e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Estrutura Principal --- */
#app { display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.site-header { background-color: var(--card-background); padding: 1rem 0; box-shadow: 0 2px 4px var(--shadow-color); position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.logo { height: 60px; width: auto; }
.site-main { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.site-footer { padding: 1.5rem 0; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

/* --- Estilos do Formulário --- */
.quiz-wrapper { width: 100%; max-width: 500px; }
.quiz-intro { text-align: center; margin-bottom: 1.5rem; }
.quiz-intro h1 { font-size: 1.75rem; font-weight: 900; color: var(--text-primary); margin-bottom: 0.5rem; }
.quiz-intro p { font-size: 1rem; color: var(--text-secondary); }
.quiz-box { background-color: var(--card-background); border-radius: 12px; box-shadow: 0 8px 30px var(--shadow-color); padding: 1.5rem; }
#quiz-container { position: relative; min-height: 250px; }
.progress-container { width: 100%; background-color: var(--border-color); border-radius: 999px; height: 8px; margin-bottom: 1rem; }
.progress-indicator { background-color: var(--accent-color); height: 100%; border-radius: 999px; width: 0%; transition: width 0.5s ease-in-out; }
.block-title { font-size: 1.1rem; font-weight: 700; color: var(--accent-color); margin-bottom: 1.5rem; text-align: center; }
.question-card { opacity: 0; visibility: hidden; transform: translateX(30px); transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s; position: absolute; width: 100%; }
.question-card.active { opacity: 1; visibility: visible; transform: translateX(0); position: relative; }
.question-card.fade-out { opacity: 0; transform: translateX(-30px); }
.question-card p.question-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.question-card .options-container { display: flex; flex-direction: column; gap: 0.75rem; }
.form-input, .form-textarea { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; border: 2px solid var(--border-color); border-radius: 8px; transition: all 0.3s; color: var(--text-primary); background-color: var(--background-color); font-family: 'Nunito', sans-serif; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(120, 177, 162, 0.2); }
.form-input.invalid { border-color: var(--red-error); }
.answer-btn { width: 100%; padding: 1rem; font-size: 1rem; font-weight: 600; text-align: left; border: 2px solid var(--border-color); border-radius: 8px; background-color: transparent; cursor: pointer; transition: all 0.3s; color: var(--text-primary); font-family: 'Nunito', sans-serif; }
.answer-btn:hover { background-color: var(--background-color); border-color: var(--accent-color); }
.answer-btn.selected { background-color: var(--accent-color); color: var(--white); border-color: var(--accent-color); }
.checkbox-container { display: flex; flex-direction: column; gap: 1rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; cursor: pointer; }
.checkbox-label input { accent-color: var(--accent-color); width: 1.2em; height: 1.2em; margin-top: 0.2em; flex-shrink: 0; }
.cta-button { width: 100%; margin-top: 2rem; padding: 1rem; background-color: var(--cta-color); color: var(--white); font-size: 1.1rem; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(212, 45, 32, 0.2); }
.cta-button:hover { background-color: #a92319; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 45, 32, 0.3); }
.error-message { color: var(--red-error); font-size: 0.875rem; margin-top: 0.5rem; font-weight: 600; display: none; }
.result-card { width: 100%; max-width: 500px; background-color: var(--card-background); border-radius: 12px; box-shadow: 0 8px 30px var(--shadow-color); padding: 2rem; text-align: center; }
.result-icon { width: 4rem; height: 4rem; color: var(--accent-color); margin: 0 auto 1rem; }
.result-title { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.result-text { font-size: 1.1rem; color: var(--text-secondary); }
/* =================================================================== */
/* FAIXA DE STATUS DE PAGAMENTO (BOLSÃO)                               */
/* =================================================================== */
.payment-status-banner {
    background-color: #fff3cd;
    color: #856404;
    border-bottom: 1px solid #ffeeba;
    padding: 1rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    animation: slideDown 0.5s ease-out;
}
.payment-status-banner strong { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; }
.payment-spinner {
    display: inline-block; width: 12px; height: 12px;
    border: 2px solid #856404; border-radius: 50%; border-top-color: transparent;
    animation: spin 1s linear infinite; margin-left: 8px;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
body.has-banner { padding-top: 80px; }

@media (min-width: 768px) {
    .logo { height: 90px; }
    .quiz-box { padding: 2.5rem; }
    .quiz-intro h1 { font-size: 2rem; }
}