/* Academia da Secretária · o que a página do Lovable fazia com React e não está no base.css.
   base.css = o CSS compilado da página antiga (mesmas classes, mesmo visual). Aqui: animação de entrada,
   perguntas frequentes, avisos, a janela do /evento e detalhes do formulário. */

/* Entrada ao rolar (o framer-motion da página antiga): só com JS, e nada pra quem pediu menos movimento. */
.js [data-anim] { opacity: 0; transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1); }
.js [data-anim="sobe"] { transform: translateY(24px); }
.js [data-anim="cresce"] { transform: scale(.95); transition-duration: .8s; }
.js [data-anim].visivel { opacity: 1; transform: none; }

@keyframes pulsar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.pulsar { animation: pulsar 2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
  .pulsar, .animate-marquee { animation: none; }
}

/* Perguntas frequentes */
.faq summary { list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary svg { transform: rotate(180deg); }
.faq summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* Formulário em etapas */
.etapa { animation: etapa-entra .25s cubic-bezier(.22, 1, .36, 1); }
@keyframes etapa-entra { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.campo {
  display: flex; width: 100%; height: 3rem; border-radius: .75rem; border: 1px solid var(--input);
  background: transparent; padding: .25rem .75rem; font-size: 1rem; color: var(--foreground);
  box-shadow: 0 1px 2px #0000000d; font-family: inherit;
}
.campo::placeholder { color: var(--muted-foreground); }
.campo:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }
.campo[type="number"] { -moz-appearance: textfield; }
.oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso-teste {
  margin-top: 1rem; padding: .75rem; border-radius: .75rem; background: var(--muted); color: var(--foreground);
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; text-align: left;
}

/* Avisos (o "toast" da página antiga), no topo e no centro */
.avisos {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: grid; gap: 8px; width: min(356px, calc(100vw - 32px)); pointer-events: none;
}
.aviso {
  padding: 14px 16px; border-radius: 8px; font: 500 14px/1.4 var(--font-body); box-shadow: 0 4px 12px #0000001a;
  border: 1px solid; animation: aviso-entra .25s ease-out;
}
.aviso--erro { background: #fff0f0; color: #e60000; border-color: #ffe0e1; }
.aviso--ok { background: #ecfdf3; color: #008a2e; border-color: #bffcd9; }
@keyframes aviso-entra { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Janela "Garanta seu ingresso" do /evento */
.ingresso {
  /* margin:auto centraliza (o base.css zera a margem de tudo, inclusive do <dialog>). */
  margin: auto; max-height: calc(100dvh - 32px); overflow: auto;
  border: 1px solid var(--border); border-radius: .75rem; padding: 0; width: calc(100% - 32px); max-width: 28rem;
  background: var(--background); color: var(--foreground); box-shadow: 0 25px 50px -12px #00000040;
}
.ingresso::backdrop { background: #000c; }
.ingresso__caixa { position: relative; padding: 1.5rem; display: grid; gap: 1rem; }
.ingresso__topo { display: grid; gap: .375rem; margin-bottom: 1rem; text-align: center; }
@media (min-width: 640px) { .ingresso__topo { text-align: left; } }
.ingresso__fechar {
  position: absolute; top: .75rem; right: .75rem; width: 2rem; height: 2rem; border: 0; border-radius: .375rem;
  background: transparent; color: var(--muted-foreground); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.ingresso__fechar:hover { color: var(--foreground); }
.ingresso .campo { height: 2.25rem; border-radius: .375rem; }
.opcao-evento {
  border-radius: .75rem; border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: transparent;
  padding: .75rem 1rem; font: 600 .875rem/1.25rem var(--font-body); color: var(--foreground); cursor: pointer; transition: border-color .15s, background .15s;
}
.opcao-evento:hover { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.opcao-evento[aria-pressed="true"] { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.25rem; padding: .5rem 1rem;
  border: 0; border-radius: .375rem; font: 700 .875rem/1.25rem var(--font-body); cursor: pointer;
}
.botao--cheio { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 3px #0000001a; }
.botao--cheio:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }
.botao:disabled { opacity: .5; cursor: not-allowed; }
