/* =========================================================
   Pesquisa Eleições 2026 — estilos
   ========================================================= */
:root {
  --verde-950: #04200f;
  --verde-900: #0b3d22;
  --verde-700: #146b3a;
  --grama-a:   #1d7440;
  --grama-b:   #1a6939;

  --tinta:     #10231a;
  --tinta-2:   #4b5d54;
  --linha:     #dfe6e2;
  --fundo-2:   #f4f7f5;
  --branco:    #ffffff;

  --azul:      #1747c9;
  --azul-esc:  #0f35a0;
  --vermelho:  #d23a33;
  --vermelho-esc: #ab2621;
  --amarelo:   #f4b90b;
  --amarelo-esc: #d69f00;
  --ouro:      #f6cf5b;

  --raio:      22px;
  --raio-sm:   14px;
  --sombra:    0 30px 60px -20px rgba(2, 24, 12, .55), 0 12px 24px -12px rgba(2, 24, 12, .35);
  --fonte:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fonte-tit: 'Sora', 'Inter', system-ui, sans-serif;
  --ease:      cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--fonte);
  color: var(--tinta);
  background: var(--verde-900);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }

/* ---------- Gramado de fundo ---------- */
.gramado {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(140% 90% at 50% 120%, rgba(0,0,0,.55), transparent 60%),
    repeating-linear-gradient(180deg, var(--grama-a) 0 70px, var(--grama-b) 70px 140px);
}
.gramado::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(3, 22, 11, .55) 100%);
}

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) 18px 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(4, 32, 15, .7), rgba(4, 32, 15, 0));
}
.topo__voltar {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff;
  transition: background .2s;
}
.topo__voltar:hover { background: rgba(255,255,255,.18); }
.topo__voltar svg { width: 20px; height: 20px; }
.topo__marca {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fonte-tit); font-weight: 700; font-size: 14px; letter-spacing: .01em;
  white-space: nowrap;
}
.topo__selo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}
.topo__selo svg { width: 17px; height: 17px; }
.topo__progresso { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 220px; }
.topo__progresso small { font-weight: 600; font-size: 12px; opacity: .85; white-space: nowrap; font-variant-numeric: tabular-nums; }
.barra { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.barra span {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, var(--ouro));
  transition: width .6s var(--ease);
}
@media (max-width: 520px) {
  .topo__marca span:last-child { display: none; }
  .topo__progresso { flex: 1 1 auto; }
}

/* ---------- Palco / telas ---------- */
.palco { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px 24px; }
.tela { display: none; flex-direction: column; align-items: center; min-height: 100%; }
.tela.is-ativa { display: flex; }
.tela.is-ativa .cena { animation: cenaEntra .7s var(--ease) both; }
.tela.is-ativa .cartao { animation: cartaoEntra .6s var(--ease) .06s both; }
.palco.volta .tela.is-ativa .cartao { animation-name: cartaoVolta; }

@keyframes cenaEntra { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cartaoEntra { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes cartaoVolta { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }

/* ---------- Cenas ---------- */
.cena {
  width: 100%; max-width: 560px;
  height: clamp(170px, 32vh, 290px);
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.18));
}
.cena svg { width: 100%; height: 100%; }
.cena--foto { filter: none; }
.cena--foto img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--raio); box-shadow: var(--sombra); }
.cena--amigos .bola-gol { animation: gol 2.4s var(--ease) infinite; transform-origin: 206px 104px; }
@keyframes gol {
  0%   { transform: translate(-150px, 70px) scale(.7); opacity: 0; }
  12%  { opacity: 1; }
  45%, 100% { transform: none; opacity: 1; }
}
.cena--obrigado .check { stroke-dasharray: 60; stroke-dashoffset: 60; animation: traco .7s .35s var(--ease) forwards; }
@keyframes traco { to { stroke-dashoffset: 0; } }

/* ---------- Cartão ---------- */
.cartao {
  position: relative;
  width: 100%; max-width: 560px;
  margin-top: -8px;
  padding: 30px 26px 26px;
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}
.cartao::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--azul), var(--verde-700), var(--ouro));
}
.sobretitulo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--verde-700);
}
.sobretitulo::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

h1, h2 { font-family: var(--fonte-tit); color: var(--tinta); margin: 10px 0 0; letter-spacing: -.02em; }
h1 { font-size: clamp(26px, 5.4vw, 36px); line-height: 1.15; font-weight: 800; }
h1 em { font-style: normal; color: var(--azul); white-space: nowrap; }
h2 { font-size: clamp(20px, 4.4vw, 26px); line-height: 1.28; font-weight: 700; }
h2 strong { color: var(--azul); font-weight: 800; }
.h2--longo { font-size: clamp(18px, 4vw, 22px); line-height: 1.38; }
.apoio { margin: 12px 0 0; color: var(--tinta-2); font-size: 16px; line-height: 1.5; }
.apoio--forte { font-size: 18px; color: var(--tinta); font-weight: 500; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border-radius: var(--raio-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn--primario { background: var(--verde-900); color: #fff; box-shadow: 0 10px 20px -10px rgba(11, 61, 34, .8); }
.btn--primario:hover { background: var(--verde-700); }
.btn--fantasma { background: var(--fundo-2); color: var(--tinta); border-color: var(--linha); }
.btn--fantasma:hover { border-color: #c3cfc8; }
.btn--grande { width: 100%; min-height: 56px; margin-top: 24px; font-size: 17px; }
.btn:focus-visible, .opcao:focus-visible, .time:focus-visible, .topo__voltar:focus-visible {
  outline: 3px solid var(--ouro); outline-offset: 3px;
}

/* ---------- Opções ---------- */
.opcoes { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: 1fr 1fr; }
.opcoes--3 { grid-template-columns: repeat(3, 1fr); }
.opcoes--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) {
  .opcoes--3 { grid-template-columns: 1fr 1fr; }
  .opcoes--3 .opcao:last-child { grid-column: 1 / -1; }
  .opcoes--4 { grid-template-columns: 1fr 1fr; }
}
.opcao {
  --c: var(--tinta); --c-esc: var(--tinta); --txt: #fff;
  position: relative;
  min-height: 62px; padding: 0 18px;
  border-radius: var(--raio-sm);
  border: 2px solid transparent;
  background: var(--c); color: var(--txt);
  font-family: var(--fonte-tit); font-weight: 700; font-size: 19px;
  box-shadow: 0 10px 18px -12px var(--c), inset 0 -3px 0 rgba(0,0,0,.14);
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, opacity .2s;
}
.opcao:hover { transform: translateY(-2px); background: var(--c-esc); }
.opcao--azul     { --c: var(--azul);     --c-esc: var(--azul-esc); }
.opcao--vermelho { --c: var(--vermelho); --c-esc: var(--vermelho-esc); }
.opcao--amarelo  { --c: var(--amarelo);  --c-esc: var(--amarelo-esc); --txt: #2a1f00; }
.opcao--neutro {
  --c: #fff; --c-esc: var(--fundo-2); --txt: var(--tinta);
  border-color: var(--linha);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.opcao--neutro:hover { border-color: var(--verde-700); }

.opcao__check {
  position: absolute; top: -9px; right: -9px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ouro); color: var(--verde-950);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transform: scale(0); transition: transform .3s var(--ease);
}
.opcao__check svg { width: 15px; height: 15px; }
[aria-checked="true"] > .opcao__check { transform: scale(1); }
.opcao[aria-checked="true"] { box-shadow: 0 0 0 4px rgba(246, 207, 91, .55), 0 14px 22px -12px var(--c); }
.opcao--neutro[aria-checked="true"] { background: var(--verde-900); color: #fff; border-color: var(--verde-900); }
.opcoes.tem-escolha .opcao[aria-checked="false"],
.times.tem-escolha .time[aria-checked="false"] { opacity: .5; }

/* ---------- Times ---------- */
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 480px) { .times { grid-template-columns: 1fr 1fr; } }
.time {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px 14px;
  border-radius: var(--raio-sm);
  border: 2px solid var(--linha);
  background: #fff;
  transition: transform .18s var(--ease), border-color .2s, box-shadow .2s, opacity .2s;
}
.time:hover { transform: translateY(-3px); border-color: var(--cor); box-shadow: 0 14px 22px -16px var(--cor); }
.time[aria-checked="true"] { border-color: var(--cor); box-shadow: 0 0 0 4px rgba(246,207,91,.55); }
.time__escudo {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--cor) 70%, #fff), var(--cor));
  color: var(--cor2);
  box-shadow: inset 0 0 0 3px var(--cor2), inset 0 0 0 5px var(--cor), 0 8px 16px -8px rgba(0,0,0,.5);
}
.time__escudo.tem-img { background: none; box-shadow: none; border-radius: 0; }
.time__escudo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.time__escudo > svg { width: 34px; height: 34px; }
.time__sigla { font-family: var(--fonte-tit); font-weight: 800; font-size: 17px; letter-spacing: .04em; }
.time__nome { font-family: var(--fonte-tit); font-weight: 700; font-size: 16px; color: var(--tinta); }

/* ---------- Formulário de contato ---------- */
#formContato { margin-top: 22px; }
.campo { display: block; }
.campo__rotulo { display: block; font-size: 13px; font-weight: 600; color: var(--tinta-2); margin-bottom: 8px; }
.campo__caixa {
  display: flex; align-items: center;
  border: 2px solid var(--linha); border-radius: var(--raio-sm);
  background: var(--fundo-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.campo__caixa:focus-within { border-color: var(--verde-700); background: #fff; box-shadow: 0 0 0 4px rgba(20,107,58,.14); }
.campo.erro .campo__caixa { border-color: var(--vermelho); box-shadow: 0 0 0 4px rgba(210,58,51,.12); animation: tremor .35s; }
.campo__icone { padding: 0 4px 0 16px; color: var(--verde-700); }
.campo__icone svg { width: 22px; height: 22px; }
.campo input {
  flex: 1; min-width: 0; height: 58px; padding: 0 16px 0 10px;
  border: 0; background: transparent; outline: none;
  font: 600 20px/1 var(--fonte); letter-spacing: .02em; color: var(--tinta);
  font-variant-numeric: tabular-nums;
}
.campo input::placeholder { color: #a3b2aa; font-weight: 500; }
@keyframes tremor { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.aceite { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer; }
.aceite input { position: absolute; opacity: 0; pointer-events: none; }
.aceite__caixa {
  flex: none; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 7px; border: 2px solid #b8c6be; background: #fff;
  display: grid; place-items: center; color: #fff;
  transition: background .2s, border-color .2s;
}
.aceite__caixa svg { width: 15px; height: 15px; transform: scale(0); transition: transform .2s var(--ease); }
.aceite input:checked + .aceite__caixa { background: var(--verde-700); border-color: var(--verde-700); }
.aceite input:checked + .aceite__caixa svg { transform: scale(1); }
.aceite input:focus-visible + .aceite__caixa { outline: 3px solid var(--ouro); outline-offset: 2px; }
.aceite.erro .aceite__caixa { border-color: var(--vermelho); animation: tremor .35s; }
.aceite__texto { font-size: 13.5px; line-height: 1.5; color: var(--tinta-2); }
.aceite__texto a { color: var(--verde-700); font-weight: 600; }
.seguro { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 12.5px; color: var(--tinta-2); }
.seguro svg { width: 15px; height: 15px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Final ---------- */
.cartao--final { text-align: center; }
.cartao--final h1 { font-size: clamp(34px, 7vw, 46px); }
.protocolo {
  display: inline-block; margin: 16px 0 0; padding: 6px 12px;
  border-radius: 99px; background: var(--fundo-2); color: var(--tinta-2);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.compartilhar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
@media (max-width: 420px) { .compartilhar { grid-template-columns: 1fr; } }

.confete { position: fixed; opacity: .9; top: -12px; width: 9px; height: 14px; border-radius: 2px; z-index: 50; pointer-events: none;
  animation: cai linear forwards; }
@keyframes cai { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }

/* ---------- Rodapé ---------- */
.rodape { text-align: center; padding: 6px 16px max(18px, env(safe-area-inset-bottom)); }
.rodape a { color: rgba(255,255,255,.7); font-size: 12.5px; text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; }

/* ---------- Desktop: cena à esquerda, cartão à direita ---------- */
@media (min-width: 920px) {
  .palco { display: flex; align-items: center; padding-bottom: 40px; }
  .tela.is-ativa { flex-direction: row; justify-content: center; gap: 40px; width: 100%; }
  .cena { flex: 1 1 520px; height: 420px; max-width: 580px; }
  .cartao { flex: 0 1 520px; margin-top: 0; padding: 40px 38px 34px; }
  .cartao::before { left: 38px; right: 38px; }
}

/* ---------- SweetAlert2 — tema ---------- */
.swal2-popup.enq-popup {
  border-radius: 24px; padding: 30px 26px 26px;
  font-family: var(--fonte); color: var(--tinta);
  box-shadow: var(--sombra);
}
.enq-popup .swal2-title { font-family: var(--fonte-tit); font-size: 22px; font-weight: 800; color: var(--tinta); letter-spacing: -.02em; padding: 8px 0 0; }
.enq-popup .swal2-html-container { font-size: 15px; line-height: 1.55; color: var(--tinta-2); margin-top: 10px; }
.enq-popup .swal2-actions { gap: 10px; width: 100%; margin-top: 22px; flex-wrap: nowrap; }
.enq-popup .swal2-actions .btn { flex: 1; margin: 0; padding: 0 14px; font-size: 15px; white-space: nowrap; }
.enq-popup .swal2-icon { margin-top: 6px; transform: scale(.85); }
.enq-popup .swal2-icon.swal2-success [class^=swal2-success-line] { background: var(--verde-700); }
.enq-popup .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(20,107,58,.3); }
.enq-popup .swal2-loader { border-color: var(--verde-700) transparent var(--verde-700) transparent; }
.enq-popup .swal2-timer-progress-bar { background: var(--verde-700); }
.enq-icone {
  width: 64px; height: 64px; margin: 4px auto 16px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--fundo-2); color: var(--verde-700);
}
.enq-icone svg { width: 30px; height: 30px; }
.enq-icone--alerta { background: #fdf1d4; color: #9a6b00; }
.enq-icone--erro { background: #fbe3e1; color: var(--vermelho); }

.resumo { list-style: none; margin: 4px 0 0; padding: 0; text-align: left; border: 1px solid var(--linha); border-radius: 16px; overflow: hidden; }
.resumo li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; font-size: 14px; }
.resumo li + li { border-top: 1px solid var(--linha); }
.resumo span { color: var(--tinta-2); }
.resumo strong { color: var(--tinta); text-align: right; }

.swal2-container .swal2-popup.swal2-toast.enq-toast {
  border-radius: 14px; padding: 12px 16px; font-family: var(--fonte);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.35);
}
.enq-toast .swal2-title { font-size: 14.5px; font-weight: 600; color: var(--tinta); margin: 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
