/* =========================================================
   Rede São Roque · Landing institucional (Concentra 2026)
   Fonte Baloo 2 e cores oficiais. O cadastro usa js/portal.js
   (API, lista pesquisável e Turnstile); as telas abrem pelas âncoras.
   ========================================================= */

:root {
  --laranja: rgb(248 156 37);
  --azul: rgb(14 59 103);
  --verde: rgb(57 191 115);
  --azul-vivo: rgb(0 89 250);
  --laranja-forte: rgb(204 126 45);
  --azul-cinza: rgb(42 79 119);
  --branco: rgb(254 254 254);
  --cinza: rgb(225 225 225);
  --roxo: rgb(75 0 130);

  --texto: var(--azul);
  --texto-suave: rgb(42 79 119 / .78);
  --linha: rgb(14 59 103 / .1);
  --fundo-cinza: rgb(14 59 103 / .06);
  --fundo-claro: rgb(244 247 251);

  --largura: 520px;          /* largura do painel de cadastro */
  --conteudo: 1120px;        /* largura máxima das seções */
  --barra: 76px;             /* altura do botão fixo da roleta */
  --raio: 18px;
  --fonte: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  font-family: var(--fonte);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.45;
  background: var(--branco);
  padding-bottom: calc(var(--barra) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes gira { to { transform: rotate(360deg); } }

.envelope { width: min(100% - 32px, var(--conteudo)); margin-inline: auto; }

/* ===================== TOPO ===================== */
.topo {
  position: sticky; top: 0; z-index: 30;
  background: rgb(254 254 254 / .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha);
}
.topo .envelope { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.topo__logo img { height: 36px; width: auto; }
.topo__menu { display: none; gap: 22px; font-weight: 600; font-size: 15px; }
.topo__menu a { opacity: .8; }
.topo__menu a:hover { opacity: 1; color: var(--azul-vivo); }
.topo .btn { min-height: 40px; padding-inline: 14px; }
@media (min-width: 900px) { .topo__menu { display: flex; } }

/* ===================== TÍTULOS ===================== */
.secao { padding: 64px 0; }
.secao--clara { background: var(--fundo-claro); }
.etiqueta {
  display: inline-block;
  padding: 4px 12px 2px;
  border-radius: 999px;
  background: rgb(248 156 37 / .16);
  color: var(--laranja-forte);
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.titulo { font-size: clamp(30px, 6vw, 44px); font-weight: 800; line-height: 1.02; margin: 10px 0 10px; text-wrap: balance; }
.titulo span { color: var(--laranja); }
.lead { max-width: 60ch; font-size: 17px; color: var(--texto-suave); }
.secao__cab { margin-bottom: 30px; }

/* ===================== HERÓI ===================== */
.heroi {
  position: relative;
  color: var(--branco);
  background: var(--azul);
  overflow: hidden;
  isolation: isolate;
}
.heroi__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.heroi::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(14 59 103 / .55) 0%, rgb(14 59 103 / .82) 55%, var(--azul) 100%),
    linear-gradient(90deg, rgb(14 59 103 / .7), transparent 70%);
}
.heroi .envelope { padding: 72px 0 56px; }
.heroi__selo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 3px 10px; border-radius: 999px;
  background: var(--laranja); color: var(--azul);
  font-weight: 800; font-size: 14px;
}
.pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--azul); animation: pulso 1.6s ease-out infinite; margin-top: -2px; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgb(14 59 103 / .6); } 100% { box-shadow: 0 0 0 9px rgb(14 59 103 / 0); } }
.heroi h1 { font-size: clamp(40px, 9vw, 72px); font-weight: 800; line-height: .98; margin: 16px 0 14px; max-width: 13ch; text-wrap: balance; }
.heroi h1 span { color: var(--laranja); }
.heroi p { max-width: 46ch; font-size: 18px; opacity: .92; }
.heroi__botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.heroi__botoes .btn { min-height: 52px; padding-inline: 20px; font-size: 16.5px; }
.btn--conheca { box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.btn--conheca svg { color: var(--laranja-forte); stroke-width: 2.6; }
.btn--conheca:hover { background: var(--laranja); color: var(--azul); }
.btn--conheca:hover svg { color: var(--azul); }

/* Números */
.numeros {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: 44px;
  max-width: 760px;
}
.numeros li {
  padding: 16px 16px 12px;
  border-radius: var(--raio);
  background: rgb(254 254 254 / .1);
  border: 1px solid rgb(254 254 254 / .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.numeros strong { display: block; font-size: clamp(30px, 7vw, 42px); font-weight: 800; line-height: 1; color: var(--laranja); font-variant-numeric: tabular-nums; }
.numeros span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.2; opacity: .9; }
@media (max-width: 400px) { .numeros li { padding: 14px 10px 10px; } .numeros span { font-size: 13px; } }

/* ===================== OPERAÇÕES ===================== */
.operacoes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.operacoes > * { min-width: 0; }
.servicos { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.servico {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px 12px;
  border-radius: 16px;
  background: var(--branco);
  border: 1px solid var(--linha);
  font-weight: 700; font-size: 15px; line-height: 1.15;
}
.servico__icone {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgb(0 89 250 / .09); color: var(--azul-vivo);
}
.servico__icone svg { width: 22px; height: 22px; }
.mosaico { display: grid; grid-template-columns: 1fr; }
.mosaico figure { position: relative; border-radius: var(--raio); overflow: hidden; aspect-ratio: 1; background: var(--fundo-cinza); }
.mosaico figure { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .mosaico figure { aspect-ratio: 1; } }
.mosaico img { width: 100%; height: 100%; object-fit: cover; }
.mosaico figcaption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 4px 10px 2px; border-radius: 999px;
  background: rgb(14 59 103 / .82); color: var(--branco);
  font-size: 13px; font-weight: 700;
}
@media (min-width: 900px) {
  .operacoes { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px; }
  .servicos { gap: 12px; }
}

/* ===================== BRAÇOS DA REDE ===================== */
.bracos { list-style: none; display: grid; gap: 16px; }
.braco {
  display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: var(--branco);
  border: 1px solid var(--linha);
  box-shadow: 0 10px 30px rgb(14 59 103 / .07);
}
.braco__capa {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--cor);
  color: var(--cor-texto, var(--branco));
  overflow: hidden;
  display: grid; place-items: center;
}
.braco__capa img.braco__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.braco__capa::after { /* grafismo S aramado */
  content: ""; position: absolute; right: -40px; top: -30px; width: 60%; height: 160%;
  background: url("../img/s-aramado.svg") center / contain no-repeat;
  opacity: .35;
}
.braco__capa:has(.braco__foto)::after { display: none; }
.braco__simbolo {
  position: relative; z-index: 1;
  width: 84px; height: 84px; display: grid; place-items: center;
  border-radius: 24px; background: rgb(254 254 254 / .16);
  border: 1px solid rgb(254 254 254 / .3);
}
.braco__simbolo svg { width: 44px; height: 44px; stroke-width: 1.8; }
.braco__corpo { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.braco__marca { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--texto-suave); }
.braco__marca::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--cor); }
.braco h3 { font-size: 24px; line-height: 1.05; font-weight: 800; }
.braco p { color: var(--texto-suave); }
.braco__itens { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.braco__itens li { padding: 3px 10px 1px; border-radius: 999px; background: var(--fundo-cinza); font-size: 13px; font-weight: 700; }
@media (min-width: 680px) { .bracos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .bracos { grid-template-columns: repeat(4, 1fr); } .braco h3 { font-size: 22px; } }

/* ===================== CTA ROLETA ===================== */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--branco);
  background:
    radial-gradient(90% 80% at 15% 0%, var(--azul-cinza), transparent 70%),
    var(--azul);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/s-aramado.svg") right -140px top -40px / auto 115% no-repeat;
  opacity: .14;
}
.cta .envelope { padding: 64px 0 60px; }
.cta__roda {
  width: 112px; height: 112px; margin: 0 auto 18px;
  border-radius: 50%;
  border: 6px solid var(--branco);
  background:
    repeating-conic-gradient(rgb(254 254 254 / .9) 0 2deg, transparent 2deg 45deg),
    conic-gradient(var(--laranja) 0 45deg, var(--azul) 0 90deg, var(--verde) 0 135deg, var(--azul-vivo) 0 180deg, var(--laranja-forte) 0 225deg, var(--azul-cinza) 0 270deg, var(--roxo) 0 315deg, var(--laranja) 0);
  box-shadow: 0 14px 40px rgb(0 0 0 / .35);
  position: relative;
  animation: gira 5s linear infinite;
}
.cta__roda::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; background: var(--branco); box-shadow: inset 0 0 0 4px var(--laranja); }
.cta h2 { font-size: clamp(34px, 7vw, 52px); font-weight: 800; line-height: 1; text-wrap: balance; }
.cta h2 span { color: var(--laranja); }
.cta > .envelope > p { max-width: 44ch; margin: 12px auto 26px; font-size: 17px; opacity: .9; }
.cta .dinamica { max-width: 640px; margin-inline: auto; margin-bottom: 26px; }
.cta .cta__botao { width: min(100%, 420px); min-height: 58px !important; font-size: 18px !important; box-shadow: 0 10px 30px rgb(248 156 37 / .35); }
.cta__nota { margin-top: 12px; font-size: 13px; opacity: .75; }

/* ===================== RODAPÉ ===================== */
.rodape { background: rgb(9 41 73); color: var(--branco); }
.rodape .envelope { padding: 40px 0 32px; display: grid; gap: 22px; }
.rodape__logo img { height: 42px; width: auto; }
.rodape p { opacity: .8; font-size: 15px; max-width: 40ch; }
.rodape__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rodape__links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 7px; border-radius: 12px;
  background: rgb(254 254 254 / .08); font-weight: 700; font-size: 15px;
}
.rodape__links a:hover { background: rgb(254 254 254 / .16); }
.rodape__links svg { width: 18px; height: 18px; margin-top: -2px; }
.rodape__legal { font-size: 13px !important; opacity: .55 !important; }
@media (min-width: 900px) { .rodape .envelope { grid-template-columns: 1fr auto; align-items: center; } .rodape__legal { grid-column: 1 / -1; } }

/* ===================== BOTÃO FIXO DA ROLETA (lá embaixo) ===================== */
.barra-roleta {
  position: fixed; z-index: 40;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(254 254 254 / .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--linha);
  box-shadow: 0 -8px 24px rgb(14 59 103 / .08);
}
.barra-roleta a {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: min(100%, 520px); min-height: 56px; margin-inline: auto;
  padding: 6px 18px 4px 8px;
  border-radius: 16px;
  background: var(--laranja); color: var(--azul);
  font-weight: 800; font-size: 17px; line-height: 1.05;
  box-shadow: 0 0 0 0 rgb(248 156 37 / .5);
  animation: chama 2.2s ease-out infinite;
}
.barra-roleta a:hover { background: rgb(250 168 60); }
.barra-roleta a:active { transform: scale(.98); }
.barra-roleta small { display: block; font-size: 13px; font-weight: 600; opacity: .8; }
.barra-roleta__roda {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--branco);
  background: conic-gradient(var(--laranja) 0 45deg, var(--azul) 0 90deg, var(--verde) 0 135deg, var(--azul-vivo) 0 180deg, var(--laranja-forte) 0 225deg, var(--azul-cinza) 0 270deg, var(--roxo) 0 315deg, var(--laranja) 0);
  animation: gira 3s linear infinite;
}
.barra-roleta__seta { margin-left: auto; width: 22px; height: 22px; stroke-width: 2.6; }
@keyframes chama {
  0% { box-shadow: 0 0 0 0 rgb(248 156 37 / .55); }
  80%, 100% { box-shadow: 0 0 0 12px rgb(248 156 37 / 0); }
}
body:has(.painel:target, .ancora:target) .barra-roleta { display: none; }
body:has(.painel:target, .ancora:target) { overflow: hidden; }

@media (max-width: 360px) {
  .servicos { grid-template-columns: 1fr; }
  .campos { grid-template-columns: 1fr; }
  .painel__titulo { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulso, .cta__roda, .barra-roleta a, .barra-roleta__roda, .dinamica__icone--roda, .painel:target, .check { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===================== CADASTRO (igual à página de perfil) ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px 6px;
  border-radius: 12px;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  border: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease, opacity .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; margin-top: -2px; }
.btn--laranja { background: var(--laranja); color: var(--azul); }
.btn--laranja:hover { background: rgb(250 168 60); }
.btn--cinza { background: var(--fundo-cinza); color: var(--azul); }
.btn--cinza:hover { background: rgb(14 59 103 / .11); }
.btn--azul { background: var(--azul); color: var(--branco); }
.btn--azul:hover { background: var(--azul-cinza); }
.btn--branco { background: var(--branco); color: var(--azul); }
.btn--icone { width: 40px; padding: 0; }
.btn--largo { white-space: normal; width: 100%; min-height: 48px; font-size: 16px; }
.sheet__nota { font-size: 12.5px; color: var(--texto-suave); margin-bottom: 18px; }
.sheet__botoes { display: grid; gap: 8px; }

@keyframes aparece { from { opacity: 0; } }
@keyframes sobe { from { transform: translateY(100%); } }

/* ===================== CADASTRO / CONFIRMAÇÃO ===================== */
.painel {
  position: fixed;
  z-index: 60;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--largura));
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--branco);
  background:
    url("../img/s-aramado.svg") right -90px top 40px / auto 520px no-repeat,
    radial-gradient(120% 60% at 50% 0%, var(--azul-cinza), transparent 70%),
    var(--azul);
}
.painel:target,
.painel:has(.ancora:target) { display: block; animation: aparece .3s ease both; }

.painel__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 12px 0;
}
.voltar {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgb(254 254 254 / .1);
}
.voltar:hover { background: rgb(254 254 254 / .2); }
.voltar svg { width: 22px; height: 22px; }
.voltar--vazio { background: none; }
.painel__logo { height: 40px; width: auto; }

.painel__conteudo { padding: 10px 16px 40px; text-align: center; }
.painel__conteudo--centro {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 48px;
}
.painel__chamada {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px 2px;
  border-radius: 999px;
  background: rgb(254 254 254 / .12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.painel__titulo {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin: 10px 0 8px;
  text-wrap: balance;
}
.painel__titulo span { color: var(--laranja); }
.painel__sub {
  max-width: 34ch;
  margin: 0 auto 22px;
  font-size: 15.5px;
  opacity: .88;
}

/* Como funciona (cadastro → mesa → roleta) */
.dinamica {
  list-style: none;
  counter-reset: passo;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 18px;
  text-align: center;
}
.dinamica__passo {
  counter-increment: passo;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 14px 6px 12px;
  border-radius: 16px;
  background: var(--azul-cinza);
  border: 1px solid rgb(254 254 254 / .14);
  box-shadow: 0 8px 20px rgb(0 0 0 / .18);
  line-height: 1.15;
}
.dinamica__passo:nth-child(odd)::after { /* seta entre os passos da mesma linha */
  content: "";
  position: absolute;
  z-index: 1;
  top: 34px;
  right: -9px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--laranja);
  border-right: 2px solid var(--laranja);
  transform: rotate(45deg);
}
.dinamica__passo::before { /* número do passo */
  content: counter(passo);
  position: absolute;
  top: 8px; left: 8px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  padding-top: 2px;
  border-radius: 50%;
  background: rgb(254 254 254 / .15);
  font-size: 11px;
  font-weight: 800;
}
.dinamica__passo--atual { border-color: var(--laranja); box-shadow: inset 0 0 0 1px var(--laranja), 0 8px 20px rgb(0 0 0 / .18); }
.dinamica__passo--atual::before { background: var(--laranja); color: var(--azul); }
.dinamica__icone {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--branco);
  color: var(--azul);
}
.dinamica__icone svg { width: 22px; height: 22px; }
.dinamica__icone--roda {
  border: 3px solid var(--branco);
  background: conic-gradient(var(--laranja) 0 45deg, var(--azul) 0 90deg, var(--verde) 0 135deg, var(--azul-vivo) 0 180deg, var(--laranja-forte) 0 225deg, var(--azul-cinza) 0 270deg, var(--roxo) 0 315deg, var(--laranja) 0);
  animation: gira 4s linear infinite;
}
.dinamica__passo strong { font-size: 14.5px; font-weight: 800; }
.dinamica__passo > span:last-child { font-size: 12px; opacity: .85; }
@media (max-width: 360px) {
  .dinamica { gap: 6px; }
  .dinamica__passo { padding-inline: 4px; }
  .dinamica__passo strong { font-size: 13px; }
  .dinamica__passo > span:last-child { font-size: 11px; }
  .dinamica__icone { width: 36px; height: 36px; }
}

@media (min-width: 440px) {
  .dinamica { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .dinamica__passo:not(:last-child)::after { content: ""; }
  .dinamica__passo:nth-child(2)::after {
    content: "";
    position: absolute; z-index: 1; top: 34px; right: -8px;
    width: 10px; height: 10px;
    border-top: 2px solid var(--laranja); border-right: 2px solid var(--laranja);
    transform: rotate(45deg);
  }
  .dinamica__passo strong { font-size: 13.5px; }
  .dinamica__passo > span:last-child { font-size: 11.5px; }
}

/* Formulário */
.cadastro {
  text-align: left;
  background: var(--branco);
  color: var(--azul);
  border-radius: 20px;
  padding: 18px 16px 16px;
  box-shadow: 0 18px 40px rgb(0 0 0 / .25);
}
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.campo { display: grid; gap: 4px; font-size: 13px; font-weight: 700; min-width: 0; }
.campo--inteiro { grid-column: 1 / -1; }
.campo small { font-weight: 500; color: var(--texto-suave); font-size: 12px; }
.campo input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 4px 12px 0;
  font: 500 16px/1 var(--fonte);
  color: var(--azul);
  background: var(--fundo-cinza);
  border: 2px solid transparent;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.campo input::placeholder { color: rgb(14 59 103 / .38); }
.campo input:focus { border-color: var(--azul-vivo); background: var(--branco); }
.campo input:user-invalid { border-color: rgb(214 69 65); background: rgb(214 69 65 / .06); }
.campo input:valid:not(:placeholder-shown) { border-color: var(--verde); }

/* Lista de empresas juniores */
.campo__select { position: relative; display: block; }
.campo__select::after {
  content: "";
  position: absolute;
  top: 50%; right: 16px;
  width: 9px; height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--azul);
  border-bottom: 2px solid var(--azul);
  transform: rotate(45deg);
  pointer-events: none;
}
.campo select {
  width: 100%;
  height: 46px;
  padding: 4px 40px 0 12px;
  font: 500 16px/1 var(--fonte);
  color: var(--azul);
  background: var(--fundo-cinza);
  border: 2px solid transparent;
  border-radius: 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.campo select:focus { border-color: var(--azul-vivo); background-color: var(--branco); }
.campo select:invalid { color: rgb(14 59 103 / .45); }
.campo select:valid { border-color: var(--verde); }
.campo select option { color: var(--azul); }
.campo--outra, .campo--outro-curso { display: none; }
.cadastro:has(#f-ej option[value="outra"]:checked) .campo--outra,
.cadastro:has(#f-curso option[value="outro"]:checked) .campo--outro-curso { display: grid; }

.aceite {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  font-size: 13px;
  color: var(--azul-cinza);
  cursor: pointer;
}
.aceite input {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  accent-color: var(--laranja-forte);
}

.btn--enviar { min-height: 52px; font-size: 17px; }
.btn--enviar:focus-visible { outline: 3px solid var(--azul-vivo); outline-offset: 2px; }
.cadastro:invalid .btn--enviar { opacity: .5; filter: grayscale(.4); cursor: not-allowed; }
.cadastro__dica {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--texto-suave);
}
.cadastro:valid .cadastro__dica { visibility: hidden; }

/* Confirmação: próximos passos */
.proximos {
  list-style: none;
  counter-reset: px;
  width: min(100%, 320px);
  margin: 0 auto 24px;
  display: grid;
  gap: 8px;
  text-align: left;
}
.proximos li {
  counter-increment: px;
  position: relative;
  padding: 10px 12px 8px 50px;
  border-radius: 14px;
  background: var(--azul-cinza);
  font-size: 14.5px;
  line-height: 1.2;
}
.proximos li::before {
  content: counter(px);
  position: absolute;
  left: 12px; top: 50%;
  width: 26px; height: 26px;
  margin-top: -13px;
  display: grid; place-items: center;
  padding-top: 2px;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--azul);
  font-weight: 800;
  font-size: 13px;
}
.proximos .proximos__agora { box-shadow: inset 0 0 0 2px var(--laranja); }
.proximos .proximos__feito { opacity: .7; }
.proximos .proximos__feito::before { content: "✓"; background: var(--verde); }

/* Confirmação */
.check {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde);
  color: var(--azul);
  box-shadow: 0 0 0 10px rgb(57 191 115 / .18);
  margin-bottom: 18px;
  animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both;
}
.check svg { width: 44px; height: 44px; stroke-width: 3; }
.painel--ok .sheet__botoes { width: min(100%, 320px); }
.btn--transparente { background: rgb(254 254 254 / .1); color: var(--branco); }
.btn--transparente:hover { background: rgb(254 254 254 / .2); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.codigo__input {
  height: 64px !important;
  text-align: center;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: .4em;
  padding-left: .4em !important;
  font-variant-numeric: tabular-nums;
}
.codigo .btn--enviar { margin-top: 14px; }
.codigo__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}
.codigo__links a { color: var(--azul-vivo); }
.codigo__links a:hover { text-decoration: underline; }
.aviso {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
.aviso--erro { background: rgb(214 69 65 / .1); color: rgb(176 46 42); }
.aviso--ok { background: rgb(57 191 115 / .14); color: var(--azul); }
#codigo-invalido:target ~ .painel__conteudo .aviso--erro,
#codigo-reenviado:target ~ .painel__conteudo .aviso--ok { display: block; }
#codigo-invalido:target ~ .painel__conteudo .codigo__input { border-color: rgb(214 69 65); }

.totem-aviso {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 320px);
  margin: -8px auto 22px;
  padding: 10px 12px 8px;
  border-radius: 14px;
  background: rgb(254 254 254 / .1);
  font-size: 14px;
  text-align: left;
}
.totem-aviso svg { flex: none; width: 24px; height: 24px; color: var(--laranja); }

/* ===================== PAINEL DE CADASTRO (ajustes da landing) ===================== */
.painel { left: 0; right: 0; transform: none; width: 100%; }
.painel__topo, .painel__conteudo { width: min(100%, var(--largura)); margin-inline: auto; }
.painel--ok .painel__conteudo--centro { min-height: 100vh; }

@media (max-width: 360px) {
  .campos { grid-template-columns: 1fr; }
  .painel__titulo { font-size: 34px; }
}

/* ===================== CADASTRO: comportamento do js/portal.js ===================== */
.aviso--visivel { display: block; }
.codigo__links a[aria-disabled="true"] { color: var(--texto-suave); pointer-events: none; }
.btn--enviar:disabled { opacity: .6; cursor: progress; }

/* Seletor pesquisável (js/seletor.js): botão no lugar do select + janela com busca */
.seletor-nativo {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.seletor-gatilho {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 40px 10px 12px;
  font: 500 16px/1.2 var(--fonte);
  color: var(--azul);
  text-align: left;
  background: var(--fundo-cinza);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: border-color .2s ease, background-color .2s ease;
}
.seletor-gatilho:focus-visible { outline: none; border-color: var(--azul-vivo); background: var(--branco); }
.seletor-gatilho--vazio { color: rgb(14 59 103 / .45); }
.campo__select--preenchido .seletor-gatilho { border-color: var(--verde); }
.campo__select:has(.seletor-nativo:user-invalid) .seletor-gatilho { border-color: rgb(214 69 65); background: rgb(214 69 65 / .06); }

.seletor-dialogo {
  width: min(100%, var(--largura));
  max-width: 100%;
  height: min(86dvh, 680px);
  max-height: 86dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--branco);
  color: var(--azul);
  font-family: var(--fonte);
  box-shadow: 0 -10px 40px rgb(0 0 0 / .25);
}
.seletor-dialogo[open] { display: flex; flex-direction: column; animation: seletor-sobe .25s ease-out both; }
.seletor-dialogo::backdrop { background: rgb(14 59 103 / .45); backdrop-filter: blur(3px); }
@keyframes seletor-sobe { from { translate: 0 30%; opacity: 0; } }
.seletor-dialogo__topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 16px 8px 20px;
}
.seletor-dialogo__topo h2 { font-size: 20px; font-weight: 800; }
.seletor-dialogo__fechar {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--fundo-cinza); color: var(--azul);
  cursor: pointer;
}
.seletor-dialogo__fechar svg { width: 20px; height: 20px; }
.seletor-dialogo__busca {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 16px 10px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--fundo-cinza);
  border: 2px solid transparent;
}
.seletor-dialogo__busca:focus-within { border-color: var(--azul-vivo); background: var(--branco); }
.seletor-dialogo__busca svg { width: 20px; height: 20px; flex: none; opacity: .55; }
.seletor-dialogo__busca input {
  flex: 1; min-width: 0; height: 44px;
  border: 0; background: none; outline: none;
  font: 500 16px/1 var(--fonte); color: var(--azul);
}
.seletor-dialogo__lista {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  list-style: none;
  padding: 0 8px calc(16px + env(safe-area-inset-bottom, 0px));
}
.seletor-dialogo__lista li[hidden] { display: none; }
.seletor-opcao {
  display: block; width: 100%;
  min-height: 48px;
  padding: 12px 14px 10px;
  border: 0; border-radius: 10px;
  background: none; color: var(--azul);
  font: 500 16px/1.25 var(--fonte); text-align: left;
  cursor: pointer;
}
.seletor-opcao:hover, .seletor-opcao:focus-visible { outline: none; background: var(--fundo-cinza); }
.seletor-opcao[aria-selected="true"] { background: rgb(248 156 37 / .16); font-weight: 700; }
.seletor-opcao--fixa { font-weight: 700; color: var(--azul-vivo); }
.seletor-dialogo__vazio { padding: 8px 22px 16px; font-size: 14px; color: var(--texto-suave); }

/* Turnstile: só aparece quando a Cloudflare pede interação. Fica por cima do painel aberto. */
.turnstile-caixa {
  position: fixed; z-index: 70;
  left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
}
