/* Pesquisa pós-evento. Base visual do site novo da Nobox (Outfit, cinza #F5F5F7, cartão branco), com a cor da marca do
   evento: AV2Play (magenta do logo) ou Nobox (azul). Cor pura só em detalhe; botão com texto branco usa o tom mais fundo
   (contraste de 4,5:1 ou mais). */
@font-face { font-family: 'Outfit'; src: url('/assets/Outfit.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }

:root {
  --fundo: #F5F5F7; --cartao: #FFFFFF; --txt: #1D1D1F; --txt-2: #424245; --cinza: #6E6E73; --linha: rgba(0, 0, 0, .09);
  --sombra: 0 24px 60px rgba(0, 0, 0, .08); --raio: 22px;
  --acento: #00a1ff; --acento-forte: #0378c4; --acento-suave: rgba(0, 161, 255, .10);
}
body[data-marca="av2play"] { --acento: #ed0677; --acento-forte: #c4005f; --acento-suave: rgba(237, 6, 119, .08); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--fundo); color: var(--txt);
  font: 400 17px/1.5 'Outfit', Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
}

.topo { position: sticky; top: 0; z-index: 2; background: rgba(245, 245, 247, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
.topo-dentro { max-width: 640px; margin: 0 auto; padding: 14px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { height: 34px; width: auto; display: block; }
body[data-marca="av2play"] .logo { height: 30px; }
.passo { font-size: 14px; color: var(--cinza); font-variant-numeric: tabular-nums; }
.barra { height: 3px; background: var(--linha); }
.barra span { display: block; height: 100%; width: 0; background: var(--acento); transition: width .45s cubic-bezier(.2, .7, .2, 1); }

.palco { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 28px 16px 24px; display: flex; flex-direction: column; justify-content: center; }
.cartao { background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); padding: 36px 32px 30px; animation: entra .38s cubic-bezier(.2, .7, .2, 1); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.evento { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--acento-forte); letter-spacing: .01em; }
h1 { margin: 0; font-size: clamp(26px, 6vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
h2 { margin: 0; font-size: clamp(22px, 5.2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.sub { margin: 12px 0 0; color: var(--txt-2); }
.miudo { margin: 10px 0 0; font-size: 14px; color: var(--cinza); }
.carregando, .erro-carga { margin: 0; color: var(--cinza); }

.campo { display: block; margin-top: 22px; }
.campo span { display: block; font-size: 14px; color: var(--txt-2); margin-bottom: 7px; }
.campo input, .campo textarea {
  width: 100%; font: inherit; color: var(--txt); background: #fff; border: 1px solid rgba(0, 0, 0, .16); border-radius: 14px;
  padding: 14px 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.campo textarea { min-height: 128px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--acento-forte); box-shadow: 0 0 0 4px var(--acento-suave); }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notas { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; margin-top: 26px; }
.nota {
  min-height: 48px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 12px; background: #fff; color: var(--txt);
  font: 600 17px/1 'Outfit', system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.nota:hover { border-color: var(--acento-forte); }
.nota:active { transform: scale(.94); }
.nota[aria-checked="true"] { background: var(--acento-forte); border-color: var(--acento-forte); color: #fff; }
.escala { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--cinza); }

.acoes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.botao {
  appearance: none; border: 0; border-radius: 980px; background: var(--acento-forte); color: #fff;
  font: 600 17px/1 'Outfit', system-ui, sans-serif; padding: 16px 28px; min-height: 52px; cursor: pointer; transition: filter .15s, transform .12s, opacity .15s;
}
.botao:hover { filter: brightness(1.08); }
.botao:active { transform: scale(.98); }
.botao:disabled { opacity: .35; cursor: default; filter: none; transform: none; }
.voltar { appearance: none; border: 0; background: none; color: var(--cinza); font: 500 15px/1 'Outfit', system-ui, sans-serif; padding: 14px 6px; min-height: 44px; cursor: pointer; }
.voltar:hover { color: var(--txt); }
.so { margin-left: auto; }
.erro { margin: 14px 0 0; color: #b42318; font-size: 15px; }

.ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--acento-suave); margin-bottom: 18px; }
.ok svg { width: 30px; height: 30px; stroke: var(--acento-forte); }

:focus-visible { outline: 3px solid var(--acento-forte); outline-offset: 2px; }
.campo input:focus-visible, .campo textarea:focus-visible { outline: none; }

.rodape { max-width: 640px; margin: 0 auto; padding: 8px 20px 28px; text-align: center; color: var(--cinza); font-size: 13px; }
.rodape img { height: 22px; width: auto; opacity: .75; }
.rodape p { margin: 8px 0 0; }
.aviso-js { max-width: 560px; margin: 20px auto; padding: 0 20px; color: var(--txt-2); }

@media (max-width: 560px) {
  .cartao { padding: 28px 20px 22px; border-radius: 20px; }
  .notas { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .nota { min-height: 52px; }
  .palco { justify-content: flex-start; padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cartao { animation: none; }
  .barra span, .nota, .botao { transition: none; }
}
