/* ==========================================================================
   Quiz Avaliação SucessOdonto — V4 (versão estática)
   Mesmo visual do plugin WordPress quiz-v4: a seção "Base" reproduz o que o
   tema Hello Elementor/kit aplicava por baixo do CSS do plugin.
   ========================================================================== */

/* ---------- Base (antes vinda do tema Hello Elementor + kit do site) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-weight: 500; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { margin-block-start: .5rem; margin-block-end: 1rem; font-weight: 500; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
img { border-style: none; height: auto; max-width: 100%; }
label { line-height: 1; }
button, input, select { font-family: inherit; font-size: 1rem; line-height: 1.5; margin: 0; }
button { display: inline-block; font-weight: 400; text-align: center; white-space: nowrap; user-select: none; background-color: transparent; padding: .5rem 1rem; border-radius: 3px; transition: all .3s; }
input[type="text"], input[type="email"], input[type="tel"], select { width: 100%; border-radius: 3px; transition: all .3s; }
select { display: block; }

/* Contêiner da página: centraliza e ajusta a largura ao conteúdo (como o contêiner do Elementor) */
.app { display: flex; flex-direction: column; align-items: center; width: 100%; }
.app > section { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- Estilos do quiz (idênticos ao plugin) ---------- */
body { background-color: #111; color: #fff; font-family: Arial, sans-serif; }
h1 { text-align: center; color: #fff !important; font-weight: 700; }
h2 { text-align: center; color: #C2910F; font-weight: 700; }
.subtitle-main { text-align: center; color: #fff !important; font-weight: 700; font-size: 20px; }
.paragraph-main { width: 70% }
p { text-align: center; color: #fff; font-weight: 600; margin: 0 auto; }
.paragraph-initial { margin-bottom: 1rem; }
#formulario-quiz { background-color: #222; border-radius: 8px; padding: 20px; width: 100%; max-width: 600px; margin: 0 auto; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-top: 10px; }
#quiz-perguntas { max-width:720px; background-color: #222; border-radius: 8px; padding: 20px; width: 100%; margin: 0 auto; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); animation:fadeUp .5s ease; }
@keyframes fadeUp {
    from { opacity:0; transform:translateY(30px); }
    to { opacity:1; transform:translateY(0); }
}
#quiz-resultado { background-color: #222; border-radius: 8px; padding: 40px; width: 95%; max-width: 1280px; margin: 0 auto 4rem; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); }
label { font-size: 16px; font-weight: 600; display: block; }
input[type="text"], input[type="email"], input[type="tel"], select { width: 100%; padding: 12px; margin: 10px 0 20px 0; border: 1px solid #b8860b; border-radius: 6px; background-color: #333; color: #fff; }
.btn-formulario, .btn-navegacao { display: block; width: 100%; padding: 14px; background-color: #43a047; color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; text-align: center; margin-top: 20px; }
.btn-formulario:hover { background-color: #3a8e3e; }
.quiz-container { text-align: center; }
.pergunta-quiz { display: none; }
.pergunta-quiz.active { display: block; }
.botoes-nps { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.btn-nps { width: 90px; height: 60px; border-radius: .5rem; border: 2px solid #ddd; color: #fff; font-weight: bold; cursor: pointer; background-color: #ccc; font-size: 20px; }
.btn-nps:hover, .btn-nps.selected { opacity: 0.65; }
.btn-nps.detrator { background-color: #d9534f; }
.btn-nps.neutro { background-color: #f0ad4e; }
.btn-nps.promotor { background-color: #5cb85c; }
@media (max-width: 600px) {
    .botoes-nps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .btn-nps { width: 100%; height: 52px; font-size: 18px; }
    #quiz-perguntas { padding: 14px 10px; }
    .navegacao { gap: 8px; }
}
.navegacao { display: flex; justify-content: space-between; margin-top: 20px; }
.btn-navegacao.voltar, .btn-navegacao.avancar { width: 48%; background-color: #007bff; }
.btn-navegacao.avancar { background-color: #28a745; }
.btn-navegacao.voltar:hover, .btn-navegacao.avancar:hover { opacity: 0.8; }
.btn-navegacao[disabled] { background-color: #6c757d; cursor: not-allowed; }
.resultado-container { display: none; flex-direction: column; align-items: center; }
.resultado-container.active { display: flex; }
.resultado-nota-geral { display: flex; flex-direction: row; align-items: center; margin-bottom: 20px; }
.nota-box { font-size: 2rem; font-weight: bold; color: #fff; padding: 2px 20px; border-radius: 8px; text-align: center; }
.titulo-media { margin-right: 10px; }
.nota-detrator { background-color: #d9534f; }
.nota-neutro { background-color: #f0ad4e; }
.nota-promotor { background-color: #5cb85c; }
.graficos-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; width: 100%; max-width: 1200px; margin: 0 auto; }
.barras { width: 65%; }
.pizza { width: 30%; }
.quiz-screen-center { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:40px 20px; }

.quiz-progress-wrapper { width:100%; max-width:900px; margin:0 auto 25px auto; text-align:center; }
.quiz-progress-bar { width:100%; height:10px; background:#444; border-radius:6px; overflow:hidden; margin-bottom:6px; }
#quiz-progress-fill { width:10%; height:100%; background:linear-gradient(90deg,#c2b067,#e8d79a); transition:width .4s ease; }
#quiz-progress-text { font-size:14px; color:#aaa; }

.top-bar { height:3px; background:linear-gradient(90deg,transparent,#C9A84C,#E8C96D,#C9A84C,transparent); }
.page-wrap { max-width:680px; margin:0 auto; padding:0 20px 60px; }
.logo-area { width:100%; text-align:center; padding:12px 0 10px; display:flex; justify-content:center; }
.logo-img { width:240px; max-width:90%; display:block; }
.urgency-banner { background:linear-gradient(135deg,rgba(201,168,76,.15),rgba(201,168,76,.05)); border:1px solid rgba(201,168,76,.3); border-radius:8px; padding:8px 16px; text-align:center; font-size:13px; color:#E8C96D; margin-bottom:16px; }
.headline-area { text-align:center; margin-bottom:16px; }
.headline-area h1 { font-family:"Open Sans",serif; font-size:34px; line-height:1.15; margin:0 0 10px; }
.subhead { font-size:15px; line-height:1.55; color:#C8C8C8; }
.form-card { background:#141414; border:1px solid #2A2A2A; border-radius:20px; padding:24px 28px; }
.form-card label { font-size:15px; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"], .form-card select { padding:10px 12px; margin:6px 0 14px 0; }
.form-card .phone-wrap { margin:6px 0 14px 0; }
.form-card select { -webkit-appearance:none; -moz-appearance:none; appearance:none; cursor:pointer; padding-right:40px; text-overflow:ellipsis; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c2b067' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; background-size:12px 8px; }
.form-card select::-ms-expand { display:none; }
.form-card select option { background-color:#333; color:#fff; }
.form-card .telefone-error { margin-top:-8px; margin-bottom:10px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.cta-btn { width:100%; background:linear-gradient(135deg,#2ECC71,#27AE60); border:none; border-radius:12px; padding:15px; margin-top:4px; font-size:17px; font-weight:700; cursor:pointer; color:#fff; white-space:normal; word-break:break-word; line-height:1.4; text-align:center; }
@media (max-width: 600px) {
    .cta-btn { font-size: 15px; padding: 14px 10px; }
    .logo-img { width:200px; }
    .urgency-banner { font-size:12px; margin-bottom:12px; }
    .headline-area h1 { font-size:26px; }
    .subhead { font-size:14px; line-height:1.45; }
    .form-card { padding:18px 16px; border-radius:14px; }
}
@media (max-width: 480px) {
    .field-row-selects { grid-template-columns:1fr; gap:0; }
}
.cta-sub { text-align:center; font-size:12px; color:#7A7A7A; margin-top:10px; }
.destaque { color: #c2b067 !important; }

/* WhatsApp com +55 fixo */
.phone-wrap { display: flex; align-items: stretch; margin: 10px 0 20px 0; }
.phone-prefix { display: flex; align-items: center; padding: 0 12px; border: 1px solid #b8860b; border-right: none; border-radius: 6px 0 0 6px; background-color: #2a2a2a; color: #c2b067; font-weight: 700; user-select: none; }
.phone-wrap input[type="tel"] { margin: 0; border-radius: 0 6px 6px 0; }
.telefone-error { display: none; color: #d9534f; font-size: 13px; margin-top: -12px; margin-bottom: 12px; }
