/* quiz.css — tema claro, alinhado ao main.css */

.quiz-container { font-family: 'Montserrat', sans-serif; }

.quiz-wrap {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 680px;
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: .5rem;
}
.quiz-header h3 {
    font-size: .9rem;
    font-weight: 600;
    margin: 0;
    color: #1a1f2e;
}
.quiz-cert-nome { color: #0066cc; }

.quiz-badge {
    font-size: .72rem;
    background: #0066cc;
    color: #fff;
    padding: .25rem .75rem;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 600;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    font-size: .8rem;
    color: #57606a;
}
.quiz-bar {
    flex: 1; height: 5px;
    background: #d0d7de;
    border-radius: 3px;
    overflow: hidden;
}
.quiz-bar > div {
    height: 100%;
    background: #0066cc;
    transition: width .3s;
    border-radius: 3px;
}

.quiz-pergunta {
    font-size: .93rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.65;
    color: #1a1f2e;
}
.quiz-img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #d0d7de;
}

.quiz-respostas { display: flex; flex-direction: column; gap: .5rem; }

.quiz-resp {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .88rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-family: 'Montserrat', sans-serif;
    color: #1a1f2e;
    line-height: 1.5;
}
.quiz-resp:hover:not(:disabled) { border-color: #0066cc; background: #f0f6ff; }
.quiz-resp.correta  { background: #e6f4ec; border-color: #00875a; color: #00502e; font-weight: 600; }
.quiz-resp.errada   { background: #fdf0f0; border-color: #cf222e; color: #6b1117; }
.quiz-resp:disabled { cursor: default; }

.quiz-feedback {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.5;
}
.quiz-feedback.certo  { background: #e6f4ec; color: #00502e; border: 1px solid #00875a; }
.quiz-feedback.errado { background: #fdf0f0; color: #6b1117; border: 1px solid #cf222e; }

/* Resultado */
.quiz-resultado { text-align: center; padding: 1.5rem 1rem; }
.quiz-score { font-size: 3rem; font-weight: 700; color: #0066cc; line-height: 1; }
.quiz-score-label { font-size: .9rem; color: #57606a; margin: .4rem 0 1rem; }
.quiz-resultado p { color: #1a1f2e; margin-bottom: 1.25rem; }

.quiz-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.btn-refazer {
    padding: .6rem 1.25rem;
    border: 2px solid #0066cc;
    background: #fff;
    color: #0066cc;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: .88rem;
    transition: background .15s;
}
.btn-refazer:hover { background: #f0f6ff; }
.btn-membros {
    padding: .6rem 1.25rem;
    background: #0066cc;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: .88rem;
    transition: background .15s;
}
.btn-membros:hover { background: #0052a3; color: #fff; }

/* CRO */
.quiz-cro {
    background: linear-gradient(135deg, #f0f7ff 0%, #eaf3ff 100%);
    border: 2px solid #0066cc;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
}
.cro-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.quiz-cro h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; color: #1a1f2e; }
.quiz-cro p  { color: #57606a; margin-bottom: 1.25rem; line-height: 1.6; font-size: .93rem; }
.quiz-cro strong { color: #1a1f2e; }

.cro-beneficios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem .75rem;
    text-align: left;
    margin: 1.25rem auto;
    font-size: .82rem;
    font-weight: 500;
    max-width: 400px;
    color: #00875a;
}
.cro-beneficios span { display: flex; align-items: center; gap: .35rem; }
.cro-beneficios span::before { content: "✓"; font-weight: 700; }

.cro-prova-social {
    font-size: .8rem;
    color: #57606a;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: .5rem 1rem;
    display: inline-block;
}

.cro-form {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-width: 360px;
    margin: 1rem auto 0;
}
.cro-form input {
    padding: .7rem 1rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: .9rem;
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #1a1f2e;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.cro-form input:focus { border-color: #0066cc; box-shadow: 0 0 0 3px rgba(0,102,204,.12); }
.btn-cadastro-cro {
    padding: .85rem;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background .15s, transform .1s;
}
.btn-cadastro-cro:hover { background: #0052a3; transform: translateY(-1px); }
.btn-cadastro-cro:disabled { opacity: .7; cursor: default; transform: none; }
.cro-fine { font-size: .77rem; color: #57606a; margin-top: .6rem; }

/* Exit intent */
.quiz-exit-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.quiz-exit-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.quiz-exit-close {
    position: absolute; top: .75rem; right: 1rem;
    background: none; border: none;
    font-size: 1.25rem; cursor: pointer; color: #57606a;
}
.quiz-exit-box h3 { font-size: 1.2rem; margin-bottom: .5rem; color: #1a1f2e; }
.quiz-exit-box p  { color: #57606a; margin-bottom: 1.25rem; font-size: .9rem; }

/* Sticky CTA */
.quiz-sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #0066cc;
    color: #fff;
    padding: .75rem 1rem;
    display: flex; align-items: center; justify-content: center;
    gap: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform .3s ease;
    flex-wrap: wrap;
    font-size: .9rem;
}
.quiz-sticky-cta.visivel { transform: translateY(0); }
.quiz-sticky-cta strong { font-weight: 700; }
.quiz-sticky-cta a {
    background: #fff;
    color: #0066cc;
    padding: .4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    font-size: .85rem;
    white-space: nowrap;
}
.quiz-sticky-cta button {
    background: none; border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer; font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .cro-beneficios { grid-template-columns: 1fr; }
    .quiz-actions   { flex-direction: column; align-items: stretch; }
    .quiz-header    { flex-direction: column; align-items: flex-start; }
    .quiz-sticky-cta { font-size: .82rem; gap: .5rem; }
}
