/* Leitor de quiz: visual do quiz em si (igual no editor e na prévia), no padrão do SJT na Inlead. Cores do tema: --qp-*. */
.qp { --qp-cor: #2bb5a0; --qp-fundo: #fff; --qp-texto: #111827;
  min-height: 100%; background: var(--qp-fundo); color: var(--qp-texto);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.4;
  display: flex; flex-direction: column; }
.qp * { box-sizing: border-box; }
.qp-topo { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 12px 12px 8px; }
.qp-voltar { border: 0; background: none; font-size: 20px; line-height: 1; color: #6b7280; cursor: pointer; padding: 0 6px; }
.qp-logo { text-align: center; font-size: 13px; letter-spacing: .5px; color: #6b7280; } .qp-logo img { max-height: 30px; max-width: 160px; }
.qp-progresso { height: 8px; margin: 2px 12px 0; border-radius: 99px; background: #eef0f2; overflow: hidden; }
.qp-progresso > div { height: 100%; background: color-mix(in srgb, var(--qp-cor) 65%, #fff); border-radius: 99px; transition: width .35s ease; }
.qp-corpo { flex: 1; width: 100%; max-width: 460px; margin: 0 auto; padding: 22px 12px 32px; display: flex; flex-flow: row wrap; align-content: flex-start;
  row-gap: 12px; column-gap: 0; animation: qp-entra .3s ease; }
.qp-corpo > * { flex: 0 0 100%; min-width: 0; }
.qp-bloco.qp-parcial { padding: 0 4px; }            /* lado a lado (ex.: Hoje | Objetivo) */
.qp-condicional { outline: 1px dashed #c4b5fd; outline-offset: 2px; position: relative; }
.qp-condicional::before { content: attr(data-cond); position: absolute; top: -9px; left: 6px; z-index: 2; background: #ede9fe; color: #5b21b6;
  font: 600 10px/1.5 Inter, sans-serif; padding: 0 6px; border-radius: 6px; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes qp-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Texto formatado */
.qp-rico { overflow-wrap: anywhere; }
.qp-rico > *:first-child { margin-top: 0; } .qp-rico > *:last-child { margin-bottom: 0; }
.qp-rico h1 { font-size: 28px; line-height: 1.2; font-weight: 800; margin: 0 0 8px; }
.qp-rico h2 { font-size: 24px; line-height: 1.22; font-weight: 800; margin: 0 0 8px; }
.qp-rico h3 { font-size: 19px; line-height: 1.25; font-weight: 700; margin: 0 0 6px; }
.qp-rico p, .qp-rico div { margin: 0 0 6px; }
.qp-rico ul, .qp-rico ol { margin: 0 0 6px; padding-left: 22px; }
.qp-rico a { color: var(--qp-cor); }

.qp-img { display: block; margin: 0 auto; width: 100%; height: auto; }
.qp-img-vazia { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 28px; text-align: center; color: #94a3b8; font-size: 14px; }

/* Opções */
.qp-opcoes { display: flex; flex-direction: column; gap: 10px; }
.qp-op-grade { display: grid; grid-template-columns: 1fr 1fr; }
.qp-opcao { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 15px; color: inherit;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 13px 14px; cursor: pointer; min-height: 64px;
  transition: border-color .15s, background .15s, transform .1s; }
.qp-opcao:hover { border-color: color-mix(in srgb, var(--qp-cor) 60%, #e5e7eb); }
.qp-opcao:active { transform: scale(.985); }
.qp-op-grade .qp-opcao { flex-direction: column; text-align: center; justify-content: center; }
.qp-opcao-emoji { font-size: 30px; line-height: 1; width: 34px; text-align: center; flex: none; }
.qp-opcao-img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.qp-op-grade .qp-opcao-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.qp-opcao-txt { flex: 1; }
.qp-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #d1d5db; flex: none; }
.qp-marcada { border-color: var(--qp-cor); background: color-mix(in srgb, var(--qp-cor) 8%, #fff); }
.qp-marcada .qp-check { background: var(--qp-cor); border-color: var(--qp-cor); box-shadow: inset 0 0 0 3px #fff; }
.qp-tremer { animation: qp-tremer .35s; }
@keyframes qp-tremer { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Botão */
.qp-botao { width: 100%; border: 0; border-radius: 14px; padding: 17px; margin-top: 4px; font: inherit; font-weight: 600; font-size: 17px;
  background: var(--qp-cor); color: #fff; cursor: pointer; }
.qp-botao:active { transform: scale(.985); }
.qp-pulsar { animation: qp-pulsar 1.6s infinite; }
/* Pulso: fundo da mesma cor e formato, mais transparente, saindo de trás do botão */
.qp-halo { position: relative; isolation: isolate; }
.qp-halo::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--qp-cor); animation: qp-halo 1.6s ease-out infinite; }
@keyframes qp-halo { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.06, 1.32); opacity: 0; } }
/* 3D: luz em cima, borda grossa embaixo e sombra; afunda ao tocar */
.qp-3d { margin-bottom: 6px; font-weight: 800; text-shadow: 0 1px 1px rgba(0,0,0,.28);
  background: linear-gradient(180deg, color-mix(in srgb, var(--qp-cor) 78%, #fff), var(--qp-cor) 55%, color-mix(in srgb, var(--qp-cor) 88%, #000));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 5px 0 color-mix(in srgb, var(--qp-cor) 62%, #000), 0 10px 16px rgba(0,0,0,.24); }
.qp-3d:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0 color-mix(in srgb, var(--qp-cor) 62%, #000), 0 3px 6px rgba(0,0,0,.24); }
/* Botão fixo: fica colado no fim da tela enquanto rola, até chegar ao seu lugar no fim da página */
.qp-corpo > .qp-fixo { position: sticky; bottom: 0; z-index: 5; flex-basis: calc(100% + 24px); margin: 0 -12px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--qp-fundo); box-shadow: 0 -4px 12px rgba(0,0,0,.06); }
@keyframes qp-pulsar { 50% { transform: scale(1.03); } }

/* Lista, depoimento, campo */
.qp-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.qp-lista li { display: flex; gap: 10px; align-items: flex-start; }
.qp-lista-ic { color: var(--qp-cor); font-weight: 700; }
.qp-depo { border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; background: #fff; }
.qp-depo p { margin: 8px 0 0; font-size: 15px; }
.qp-depo-cab { display: flex; gap: 10px; align-items: center; }
.qp-depo-cab img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.qp-depo-cab div { display: flex; flex-direction: column; }
.qp-estrelas { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.qp-campo { display: flex; flex-direction: column; gap: 6px; }
.qp-campo label { font-weight: 600; font-size: 14px; }
.qp-campo input { font: inherit; font-size: 18px; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 14px; outline: none; color: inherit; background: #fff; }
.qp-campo input:focus { border-color: var(--qp-cor); }
.qp-campo input.qp-erro { border-color: #ef4444; }

/* Régua (altura/peso) */
.qp-reg { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 0; user-select: none; }
.qp-reg-unid { display: flex; background: #f3f4f6; border-radius: 99px; padding: 4px; gap: 2px; }
.qp-reg-unid button { border: 0; background: none; border-radius: 99px; padding: 7px 22px; font: inherit; font-size: 15px; font-weight: 600; color: #9ca3af; cursor: pointer; }
.qp-reg-unid button.ativo { background: var(--qp-cor); color: #fff; }
.qp-reg-num { margin-top: 8px; } .qp-reg-num b { font-size: 40px; font-weight: 800; } .qp-reg-num span { font-size: 18px; font-weight: 700; margin-left: 2px; }
.qp-reg-trilho { position: relative; width: 100%; height: 96px; overflow: hidden; cursor: grab; touch-action: none; border-bottom: 1px solid #e5e7eb;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.qp-reg-trilho:active { cursor: grabbing; }
.qp-reg-faixa { position: absolute; left: 50%; top: 8px; height: 60px; transition: transform .05s linear; }
.qp-tick { position: absolute; top: 0; width: 1px; height: 18px; background: #d1d5db; }
.qp-tick-m { height: 26px; background: #c4c8cf; }
.qp-tick-g { height: 26px; background: #9ca3af; }
.qp-tick span { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font-size: 14px; color: #6b7280; }
.qp-reg-ponteiro { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--qp-cor); border-radius: 2px; }
.qp-reg-ponteiro::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border: 9px solid transparent; border-bottom: 12px solid var(--qp-cor); border-top: 0; }
.qp-reg-dica { font-size: 13px; color: #9ca3af; }

/* Carregamento */
.qp-load { display: flex; flex-direction: column; gap: 8px; }
.qp-load-tit { margin: 0 0 10px; text-align: center; font-size: 24px; line-height: 1.22; font-weight: 800; }
.qp-load-pct { text-align: right; font-size: 14px; font-weight: 600; }
.qp-load-barra { height: 12px; border-radius: 99px; background: #eef0f2; overflow: hidden; }
.qp-load-barra div { height: 100%; background: var(--qp-cor); border-radius: 99px; }
.qp-load-desc { text-align: center; color: #6b7280; margin: 8px 0 0; }

.qp-vazio { text-align: center; color: #94a3b8; font-size: 14px; padding: 40px 0; }

/* Fonte dos títulos (Design → Fonte dos títulos) */
.qp-rico h1, .qp-rico h2, .qp-rico h3, .qp-load-tit { font-family: var(--qp-fonte-titulo, inherit); }

/* Opção com 2ª linha */
.qp-opcao-txt b { display: block; font-weight: 700; }
.qp-opcao-desc { display: block; font-size: 13px; opacity: .8; margin-top: 2px; }

/* Checklist em caixa colorida */
.qp-lista-caixa { border: 1px solid transparent; border-radius: 16px; padding: 16px; gap: 14px; }
.qp-lista .qp-rico p { margin: 0; }

/* Vídeo (bloco padrão; a VSL entra depois) */
.qp-video { width: 100%; background: #000; border-radius: 16px; position: relative; overflow: hidden; }
.qp-video-tit { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-size: 13px; opacity: .7; }

/* Carrossel */
.qp-car { margin: 0 -12px; }
.qp-car-janela { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.qp-car-trilho { display: flex; gap: 8px; will-change: transform; }
.qp-car-item { flex: 0 0 90%; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.qp-car-item img { display: block; width: 100%; object-fit: cover; pointer-events: none; }
.qp-car-txt { padding: 8px 10px; font-size: 14px; }
.qp-car-pontos { display: flex; justify-content: center; gap: 6px; padding: 12px 0 2px; }
.qp-car-ponto { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: color-mix(in srgb, var(--qp-cor) 30%, #fff); cursor: pointer; }
.qp-car-ponto.ativo { background: var(--qp-cor); transform: scale(1.25); }

/* Gráfico */
.qp-graf { position: relative; width: 100%; }
.qp-graf svg { display: block; width: 100%; height: auto; overflow: visible; }
.qp-graf-grade line { stroke: #cbd5e1; stroke-dasharray: 4 4; stroke-width: 1; }
.qp-graf-rot { position: absolute; transform: translate(-50%, -150%); background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 3px 9px; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.qp-graf-rot.destaque { color: #fff; border-color: transparent; }
.qp-graf-eixo { position: absolute; bottom: 2px; font-size: 12px; color: #71717a; }

/* Timer (mesmo vermelho do cronômetro das VSLs) */
.qp-timer { background: #e5484d; color: #fff; border-radius: 14px; padding: 10px 16px; text-align: center; }
.qp-timer-txt { font-size: 15px; font-weight: 600; }
.qp-timer-rel { font-size: 40px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Argumentos (cartões lado a lado) */
.qp-args { display: grid; gap: 8px; }
.qp-arg { border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; text-align: center; }

/* Nível (barra com bolinha) */
.qp-nivel { padding: 6px 4px; }
.qp-nivel-trilho { position: relative; height: 8px; border-radius: 8px; background: #e5e7eb; }
.qp-nivel-cheio { height: 100%; border-radius: 8px; min-width: 2px; transition: width 1s ease; }
.qp-nivel-bola { position: absolute; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); border: 4px solid #ccc; background: #fff; border-radius: 50%; transition: left 1s ease; }
.qp-nivel-pct { text-align: right; font-size: 13px; font-weight: 600; margin-top: 4px; }

/* Prévia do editor (quiz_editor.php?ver=1) */
body.qe-previa { margin: 0; min-height: 100vh; background: #f3f4f6; }
body.qe-previa #qe-app { min-height: 100vh; max-width: 520px; margin: 0 auto; box-shadow: 0 0 30px rgba(0,0,0,.08); display: flex; flex-direction: column; }
body.qe-previa #qe-app > .qp { flex: 1; }
/* Prévia no computador: tamanho de celular, para ver a tela como a pessoa vê (botão fixo incluso) */
@media (min-width: 521px) {
  body.qe-previa { display: flex; align-items: center; justify-content: center; height: 100vh; }
  body.qe-previa #qe-app { width: 390px; height: min(844px, 100vh); min-height: 0; margin: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
  body.qe-previa #qe-app::-webkit-scrollbar { width: 6px; }
  body.qe-previa #qe-app::-webkit-scrollbar-track { background: transparent; }
  body.qe-previa #qe-app::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
}
body.qe-previa #qe-aviso { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; max-width: 90vw; font: 14px Inter, sans-serif; }
body.qe-previa #qe-aviso.mostra { opacity: 1; }

/* Opções no estilo Cartão (igual à Inlead, medido em 19/10/2026): fundo na cor do quiz a 10%, borda a 50%,
   foto encostada na borda (72 px na lista; largura toda e proporção original na grade), setinha ou caixinha de 26 px. */
.qp-op-cartao { gap: 8px; }
.qp-op-cartao .qp-opcao { background: color-mix(in srgb, var(--qp-cor) 10%, #fff); border: 1px solid color-mix(in srgb, var(--qp-cor) 50%, #fff);
  border-radius: 16px; padding: 16px 12px 16px 16px; gap: 16px; min-height: 0; overflow: hidden; font-size: 16px; line-height: 1.4; color: #030712; }
.qp-op-cartao .qp-opcao:hover { border-color: var(--qp-cor); }
.qp-op-cartao .qp-marcada { border-color: var(--qp-cor); background: color-mix(in srgb, var(--qp-cor) 18%, #fff); }
.qp-op-cartao .qp-tem-img { padding: 0 12px 0 0; }
.qp-op-cartao .qp-opcao-img { width: 72px; height: 72px; object-fit: cover; border-radius: 0; background: #fff; }
.qp-op-cartao .qp-opcao-desc { font-size: 16px; opacity: 1; margin-top: 14px; }
.qp-op-grade.qp-op-cartao .qp-opcao { flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: left; padding: 0; gap: 0; }
.qp-op-grade.qp-op-cartao .qp-opcao-img { width: 100%; height: auto; aspect-ratio: auto; }
.qp-op-grade.qp-op-cartao .qp-opcao-txt { display: flex; flex-direction: column; justify-content: center; padding: 13px 16px; }
/* Opções no estilo "Branco (SJT)" (quiz do SJT no ar, 26/10/2026): cartão branco de borda cinza e foto de 72 px encostada na borda.
   Uma resposta: foto à direita. Múltipla (com caixinha): foto à esquerda e caixinha à direita. */
.qp-op-branco { gap: 8px; }
.qp-op-branco .qp-opcao { border: 1px solid #d4d4d8; border-radius: 16px; padding: 16px; gap: 16px; min-height: 0;
  overflow: hidden; font-size: 16px; line-height: 1.4; color: #030712; }
.qp-op-branco:not(.qp-com-ind) .qp-opcao { flex-direction: row-reverse; }
.qp-op-branco:not(.qp-com-ind) .qp-tem-img { padding: 0 0 0 16px; }
.qp-op-branco.qp-com-ind .qp-tem-img { padding: 0 16px 0 0; }
.qp-op-branco .qp-opcao-img { width: 72px; height: 72px; object-fit: cover; }
.qp-seta { width: 26px; height: 26px; border-radius: 9999px; border: 1px solid var(--qp-cor); background: #fff; color: var(--qp-cor);
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.qp-op-cartao .qp-check { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--qp-cor); background: #fff; }
.qp-op-cartao .qp-marcada .qp-check { background: var(--qp-cor); box-shadow: inset 0 0 0 4px #fff; }

/* VSL no quiz publicado (player próprio). A classe "esconder" some já aqui, antes do vsl-player.js carregar. */
body:not(.vsl-cta) .qp .esconder { display: none !important; }
.qp vsl-player { display: block; width: 100%; max-width: 400px; margin: 0 auto; aspect-ratio: 9/16; background: #000; border-radius: 10px; overflow: hidden; }

/* Localized image proportions */
.qp-img[src$="00c34e8d8d98338b-mx.png"] { aspect-ratio: 333 / 318; }
.qp-img[src$="065be0a27d30cf46-mx.png"] { aspect-ratio: 333 / 260; }
.qp-img[src$="46764cbbcc0e9efe-mx.png"] { aspect-ratio: 333 / 300; }
.qp-img[src$="4ec81e7920f82c74-mx2.png"] { aspect-ratio: 800 / 963; }
.qp-img[src$="78b130983a5cad0d-mx.png"] { aspect-ratio: 900 / 900; }
.qp-img[src$="8498d03d44057657-mx.png"] { aspect-ratio: 900 / 767; }
.qp-img[src$="92e08d0368e4fe7a-mx.png"] { aspect-ratio: 800 / 543; }
.qp-img[src$="955dc181e4d69c5f-mx.png"] { aspect-ratio: 1080 / 800; }
.qp-img[src$="a6ab53c1661a6651-mx.png"] { aspect-ratio: 600 / 367; }
.qp-img[src$="bcf242bdeb11d5ee-mx.png"] { aspect-ratio: 900 / 900; }
.qp-img[src$="cf9d52b8a48de1f5-mx.png"] { aspect-ratio: 800 / 533; }
.qp-img[src$="e27613effc835ac6-mx.png"] { aspect-ratio: 333 / 311; }

.qp-nombres { display: block; text-align: center; color: #6b7280; font-size: 11px; margin-top: 10px; }
