/* Tema "evento": o visual do mockup do Sorteio FECESCOR.
   Carregado só nas páginas de uma pesquisa com esse tema, por cima do
   style.css — tudo aqui depende de .tema-evento, então o tema clássico
   continua intocado. Desenhado para o celular primeiro. */
.tema-evento {
  --verde: #0db14b;
  --verde-escuro: #0a9440;
  --azul-topo: #012b51;
  --azul-meio: #003662;
  --azul-base: #002648;
  color: #fff;
  background: linear-gradient(180deg, var(--azul-topo) 0%, var(--azul-meio) 45%, var(--azul-base) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* torre + pontos de rede, como no mockup: decoração, nunca conteúdo */
.tema-evento::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url("/static/img/fundo-torre.webp") right 0 top 20% / auto 58% no-repeat,
    radial-gradient(circle at 12% 18%, rgba(120, 190, 255, .16) 0 2px, transparent 2px),
    radial-gradient(circle at 78% 42%, rgba(120, 190, 255, .13) 0 2px, transparent 2px),
    radial-gradient(circle at 32% 76%, rgba(120, 190, 255, .12) 0 2px, transparent 2px),
    radial-gradient(circle at 62% 88%, rgba(120, 190, 255, .10) 0 2px, transparent 2px);
}
.tema-evento > * { position: relative; z-index: 1; }

/* ----------------- Splash ----------------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--azul);
  animation: splash-sai .45s ease-out 1.15s forwards;
  /* decoração por cima de tudo: nunca pode segurar o toque. Sem isto, se o
     navegador não aplicar o visibility:hidden do fim da animação, ela fica
     invisível sobre a página e engole o toque no aceite. */
  pointer-events: none;
}
.splash img {
  width: 116px;
  height: auto;
  animation: splash-entra .5s ease-out both;
}
@keyframes splash-entra {
  from { opacity: 0; transform: scale(.86); }
  to   { opacity: 1; transform: none; }
}
@keyframes splash-sai {
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .splash { animation: splash-sai .2s linear .5s forwards; }
  .splash img { animation: none; }
}

/* ----------------- Tela de abertura ----------------- */
.tema-evento main.abertura {
  max-width: 440px;
  margin: 0 auto;
  padding: 26px 16px 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tema-evento .marca { width: 168px; height: auto; margin-bottom: 18px; }
.tema-evento .abertura h1 {
  font-size: 1.85rem;
  line-height: 1.18;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tema-evento .realce { color: var(--verde); }
.tema-evento .intro {
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .88);
  max-width: 21em;
  text-wrap: balance;
}
.tema-evento .intro p { margin: 0 0 8px; }
.tema-evento .premio {
  width: min(100%, 320px);
  height: auto;
  margin: 6px 0 4px;
}
.tema-evento .destaques {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .95);
}
.tema-evento .destaques li { margin: 4px 0; }

/* ----------------- Aceite e botão ----------------- */
.tema-evento .comecar { width: 100%; }
.tema-evento .bloco-aceite {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  text-align: left;
}
.tema-evento .aceite {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .92);
  cursor: pointer;
}
.tema-evento .aceite input {
  width: 20px; height: 20px;
  flex: none;
  accent-color: var(--verde);
  cursor: pointer;
}
.tema-evento .regras { margin-top: 8px; }
.tema-evento .regras summary {
  cursor: pointer;
  font-size: .85rem;
  color: #9fd4ff;
  padding: 4px 0 4px 30px;
}
.tema-evento .regras-texto {
  font-size: .86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
  max-height: 46vh;
  overflow-y: auto;
  padding: 4px 0 2px 30px;
}
.tema-evento .botao-evento {
  display: block;
  width: 100%;
  background: var(--verde);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 17px 20px;
  font: inherit;
  font-size: 1.22rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(13, 177, 75, .3);
  transition: background .15s, transform .08s, opacity .15s;
}
.tema-evento .botao-evento:hover { background: var(--verde-escuro); }
.tema-evento .botao-evento:active { transform: translateY(1px); }
.tema-evento .botao-evento:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* enquanto o aceite não está marcado, o botão avisa que ainda não vale */
.tema-evento .comecar:has(.aceite input:not(:checked)) .botao-evento {
  opacity: .72;
  box-shadow: none;
}

/* ----------------- Confirmação e avisos ----------------- */
.tema-evento main.confirmacao {
  max-width: 440px;
  margin: 0 auto;
  padding: 30px 16px 34px;
  text-align: center;
}
.tema-evento .cartao {
  background: #eceef1;
  color: var(--azul-escuro);
  border-radius: 18px;
  padding: 34px 24px 30px;
  box-shadow: 0 18px 40px rgba(0, 20, 40, .28);
}
.tema-evento .cartao .check {
  width: 92px; height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #cdeed8;
  color: var(--verde);
  font-size: 3rem;
  display: grid; place-items: center;
}
.tema-evento .cartao .check.aguardando { background: #dfe4ea; color: #5b6b7a; font-size: 2.4rem; }
.tema-evento .cartao h1 {
  color: var(--azul);
  font-size: 1.5rem;
  margin: 0 0 16px;
  text-wrap: balance;
}
.tema-evento .cartao .texto { color: #44515e; font-size: 1rem; }
.tema-evento .cartao .texto strong { color: var(--azul); }
.tema-evento .cartao .divisor {
  width: 108px;
  height: 4px;
  border: none;
  border-radius: 3px;
  background: var(--verde);
  margin: 26px auto;
}
.tema-evento .cartao .nota { color: var(--azul); font-weight: 700; }
.tema-evento .cartao .fecho { font-size: 1.2rem; font-weight: 800; color: var(--azul); margin: 22px 0 0; }

.tema-evento .rodape-evento {
  text-align: center;
  color: rgba(255, 255, 255, .55);
  font-size: .78rem;
  padding: 6px 16px 30px;
}

/* ----------------- Formulário no tema evento ----------------- */
.tema-evento .topbar {
  background: rgba(0, 25, 48, .82);
  border-bottom: 3px solid var(--verde);
  backdrop-filter: blur(6px);
}
.tema-evento .topbar .topbar-txt { color: rgba(255, 255, 255, .8); }
.tema-evento .hero { background: none; padding-bottom: 22px; }
/* dentro dos cards claros o texto volta a ser escuro: o branco do tema vale
   para o que está sobre o azul */
.tema-evento .secao,
.tema-evento .erro-resumo { color: var(--azul-escuro); }
.tema-evento .pergunta .dica { color: var(--cinza-texto); }
.tema-evento .hero .pill { background: rgba(13, 177, 75, .18); border-color: rgba(13, 177, 75, .5); }
.tema-evento .secao > header .num { background: var(--verde); }
.tema-evento .pergunta .label .qnum,
.tema-evento .pergunta .obrig { color: var(--verde); }
.tema-evento .opcao.marcada { border-color: var(--verde); background: #eefaf1; }
.tema-evento .opcao input { accent-color: var(--verde); }
.tema-evento input[type="text"]:focus,
.tema-evento input[type="tel"]:focus,
.tema-evento textarea:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(13, 177, 75, .18);
}
.tema-evento button.enviar {
  background: var(--verde);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(13, 177, 75, .3);
}
.tema-evento button.enviar:hover {
  background: var(--verde-escuro);
  box-shadow: 0 10px 26px rgba(13, 177, 75, .38);
}
.tema-evento .pergunta.condicional {
  border-left-color: var(--verde);
  background: #f2fbf5;
}

@media (min-width: 720px) {
  .tema-evento .abertura h1 { font-size: 2.1rem; }
  .tema-evento::before { background-size: auto 78%, auto, auto, auto, auto; }
}
