/* Concurso de Bolsas — Ciclo Cursos (identidade v2)
   Base: site do concurso no Wix (azul-marinho, índigo e coral, raios amarelos e rabiscos azuis),
   com cantos suaves, sombras leves e fontes arredondadas autohospedadas (Fredoka + Figtree). */

@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  /* Cores da identidade (valores medidos nas capturas do site antigo) */
  --navy: #18177F;
  --navy-fundo: #0F0E54;
  --indigo: #3915E9;
  --coral: #FF4838;          /* só para formas e adornos grandes */
  --coral-tinta: #D92D1C;    /* fundo de botão e rodapé: texto branco passa em 4,8:1 */
  --coral-escuro: #BF2314;
  --amarelo: #FFCD0E;
  --ciano: #00A3FF;
  --lavanda: #F4F3FF;
  --lavanda-forte: #EEEDFF;
  --branco: #fff;

  --tinta: #1A1A4D;
  --tinta-suave: #55557F;
  --borda-campo: #8A8DB4;
  --erro: #B3261E;
  --foco: var(--indigo);

  --f-titulo: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --f-texto: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Raios concêntricos: cartão 28 > campo/botão 14–16; superfícies grandes 24 */
  --r-cartao: 28px;
  --r-campo: 14px;
  --r-botao: 16px;

  --sombra-cartao: 0 1px 2px rgba(10, 9, 60, .16), 0 14px 32px -10px rgba(10, 9, 60, .4), 0 34px 64px -30px rgba(10, 9, 60, .5);
  --sombra-botao: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 10px 22px -10px rgba(217, 45, 28, .75);
  --facil: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--navy);
  /* Rodapé sempre no fim da tela, mesmo nas páginas curtas. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.fundo-indigo { background: var(--indigo); }
body > main { flex: 1 0 auto; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 4px; }
.escuro { --foco: #fff; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.miolo { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.faixa-revisao {
  background: var(--navy-fundo); color: var(--amarelo);
  text-align: center; padding: .5rem 1rem; font-size: .95rem; font-weight: 600;
}

/* ---------- Barra do topo ---------- */
.barra { position: relative; z-index: 4; color: var(--branco); --foco: #fff; }
.barra__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding-block: 1.25rem 1rem; }
.marca { display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; border-radius: 10px; }
.marca img:first-child { width: 3.9rem; height: auto; }
.marca img:last-child { width: 6.1rem; height: auto; }
.barra__titulo { order: 3; flex: 1 0 100%; margin: 0; text-align: center; font: 600 clamp(1.9rem, 5vw, 2.4rem)/1.1 var(--f-titulo); }
.barra__voltar {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem 1rem;
  font-weight: 600; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px;
  transition-property: background-color, scale; transition-duration: 150ms; transition-timing-function: ease-out;
}
@media (hover: hover) { .barra__voltar:hover { background: rgba(255, 255, 255, .16); } }
.barra__voltar:active { scale: .96; }
@media (min-width: 48rem) {
  .barra__in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .barra__titulo { order: 0; flex: none; grid-column: 2; }
  .barra__voltar { grid-column: 3; justify-self: end; }
  .barra__in > .marca { grid-column: 1; justify-self: start; }
}

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.5rem; padding: .8rem 1.9rem;
  font: 600 1.15rem/1.2 var(--f-titulo); letter-spacing: .01em;
  color: var(--branco); background: var(--coral-tinta);
  border: 0; border-radius: var(--r-botao);
  box-shadow: var(--sombra-botao);
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition-property: transform, scale, box-shadow, background-color; transition-duration: 160ms; transition-timing-function: ease-out;
}
@media (hover: hover) { .botao:hover { background: var(--coral-escuro); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 16px 26px -12px rgba(217, 45, 28, .85); } }
.botao:active { scale: .96; transform: none; }
.botao--claro { color: var(--navy); background: var(--lavanda-forte); box-shadow: 0 0 0 1px rgba(24, 23, 127, .14), 0 8px 18px -10px rgba(10, 9, 60, .5); }
@media (hover: hover) { .botao--claro:hover { background: #fff; box-shadow: 0 0 0 1px rgba(24, 23, 127, .2), 0 14px 24px -12px rgba(10, 9, 60, .55); } }
.botao[disabled] { opacity: .65; cursor: progress; transform: none; }
.botao--grande { min-height: 4rem; font-size: 1.35rem; padding-inline: 2.6rem; }

/* ---------- Adornos (raios, rabiscos, bolinhas) ---------- */
.ad { position: absolute; z-index: 1; height: auto; pointer-events: none; user-select: none; }
.ad--bola { border-radius: 50%; background: #fff; }

/* ---------- Topo da landing ---------- */
.heroi {
  position: relative; overflow: hidden; color: var(--branco); --foco: #fff;
  background:
    radial-gradient(52% 58% at 78% 46%, rgba(57, 21, 233, .5), transparent 72%),
    var(--navy);
}
.heroi::after {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: -1px;
  height: clamp(2.4rem, 5.5vw, 4.5rem);
  background: url("/assets/img/onda-indigo.svg") center bottom / 100% 100% no-repeat;
}
.heroi .barra__in { padding-bottom: 0; }
.heroi__grade { position: relative; z-index: 2; display: grid; gap: 1.5rem; align-items: end; padding-top: .5rem; }
.heroi__texto { position: relative; display: grid; justify-items: center; text-align: center; padding-bottom: clamp(.5rem, 2vw, 1rem); }
@media (min-width: 56rem) {
  .heroi__grade { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 2rem; padding-top: 0; }
  .heroi__texto { align-self: center; padding-bottom: clamp(3rem, 7vw, 6rem); }
}
.heroi__logo { margin: 0 0 1.25rem; width: min(100%, 22rem); }
.heroi__logo img { width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(5, 4, 40, .45)); }
.heroi__lead {
  margin: 0 0 1.4rem; max-width: 26rem;
  font: 600 clamp(1.4rem, 3.3vw, 1.85rem)/1.25 var(--f-titulo);
}
.heroi__lead .cem { color: var(--amarelo); font-size: 1.18em; }
.heroi__fatos {
  margin: 0 0 1.75rem; padding: 1rem 1.25rem; list-style: none; display: grid; gap: .3rem; text-align: left;
  font-size: 1.02rem; line-height: 1.45;
  background: rgba(255, 255, 255, .08); border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}
.heroi__fatos strong { color: var(--amarelo); font-weight: 700; }

.rosto { position: relative; z-index: 2; width: min(100%, 25rem); justify-self: center; margin-top: 1rem; }
.rosto__foto { margin: 0; position: relative; }
.rosto__foto img { width: 100%; height: auto; filter: drop-shadow(0 22px 28px rgba(5, 4, 40, .45)); }
.rosto__legenda {
  position: absolute; right: -4%; bottom: 25%; z-index: 2;
  display: grid; gap: .35rem; justify-items: start;
  padding: .8rem 1rem .85rem; color: var(--navy);
  background: #fff; border-radius: 22px;
  box-shadow: 0 14px 28px -10px rgba(5, 4, 40, .55);
}
.rosto__legenda strong { font: 600 1.2rem/1.15 var(--f-titulo); }
.rosto__legenda span { padding: .15rem .65rem; color: #fff; background: var(--coral-tinta); border-radius: 10px; font-weight: 700; font-size: .95rem; line-height: 1.35; }
@media (min-width: 56rem) { .rosto__legenda { right: -12%; bottom: 30%; } }

.heroi .ad--rabisco-esq { left: -3%; bottom: 3%; width: clamp(8rem, 16vw, 15rem); }
.heroi .ad--rabisco-dir { right: -2%; top: -1%; width: clamp(13rem, 34vw, 31rem); }
.heroi .ad--raio-b { left: 2.5%; top: 44%; width: clamp(2.2rem, 4vw, 3.4rem); rotate: -12deg; }
.heroi .ad--raio-c { left: 45%; top: 17%; width: 2rem; rotate: 14deg; }
.heroi .ad--zigue-a { left: 27%; top: 4%; width: 3.4rem; rotate: -22deg; }
.heroi .ad--zigue-b { right: 3%; bottom: 22%; width: 3.6rem; rotate: -22deg; }
.heroi .ad--bola-a { left: 11%; top: 28%; width: 1.5rem; height: 1.5rem; }
.heroi .ad--bola-b { left: 13.5%; top: 32%; width: .7rem; height: .7rem; }
.heroi .ad--bola-c { right: 3%; top: 30%; width: 1.1rem; height: 1.1rem; }
.rosto .ad--raio-a { right: 3%; top: 4%; width: clamp(2.6rem, 5vw, 4.2rem); rotate: 10deg; }
.rosto .ad--bola-e { left: 4%; top: 24%; width: 1.3rem; height: 1.3rem; }
.rosto .ad--bola-f { right: -2%; top: 20%; width: .8rem; height: .8rem; }
@media (max-width: 55.99rem) {
  .heroi .ad--raio-b, .heroi .ad--raio-c, .heroi .ad--zigue-a, .heroi .ad--bola-a, .heroi .ad--bola-b, .heroi .ad--bola-c { display: none; }
  .heroi .ad--rabisco-esq { bottom: 2%; opacity: .75; }
  .heroi .ad--zigue-b { display: none; }
}

/* Entrada da página: uma única sequência, só no topo */
@media (prefers-reduced-motion: no-preference) {
  .heroi__logo, .heroi__lead, .heroi__fatos, .heroi__texto > .botao { animation: sobe .6s var(--facil) both; }
  .heroi__logo { animation-delay: .05s; }
  .heroi__lead { animation-delay: .15s; }
  .heroi__fatos { animation-delay: .25s; }
  .heroi__texto > .botao { animation-delay: .35s; }
  .rosto__foto { animation: sobe-foto .8s var(--facil) .2s both; }
  .rosto__legenda { animation: pop .5s var(--facil) .85s both; }
  .rosto .ad--raio-a, .heroi .ad--raio-b, .heroi .ad--raio-c { animation: raio .5s var(--facil) .9s both; }
  @keyframes sobe { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes sobe-foto { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
  @keyframes raio { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
}

/* ---------- Depoimentos (faixa índigo) ---------- */
.depo { background: var(--indigo); color: var(--branco); --foco: #fff; padding-block: .5rem 4rem; }
.depo h2, .faixa-edital h2 { margin: 0 0 1.75rem; text-align: center; font: 600 clamp(1.9rem, 4.6vw, 2.8rem)/1.1 var(--f-titulo); }
.depo h2::after {
  content: ""; display: block; width: 5rem; height: 1rem; margin: .6rem auto 0;
  background: url("/assets/img/onda-curta.svg") center / contain no-repeat;
}

/* Carrossel de reels: um vídeo no centro, um de cada lado, rolagem infinita. */
.reels {
  --w: clamp(11.5rem, 56vw, 21rem);
  --passo: calc(var(--w) * .95);
  position: relative; overflow: hidden;
  padding-block: .75rem 1.5rem;
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.reels__palco { position: relative; height: calc(var(--w) * 16 / 9); }
.reel {
  position: absolute; top: 0; left: 50%;
  width: var(--w); height: 100%;
  transform: translateX(calc(-50% + var(--off, 0) * var(--passo))) scale(var(--esc, 1));
  transition: transform .5s var(--facil), opacity .4s ease, visibility 0s;
}
.reel--centro { --esc: 1; z-index: 3; }
.reel--lado { --esc: .8; z-index: 2; opacity: .8; }
.reel--fora {
  --esc: .6; z-index: 1; opacity: 0; visibility: hidden;
  transition: transform .5s var(--facil), opacity .4s ease, visibility 0s .5s;
}
.reel__caixa {
  position: absolute; inset: 0; overflow: hidden;
  background: #000; border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 12px 24px -12px rgba(5, 4, 40, .6);
  transition: box-shadow .4s ease;
}
.reel--centro .reel__caixa { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 28px 48px -18px rgba(5, 4, 40, .75); }
.reel__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.reel__acao { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.reel__acao:focus-visible { outline: 4px solid #fff; outline-offset: -6px; border-radius: 24px; }

/* Ícone de "tocar" no vídeo do centro quando ele está parado. */
.reel__play { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; }
.reel--centro.reel--pausado .reel__play { display: grid; }
.reel__play-bola {
  display: grid; place-items: center; width: 4.25rem; height: 4.25rem;
  background: #fff; color: var(--coral-tinta);
  border-radius: 50%; box-shadow: 0 12px 24px -8px rgba(5, 4, 40, .6);
}
.reel__play-bola svg { width: 1.9rem; height: 1.9rem; margin-left: .2rem; }

.reel__barra { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .35); pointer-events: none; }
.reel__barra i { display: block; width: 0; height: 100%; background: var(--amarelo); transition: width .3s linear; }
.reel:not(.reel--centro) .reel__barra { display: none; }

/* No canto de cima: as legendas gravadas nos reels ficam no terço de baixo. */
.reel__som {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.75rem; padding: .35rem 1rem;
  font: 700 .95rem/1 var(--f-texto);
  color: #fff; background: rgba(15, 14, 84, .8);
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition-property: background-color, scale; transition-duration: 150ms; transition-timing-function: ease-out;
}
@media (hover: hover) { .reel__som:hover { background: rgba(15, 14, 84, .95); } }
.reel__som:active { scale: .96; }
.reel__som:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; }

.reels__nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: .5rem; }
.reels__seta {
  display: grid; place-items: center; flex: none; width: 3rem; height: 3rem;
  color: #fff; background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 50%; cursor: pointer;
  transition-property: background-color, scale; transition-duration: 150ms; transition-timing-function: ease-out;
}
@media (hover: hover) { .reels__seta:hover { background: rgba(255, 255, 255, .26); } }
.reels__seta:active { scale: .96; }
.reels__info { flex: 0 1 18rem; min-width: 0; text-align: center; }
.reels__info p { margin: 0; }
.reels__nome { font: 600 1.25rem/1.25 var(--f-titulo); }
.reels__resultado {
  display: inline-block; margin-top: .4rem !important; padding: .15rem .8rem;
  color: var(--navy); background: var(--amarelo); border-radius: 999px; font-weight: 700;
}
.reels__contagem { margin-top: .35rem !important; color: #D9D6FF; font-size: .95rem; font-variant-numeric: tabular-nums; }
.reels__nome[hidden] + .reels__resultado[hidden] + .reels__contagem { margin-top: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .reel, .reel--fora { transition: none; }
  .reel__barra i { transition: none; }
}

/* ---------- Faixa do edital / resultados (azul-marinho) ---------- */
.faixa-edital { background: var(--navy); color: var(--branco); --foco: #fff; text-align: center; padding-block: 3.5rem 4.5rem; }
.faixa-edital__in { display: grid; justify-items: center; gap: 1.5rem; }
.faixa-edital h2 { margin: 0 0 .6rem; }
.faixa-edital p { margin: 0 auto; max-width: 32rem; font-size: 1.15rem; color: #E4E2FF; }

/* ---------- Rodapé (coral, onda no topo) ---------- */
.rodape { position: relative; background: var(--coral-tinta); color: var(--branco); padding-block: 2.75rem 1.75rem; }
.rodape::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px);
  height: clamp(2rem, 4.5vw, 4rem);
  background: url("/assets/img/onda-coral.svg") center bottom / 100% 100% no-repeat;
}
.rodape__grade { display: grid; gap: 1.75rem 2.5rem; justify-items: center; text-align: center; width: min(100% - 2rem, 46rem); }
.rodape__simbolo { width: 7.5rem; height: auto; }
.rodape__titulo { margin: 0 0 .5rem; font: 600 1.35rem/1.2 var(--f-titulo); letter-spacing: .01em; }
.rodape__grade p { margin: 0; font-size: 1rem; line-height: 1.55; }
.rodape a { text-underline-offset: 3px; }
@media (min-width: 40rem) {
  .rodape__grade { grid-template-columns: auto 1fr 1fr; justify-items: start; text-align: left; align-items: center; }
}
.rodape__redes { display: flex; justify-content: center; gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.rodape__redes a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  color: var(--coral-tinta); background: #fff; border-radius: 50%; text-decoration: none;
  transition-property: transform, scale; transition-duration: 150ms; transition-timing-function: ease-out;
}
@media (hover: hover) { .rodape__redes a:hover { transform: translateY(-2px); } }
.rodape__redes a:active { scale: .96; }
.rodape__copy { margin: 1.25rem auto 0; text-align: center; font-size: .9rem; font-style: italic; color: #FFF; }

/* ---------- Cartão e formulário ---------- */
.pagina { padding-block: 1rem 5.5rem; }
.pagina:has(.cartao--sucesso, .cartao--aviso) { padding-top: 3rem; }
.cartao {
  width: min(100% - 2rem, 33rem); margin-inline: auto;
  background: var(--branco); color: var(--tinta);
  border-radius: var(--r-cartao); box-shadow: var(--sombra-cartao);
  padding: 1.5rem 1.25rem 1.75rem;
}
@media (min-width: 40rem) { .cartao { padding: 2rem 2.25rem 2.25rem; } }
.cartao__logo { width: clamp(8rem, 38%, 10.5rem); height: auto; margin: 0 auto 1rem; }
.cartao h1 { margin: 0 0 .5rem; font: 600 1.6rem/1.2 var(--f-titulo); }
.cartao__sub { margin: 0 0 1.5rem; color: var(--tinta-suave); }

.etapa-info { margin: 0 0 .5rem; font-weight: 600; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
.trilha { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.trilha li { height: .5rem; background: #CFCDEE; border-radius: 999px; transition: background-color .25s ease; }
.trilha li.feita { background: var(--indigo); }
.trilha li.ativa { background: var(--coral-tinta); }

.etapa-titulo { margin: 0 0 .35rem; font: 600 1.55rem/1.2 var(--f-titulo); color: var(--navy); }
.etapa-titulo:focus { outline: none; }
.etapa-sub { margin: 0 0 1.5rem; color: var(--tinta-suave); }

.campo { display: grid; gap: .4rem; margin: 0 0 1.2rem; border: 0; padding: 0; min-width: 0; }
.campo > label, .campo > legend { font-weight: 600; padding: 0; }
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo select {
  width: 100%; min-height: 3.25rem; padding: .7rem 1rem;
  font: inherit; font-size: 1rem; color: var(--tinta);
  background: #fff; border: 1.5px solid var(--borda-campo); border-radius: var(--r-campo);
  transition-property: border-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out;
}
.campo input::placeholder { color: #6B6E96; opacity: 1; }
.campo select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2318177F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.05rem;
}
.campo input:hover, .campo select:hover { border-color: var(--navy); }
.campo input:focus, .campo select:focus { outline: 3px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
.campo.invalido input, .campo.invalido select, .campo input[aria-invalid="true"], .campo select[aria-invalid="true"] { border-color: var(--erro); border-width: 2px; }
.campo__dica { margin: 0; color: var(--tinta-suave); font-size: .95rem; }
.erro { margin: 0; color: var(--erro); font-weight: 600; font-size: .95rem; }
.erro:empty { display: none; }

.escolhas { display: flex; flex-wrap: wrap; gap: .6rem; }
.escolhas label { position: relative; display: block; }
.escolhas input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.escolhas span {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .55rem 1.25rem;
  background: #fff; border: 1.5px solid var(--borda-campo); border-radius: var(--r-campo); font-weight: 600;
  transition-property: background-color, border-color, color; transition-duration: 150ms; transition-timing-function: ease-out;
}
.escolhas label:hover span { border-color: var(--navy); }
.escolhas input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.escolhas input:checked + span::before {
  content: ""; width: 1rem; height: 1rem; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.escolhas input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 2px; }
.campo.invalido .escolhas span { border-color: var(--erro); }

.aceite { display: flex; align-items: flex-start; gap: .75rem; font-weight: 500; }
.aceite input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; flex: none; accent-color: var(--indigo); }
.aceite a { font-weight: 700; color: var(--indigo); text-underline-offset: 3px; }

.separador { margin: 1.75rem 0 1.25rem; padding: 1.25rem 1.1rem .25rem; background: var(--lavanda); border-radius: 24px; }
.separador h3 { margin: 0 0 .25rem; font: 600 1.25rem/1.3 var(--f-titulo); color: var(--navy); }
.separador p { margin: 0 0 1rem; color: var(--tinta-suave); }

.acoes { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.acoes .botao { flex: 1 1 10rem; }
.mensagem-form { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--r-campo); color: var(--erro); font-weight: 600; background: #FFF0EF; box-shadow: 0 0 0 1.5px var(--erro) inset; }
.mensagem-form:empty { display: none; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sucesso ---------- */
.cartao--sucesso, .cartao--aviso { text-align: center; }
.cartao--sucesso p, .cartao--aviso p { max-width: 28rem; margin-inline: auto; }
.cartao--sucesso .botao, .cartao--aviso .botao { margin-top: 1rem; }
.selo {
  position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin: 0 auto 1rem;
  color: var(--navy); background: var(--amarelo); border-radius: 50%;
  box-shadow: 0 14px 24px -10px rgba(255, 164, 0, .8);
}
.selo svg { width: 2.2rem; height: 2.2rem; }

/* ---------- Edital ---------- */
.documento {
  width: min(100% - 2rem, 48rem); margin: 1rem auto 5.5rem;
  background: var(--branco); color: var(--tinta);
  border-radius: var(--r-cartao); box-shadow: var(--sombra-cartao);
  padding: 1.5rem 1.25rem 1.75rem;
}
@media (min-width: 40rem) { .documento { padding: 2.5rem 2.75rem 2.75rem; } }
.documento h1 { margin: 0 0 1.25rem; font: 600 clamp(1.45rem, 3.6vw, 1.9rem)/1.2 var(--f-titulo); color: var(--navy); }
.documento h2 {
  margin: 2.25rem 0 .75rem; font: 600 1.35rem/1.25 var(--f-titulo); color: var(--indigo);
  display: flex; align-items: center; gap: .6rem;
}
.documento h2::before { content: ""; flex: none; width: .5rem; height: 1.4rem; background: var(--amarelo); border-radius: 999px; }
.documento h3 { margin: 1.5rem 0 .4rem; font: 600 1.15rem/1.3 var(--f-titulo); color: var(--navy); }
.documento p { margin: 0 0 .9rem; }
.documento ol { padding-left: 1.4rem; }
.documento li { margin-bottom: .6rem; }
.tabela-bolsas { width: 100%; max-width: 22rem; border-collapse: separate; border-spacing: 0; margin: .5rem 0 1rem; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px #D7D5F5; }
.tabela-bolsas th, .tabela-bolsas td { padding: .65rem 1rem; text-align: center; }
.tabela-bolsas th { background: var(--coral-tinta); color: #fff; font: 600 1.05rem/1.3 var(--f-titulo); }
.tabela-bolsas tbody tr:nth-child(even) td { background: var(--lavanda); }
.tabela-bolsas td { font-weight: 600; font-variant-numeric: tabular-nums; }
.a-definir { background: #FFF3B0; border-radius: 8px; padding: .05rem .4rem; font-weight: 700; box-shadow: 0 0 0 1.5px #E0B800 inset; }
.documento__acoes { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* ---------- Resultados ---------- */
.resultados { position: relative; overflow: hidden; padding-block: .5rem 5.5rem; color: var(--branco); --foco: #fff; }
.resultados__cab { position: relative; z-index: 2; text-align: center; margin-bottom: 1.75rem; }
.resultados__cab h2 { margin: 0 0 .35rem; font: 600 1.35rem/1.3 var(--f-titulo); }
.resultados__cab p { margin: 0 auto; max-width: 38rem; color: #E4E2FF; }

/* Ainda não publicado */
.aviso-resultado { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 1rem; padding-block: 1.5rem 1rem; }
.aviso-resultado h2 { margin: 0; font: 600 clamp(2rem, 5.4vw, 3rem)/1.12 var(--f-titulo); max-width: 20ch; }
.aviso-resultado p { margin: 0; max-width: 34rem; font-size: 1.15rem; }
.aviso-resultado a:not(.botao) { text-underline-offset: 3px; }
.aviso-resultado .botao { margin-top: .75rem; }

/* Publicado */
.painel { position: relative; z-index: 2; background: var(--branco); color: var(--tinta); border-radius: var(--r-cartao); box-shadow: var(--sombra-cartao); padding: 1.25rem; }
@media (min-width: 40rem) { .painel { padding: 1.75rem 2rem 2rem; } }
.painel .campo { margin: 0 0 1.25rem; max-width: 26rem; }
.painel .campo__dica { margin-bottom: .9rem; }
.busca { margin: 0 0 1.5rem; }
.grupo-resultado { margin: 0 0 1.75rem; }
.grupo-resultado h2 { margin: 0 0 .75rem; font: 600 1.35rem/1.3 var(--f-titulo); color: var(--navy); }
.tabela-wrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px #D7D5F5; -webkit-overflow-scrolling: touch; }
.tabela-resultado { width: 100%; border-collapse: collapse; font-size: .98rem; }
.tabela-resultado caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabela-resultado th, .tabela-resultado td { padding: .6rem .7rem; text-align: left; vertical-align: top; }
@media (min-width: 40rem) { .tabela-resultado th, .tabela-resultado td { padding-inline: 1rem; } }
.tabela-resultado thead th { background: var(--coral-tinta); color: #fff; font: 600 .98rem/1.3 var(--f-titulo); }
.tabela-resultado tbody tr:nth-child(even) { background: var(--lavanda); }
.tabela-resultado td { font-variant-numeric: tabular-nums; }
.tabela-resultado td:first-child { font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.tabela-resultado td.nota { font-weight: 700; }
.aviso-demo { margin: 0 0 1.25rem; padding: .6rem .9rem; background: #FFF3B0; border-radius: var(--r-campo); font-weight: 600; box-shadow: 0 0 0 1.5px #E0B800 inset; }
.painel .carregando { margin: 0; color: var(--tinta-suave); }

.resultados .ad--bola-a { left: 21%; top: 56%; width: 1.5rem; height: 1.5rem; }
.resultados .ad--bola-b { right: 12%; top: 40%; width: 1.2rem; height: 1.2rem; }
.resultados .ad--raio-a { left: 11%; top: 34%; width: 3rem; rotate: -12deg; }
.resultados .ad--zigue-a { right: 22%; top: 58%; width: 3.4rem; rotate: -22deg; }
.resultados .ad--rabisco-dir { right: -2%; top: -3rem; width: clamp(12rem, 34vw, 28rem); }
@media (max-width: 47.99rem) { .resultados .ad { display: none; } }

@media print {
  .faixa-revisao, .barra, .rodape, .documento__acoes, .ad { display: none !important; }
  body { background: #fff; display: block; min-height: 0; }
  .documento { box-shadow: none; border-radius: 0; margin: 0; width: 100%; padding: 0; }
}
