/*
 * Componentes das páginas públicas. Neutro de marca: cores, fontes e raios vêm do
 * tema do cliente (public/marcas/{slug}/tema.css). Sem margin entre seções; o
 * espaçamento vertical é por padding.
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--texto);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--destaque); }
a:hover { color: var(--destaque-hover); }
:focus-visible { outline: 3px solid var(--destaque); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--acao); color: var(--acao-texto); }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
main { flex: 1; }

/* ===== Cabeçalho: transparente, divide o degradê com o hero ===== */
.topo-hero { background: var(--fundo-hero, none), var(--bg); position: relative; }
.topo-hero > *, main { position: relative; z-index: 1; }
/* Forma decorativa no canto direito, como nas páginas internas do site: começa abaixo do topo
   e invade o início do conteúdo, por trás dele. Cliente sem forma: --forma-topo: none. */
.topo-hero::after {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    top: 108px; right: 0; width: clamp(200px, 29vw, 420px); aspect-ratio: var(--forma-topo-proporcao, 1);
    background: var(--forma-topo) right top / contain no-repeat;
}
@media (max-width: 640px) { .topo-hero::after { top: 96px; width: 180px; } }
/* Página do processo: o topo é a própria arte, sem forma por cima. */
.topo-hero:has(.hero-imersivo)::after { display: none; }
.topo { background: transparent; }
.topo .container { display: flex; align-items: center; justify-content: center; min-height: 88px; padding-top: 16px; }
.topo-hero:has(.hero-imersivo) .topo .container { min-height: 64px; padding-top: 0; }
@media (min-width: 768px) { .topo-hero:has(.hero-imersivo) .topo .container { min-height: 80px; } }
.topo-logo { text-decoration: none; }
.topo-logo img { height: 36px; width: auto; }
@media (max-width: 767px) { .topo-hero:has(.hero-imersivo) .topo-logo img { height: 30px; } }
.topo-nome { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--texto); }
.topo-link {
    font-family: var(--font-heading); font-weight: 700; font-size: .9rem;
    color: var(--texto-soft); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.topo-link:hover { color: var(--destaque); }

/* ===== Seções ===== */
.secao { padding: 56px 0; }
.topo-hero + main > .secao:first-child { padding-top: 40px; }
main > .secao:last-child { padding-bottom: 120px; }
@media (max-width: 640px) { main > .secao:last-child { padding-bottom: 80px; } }
@media (min-width: 960px) { .topo-hero:has(.hero-imersivo) + main > .secao:first-child { padding-top: 72px; } }
.secao-hero { padding: 40px 0 56px; }
.eyebrow {
    font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
    letter-spacing: .14em; font-size: .8rem; color: var(--destaque);
    display: inline-flex; align-items: center; gap: .5rem; padding-bottom: 12px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--marca-1); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 2.625rem); letter-spacing: -.02em; line-height: 1.1; color: var(--titulo, var(--texto)); }
h2 { font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-weight: 700; font-size: 1.2rem; }
.secao-hero .topo-link { padding-bottom: 16px; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.125rem); color: var(--texto-soft); max-width: 640px; padding-top: 12px; }
.meta { font-size: .875rem; color: var(--texto-soft); }

/* ===== Botões ===== */
.btn {
    font-family: var(--font-heading); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 2rem; border: none; border-radius: var(--radius-pill); cursor: pointer;
    text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
/* CTA primário: cor de ação, "volume" em sombra sólida embaixo e ícone de seta em círculo.
   Texto em 16px/800 (pedido do cliente); o verde vem de --acao (#068752, 4,6:1 com branco: AA). */
.btn-primario {
    background: var(--acao); color: var(--acao-texto); border: 2px solid var(--acao);
    font-weight: 800; font-size: 1rem; letter-spacing: 0;
    padding: 7px 7px 7px 24px; gap: 12px; min-height: 48px;
    box-shadow: 0 5px 0 0 var(--acao-volume);
    transition: transform .22s ease, box-shadow .22s ease;
}
.btn-primario:hover { color: var(--acao-texto); transform: translateY(-2px); box-shadow: 0 7px 0 0 var(--acao-volume); }
.btn-primario:active { transform: translateY(4px); box-shadow: 0 1px 0 0 var(--acao-volume); }
.btn-icone {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff;
    display: inline-grid; place-items: center;
}
.btn-icone::before {
    content: ''; width: 16px; height: 16px; background: var(--acao-volume);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .22s ease;
}
.btn-primario:hover .btn-icone::before { transform: translateX(2px); }

/* ===== Cards ===== */
.grade { display: grid; gap: 24px; }
.grade > * { min-width: 0; }
@media (min-width: 760px) { .grade-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
    background: var(--bg-card); border: 1px solid var(--borda); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) { .card { padding: 24px; border-radius: var(--radius-md); } }
.card-processo { display: flex; flex-direction: column; gap: 12px; position: relative; }
.card-processo .btn { align-self: flex-start; margin-top: auto; }
/* Mesmo hover dos cards do site (nv-curso-card, nv-unidade-card): cresce e inclina 1 grau. */
@media (prefers-reduced-motion: no-preference) {
    .card-processo { transition: transform .25s ease, box-shadow .25s ease; }
    .card-processo:hover, .card-processo:focus-within { transform: scale(1.05) rotate(-1deg); box-shadow: var(--shadow-md); z-index: 2; }
}

/* ===== Breadcrumb (como o das páginas do site: 12px, separador em traço laranja) ===== */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; font-size: .75rem; padding-bottom: 20px; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: '–'; color: var(--marca-1); font-weight: 700; padding: 0 8px; }
.breadcrumb a { color: var(--texto); text-decoration: none; }
.breadcrumb a:hover { color: var(--destaque); text-decoration: underline; }
.breadcrumb [aria-current] { font-weight: 700; color: var(--titulo, var(--texto)); }

/* ===== Topo imersivo da página do processo (referência: Sympla) =====
   A arte do processo vira o fundo, desfocada, sob um véu escuro fixo. A cor muda com a arte;
   o véu garante o contraste do texto com qualquer banner (medido com arte toda branca: 8,4:1). */
.hero-imersivo {
    position: relative; isolation: isolate; overflow: hidden; padding: 0;
    color: #fff; background: var(--hero-base, #0C1418);
}
.hero-imersivo.sem-banner { background: var(--titulo, #151544); }
.hero-fundo { position: absolute; inset: 0; z-index: -1; }
.hero-fundo img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(40px) saturate(1.5) brightness(.8); transform: scale(1.25); }
.hero-fundo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6, 12, 14, .5) 0%, rgba(6, 12, 14, .78) 62%, rgba(6, 12, 14, .86) 100%);
}
@media (min-width: 960px) {
    .hero-fundo::after { background: linear-gradient(90deg, rgba(6, 12, 14, .84) 0%, rgba(6, 12, 14, .66) 45%, rgba(6, 12, 14, .4) 100%); }
}
.hero-grade { display: grid; gap: 28px; padding-top: 20px; padding-bottom: 40px; grid-template-areas: "arte" "texto"; }
@media (min-width: 960px) {
    .hero-grade {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "texto arte";
        align-items: center; gap: clamp(40px, 6vw, 88px); padding-top: 56px; padding-bottom: 72px;
    }
    .sem-banner .hero-grade { grid-template-columns: minmax(0, 1fr); grid-template-areas: "texto"; }
}
.hero-arte { grid-area: arte; position: relative; padding-bottom: 22px; }
.hero-arte img {
    width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm, 16px);
    box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
}
.compartilhar {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
    font: 700 .8125rem/1 var(--font-heading); letter-spacing: .06em; text-transform: uppercase;
    color: var(--titulo, var(--texto)); background: #fff; border: 0; border-radius: var(--radius-pill); cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease;
}
.compartilhar .icone { width: 18px; height: 18px; color: var(--acao); }
.compartilhar:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 12px 26px -6px rgba(0, 0, 0, .5); }
.hero-texto { grid-area: texto; min-width: 0; }
.hero-imersivo .breadcrumb ol { font-size: .8125rem; padding-bottom: 14px; }
.hero-imersivo .breadcrumb a { color: rgba(255, 255, 255, .84); }
.hero-imersivo .breadcrumb a:hover { color: #fff; text-underline-offset: 3px; }
.hero-imersivo .breadcrumb [aria-current] { color: #fff; }
.hero-imersivo h1 { color: #fff; font-size: clamp(2.125rem, 7.5vw, 3.75rem); letter-spacing: -.025em; }
.hero-imersivo .lead { color: rgba(255, 255, 255, .84); max-width: 46ch; /* resumo de até 160 caracteres em 3 linhas no desktop */ font-size: clamp(1.0625rem, 2.2vw, 1.25rem); line-height: 1.5; }
.selos { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding-top: 22px; }
.selo {
    display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px 0 11px;
    border-radius: var(--radius-pill); font: 700 .875rem/1 var(--font-heading); color: #fff;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .24);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.selo .icone { width: 16px; height: 16px; flex-shrink: 0; }
.hero-acao { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 30px; }
.hero-acao .btn-primario { box-shadow: 0 5px 0 0 #0A0F1C; }
.hero-acao .btn-primario:hover { box-shadow: 0 7px 0 0 #0A0F1C; }
.hero-acao .btn-primario:active { box-shadow: 0 1px 0 0 #0A0F1C; }
.hero-nota { font-size: .9375rem; color: rgba(255, 255, 255, .84); }
@media (max-width: 480px) { .hero-acao .btn-primario { width: 100%; justify-content: space-between; } }
/* Um só momento de movimento: a arte sai do desfoque e o texto chega em cascata. */
@media (prefers-reduced-motion: no-preference) {
    .hero-arte img { animation: revelar 1.1s cubic-bezier(.16, 1, .3, 1) both; }
    .compartilhar { animation: subir .8s cubic-bezier(.16, 1, .3, 1) .55s both; }
    .hero-texto > * { animation: entrar .9s cubic-bezier(.16, 1, .3, 1) both; }
    .hero-texto > :nth-child(2) { animation-delay: .08s; }
    .hero-texto > :nth-child(3) { animation-delay: .16s; }
    .hero-texto > :nth-child(4) { animation-delay: .24s; }
    .hero-texto > :nth-child(5) { animation-delay: .32s; }
}
@keyframes revelar { from { opacity: 0; transform: scale(.94); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes subir { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translateX(-50%); } }

/* ===== Página do processo: 60/40 ===== */
.duas-colunas { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .duas-colunas { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: clamp(48px, 6vw, 96px); } }
.texto-processo { font-size: 1.0625rem; }

/* Texto do editor do painel (p, h2-h5, listas, negrito, link): estilo por elemento, sem classe
   no conteúdo, para valer em qualquer processo que o admin montar. */
.conteudo-rico { max-width: 68ch; }
.conteudo-rico > * + * { padding-top: 16px; }
.conteudo-rico h2 { font-size: clamp(1.5rem, 4.4vw, 2rem); font-weight: 800; padding-top: 40px; letter-spacing: -.02em; color: var(--titulo, var(--texto)); }
.conteudo-rico h3 { font-size: clamp(1.25rem, 3.4vw, 1.5rem); font-weight: 800; padding-top: 32px; color: var(--titulo, var(--texto)); }
.conteudo-rico h4, .conteudo-rico h5 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; padding-top: 28px; color: var(--titulo, var(--texto)); }
.conteudo-rico > h2:first-child, .conteudo-rico > h3:first-child, .conteudo-rico > h4:first-child, .conteudo-rico > h5:first-child { padding-top: 0; }
.conteudo-rico :is(h2, h3, h4, h5) + * { padding-top: 12px; }
.conteudo-rico strong { font-weight: 700; color: var(--titulo, var(--texto)); }
.conteudo-rico a { color: var(--destaque); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.conteudo-rico a:hover { color: var(--destaque-hover); text-decoration-thickness: 2px; }
/* Lista: cada item numa linha com separador. O negrito segue inline, como o admin escreveu. */
.conteudo-rico ul, .conteudo-rico ol { list-style: none; }
.conteudo-rico :is(ul, ol) > li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--borda); }
.conteudo-rico :is(ul, ol) > li:first-child { border-top: 1px solid var(--borda); }
.conteudo-rico ul > li::before {
    content: ''; position: absolute; left: 2px; top: calc(12px + .8em - 4px);
    width: 8px; height: 8px; border-radius: 50%; background: var(--marca-1);
}
.conteudo-rico ol { counter-reset: item; }
.conteudo-rico ol > li { padding-left: 28px; }
.conteudo-rico ol > li::before {
    counter-increment: item; content: counter(item) "."; position: absolute; left: 0; top: 12px;
    font-weight: 700; color: var(--marca-1);
}

/* ===== Box de inscrição: informações → formulário em etapas → confirmação ===== */
.box-inscricao {
    background: var(--bg-card); border-radius: var(--radius-sm, 16px); overflow: hidden;
    box-shadow: 0 1px 2px rgba(21, 21, 68, .06), 0 18px 44px -18px rgba(21, 21, 68, .22);
}
/* Acompanha a rolagem só nas informações: aberto, o formulário pode passar da altura da tela. */
@media (min-width: 960px) { .box-inscricao[data-estado="info"] { position: sticky; top: 24px; } }
.box-corpo { padding: 24px; display: grid; gap: 6px; }
.box-corpo h2 { font-size: 1.5rem; font-weight: 800; color: var(--titulo, var(--texto)); }
.box-corpo .meta { font-size: 1rem; }
.gatilhos { list-style: none; display: grid; gap: 10px; padding-top: 14px; }
.gatilhos li { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.gatilhos .icone { width: 20px; height: 20px; flex-shrink: 0; color: var(--acao-2); }
.box-rodape { padding: 24px; border-top: 1px solid var(--borda); background: var(--bg-alt-suave, #FCFAF7); }
@media (min-width: 480px) { .box-corpo, .box-rodape, .box-form, .sucesso-corpo { padding-left: 32px; padding-right: 32px; } .box-corpo { padding-top: 28px; } }
.btn-bloco { width: 100%; justify-content: space-between; }
/* Botão do edital do tamanho do conteúdo (não ocupa a largura do box) */
.box-edital { width: auto; display: inline-flex; justify-self: start; align-self: flex-start; margin-top: 20px; justify-content: flex-start; gap: 10px; }
.box-edital .icone { display: block; flex-shrink: 0; }
.box-edital-tipo { margin-left: 6px; font-size: .75rem; font-weight: 700; color: var(--texto-soft); }
.form-privacidade { padding-top: 14px; font-size: .8125rem; line-height: 1.5; color: var(--texto-soft); text-align: center; }
.form-privacidade a { text-underline-offset: 2px; }

/* ===== Utilitários ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.no-js .js-only { display: none !important; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Com JavaScript só um estado aparece por vez; sem ele, o formulário fica visível abaixo das informações. */
.js .box-inscricao[data-estado="info"] .box-form,
.js .box-inscricao[data-estado="info"] .box-sucesso,
.js .box-inscricao[data-estado="form"] .box-info,
.js .box-inscricao[data-estado="form"] .box-sucesso,
.js .box-inscricao[data-estado="sucesso"] .box-info,
.js .box-inscricao[data-estado="sucesso"] .box-form { display: none; }
.js .etapa[data-inativa] { display: none; }
/* Confirmação com a altura do estado inicial no desktop (o script mede antes de abrir). */
.box-inscricao[data-estado="sucesso"] { display: flex; flex-direction: column; }
.box-sucesso { width: 100%; flex: 1; display: flex; flex-direction: column; outline: none; }
.sucesso-corpo { flex: 1; padding: 28px 24px; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; }

/* A troca de estado anima pela View Transition do script. */
.box-inscricao { view-transition-name: box-inscricao; }
::view-transition-group(box-inscricao) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(box-inscricao), ::view-transition-new(box-inscricao) { height: 100%; object-fit: cover; object-position: top; }
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.js .box-inscricao[data-estado="form"] .etapa:not([data-inativa]),
.js .box-sucesso:not([hidden]) { animation: entrar .35s ease both; }

.box-form { padding: 24px; }
.no-js .box-form { border-top: 1px solid var(--borda); }
.form-topo { display: grid; gap: 10px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--borda); }
.form-topo h2 { font-size: 1.25rem; font-weight: 800; color: var(--titulo, var(--texto)); }
.form-fechar {
    justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
    margin: -6px 0 0 -8px; padding: 0 12px 0 6px; background: none; border: none; border-radius: var(--radius-pill); cursor: pointer;
    font-family: var(--font-heading); font-weight: 700; font-size: .875rem; color: var(--texto-soft);
}
.form-fechar .icone { width: 18px; height: 18px; }
.form-fechar:hover { color: var(--titulo, var(--texto)); background: var(--bg-alt); }

/* Etapas: uma barra por etapa, com o nome em cima; a atual e as feitas ficam na cor de ação. */
.etapas-indicador { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding-top: 4px; }
.etapas-indicador li {
    display: grid; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: .8125rem; color: var(--texto-soft);
}
.etapas-indicador li::after { content: ''; height: 4px; border-radius: 4px; background: var(--borda); transition: background .4s ease; }
.etapas-indicador li[aria-current] { color: var(--titulo, var(--texto)); }
.etapas-indicador li[aria-current]::after, .etapas-indicador li.feita::after { background: var(--acao); }
.etapa-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.etapa { border: none; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.etapa > * { grid-column: 1 / -1; }
.etapa > .campo-metade { grid-column: auto; }
.etapa-legenda { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; padding-bottom: 4px; color: var(--titulo, var(--texto)); }
.js .etapa-legenda { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.no-js .etapa + .etapa { padding-top: 24px; }
.etapa-acoes { display: flex; gap: 10px; padding-top: 6px; }
.etapa-acoes .btn { white-space: nowrap; }
.etapa-acoes .btn-primario { flex: 1; justify-content: space-between; }

.form-erro-geral:not(:empty) {
    background: rgba(179, 38, 30, .08); border: 1px solid rgba(179, 38, 30, .25); color: var(--erro);
    border-radius: 12px; padding: 12px 16px; font-size: .9rem; margin-bottom: 18px;
}

/* Campo com rótulo flutuante */
.campo { min-width: 0; }
.flutuante { position: relative; }
.flutuante input, .flutuante textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--texto);
    padding: 1.4rem 1rem .4rem; min-height: 56px; border: 1px solid var(--borda-campo, #D9CFC0); border-radius: 12px; background: var(--bg-card);
    transition: border-color .2s ease, box-shadow .2s ease; outline: none;
}
.flutuante label {
    position: absolute; left: 1.0625rem; top: 1.05rem; color: var(--texto-soft); font-size: 1rem; pointer-events: none;
    transform-origin: left top; transition: transform .2s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}
.flutuante input:focus, .flutuante textarea:focus { border-color: var(--acao); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acao) 18%, transparent); }
.flutuante input:focus + label, .flutuante input:not(:placeholder-shown) + label,
.flutuante textarea:focus + label, .flutuante textarea:not(:placeholder-shown) + label { transform: translateY(-.62rem) scale(.78); }
.flutuante input:focus + label, .flutuante textarea:focus + label { color: var(--acao-2); }
.campo-rotulo { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--titulo, var(--texto)); padding-bottom: 10px; }
.obrigatorio { color: var(--erro); padding-left: 2px; }
.campo-ajuda { font-size: .8rem; color: var(--texto-soft); padding-top: 6px; }
.campo-erro:empty { display: none; }
.campo-erro { font-size: .875rem; font-weight: 700; color: var(--erro); padding-top: 6px; }
.tem-erro .flutuante input, .tem-erro .flutuante textarea { border-color: var(--erro); }
.tem-erro .flutuante label { color: var(--erro); }

/* Opções em cartão (rádio e caixa de seleção), duas por linha */
.opcoes { border: none; min-width: 0; }
.opcoes-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opcao { position: relative; cursor: pointer; }
.opcao input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.opcao span {
    display: flex; align-items: center; gap: 10px; height: 100%; min-height: 52px; padding: 10px 14px;
    border-radius: 12px; border: 1px solid var(--borda-campo, #D9CFC0); background: var(--bg-card);
    font-size: .9375rem; line-height: 1.25;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.opcao span::before {
    content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B9AD9C; background: #fff; flex-shrink: 0;
    transition: border .2s ease;
}
.opcao input[type="checkbox"] + span::before { border-radius: 5px; }
.opcao:hover span { border-color: #B9AD9C; }
.opcao input:checked + span {
    border-color: var(--acao); background: color-mix(in srgb, var(--acao) 7%, #fff);
    box-shadow: inset 0 0 0 1px var(--acao); font-weight: 700; color: var(--titulo, var(--texto));
}
.opcao input:checked + span::before { border: 5px solid var(--acao); }
.opcao input:focus-visible + span { outline: 3px solid var(--destaque); outline-offset: 2px; }
.tem-erro .opcao span { border-color: var(--erro); }

/* Opção em cartão com título, descrição e selo (config.apresentacao do processo), uma por linha.
   Os elementos internos não são <span> porque ".opcao span" é o próprio cartão. */
.opcoes-lista.uma-coluna { grid-template-columns: 1fr; }
.opcao-rica > span { align-items: flex-start; padding: 14px 16px; gap: 12px; }
.opcao-rica > span::before { margin-top: 2px; }
.opcao-corpo { display: grid; gap: 3px; flex: 1; min-width: 0; font-style: normal; }
.opcao-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: inherit; }
.opcao-titulo { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--titulo, var(--texto)); }
.opcao-desc { display: block; font-size: .875rem; line-height: 1.4; font-weight: 400; color: var(--texto-soft); }
.selo-status {
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--radius-pill);
    font-family: var(--font-heading); font-weight: 700; font-size: .75rem; line-height: 1.5; white-space: nowrap;
}
.selo-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.selo-limitado { background: #FFF1CC; color: var(--aviso-texto, #5C4600); }
.selo-aberto { background: color-mix(in srgb, var(--acao) 12%, #fff); color: var(--acao-2, var(--acao)); }
.selo-esgotado { background: #F1EEEA; color: #5E5A55; }

/* Aviso abaixo das opções: fundo + borda uniforme de 1px. */
.aviso-form {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 12px;
    background: var(--bg-alt-suave, #FCFAF7); border: 1px solid var(--borda); color: var(--texto-soft); font-size: .875rem; line-height: 1.45;
}
.aviso-form svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.aviso-form strong { color: var(--titulo, var(--texto)); }

/* Evento pago: aviso da taxa e dados de quem paga, no mesmo ritmo dos outros campos da etapa */
.pagador { display: contents; }
.pagador > * { grid-column: 1 / -1; }
.pagador .aviso-form { margin-top: 0; }

/* Cartão com pagamento pendente: o QR só aparece depois de pago */
.cartao-pagar { display: grid; gap: 12px; margin: 8px 0 20px; }
.cartao-pagar p { margin: 0; color: var(--texto-soft); }
.cartao-pagar .btn-primario { width: 100%; justify-content: space-between; }
/* Antes do botão de pagar: avisa que o pagamento sai da plataforma e vai para o Asaas */
.aviso-pagamento-externo {
    display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; text-align: left;
    background: var(--bg-alt-suave, #FCFAF7); border: 1px solid var(--borda); color: var(--texto-soft); font-size: .85rem; line-height: 1.45;
}
.aviso-pagamento-externo::before {
    content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.aviso-pagamento-externo[hidden] { display: none; }
.cartao-pagar-erro { color: var(--erro, #B42318) !important; font-weight: 600; }

/* Botão secundário (contorno) e estado carregando */
.btn-secundario {
    background: var(--bg-card); color: var(--titulo, var(--texto)); border: 1px solid var(--borda-campo, #D9CFC0);
    min-height: 48px; padding: 0 20px; font-weight: 700; font-size: 1rem; letter-spacing: 0;
    transition: border-color .2s ease, background .2s ease;
}
.btn-secundario:hover { border-color: var(--titulo, var(--texto)); background: var(--bg); }
.btn-secundario .icone { display: none; width: 20px; height: 20px; }
@media (max-width: 420px) {
    /* Só a seta: o botão de confirmar precisa da largura para caber numa linha. */
    .etapa-acoes .btn-secundario { width: 48px; padding: 0; flex-shrink: 0; }
    .etapa-acoes .btn-secundario .icone { display: block; }
    .etapa-acoes .btn-secundario .btn-rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.btn-primario.carregando { opacity: .8; cursor: progress; }
.btn-primario:disabled { transform: none; }

/* Confirmação: o ícone entra com um pulo, o check é desenhado e o protocolo aparece por último. */
@keyframes pulo { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes tracar { to { stroke-dashoffset: 0; } }
.js .box-sucesso:not([hidden]) .sucesso-icone { animation: pulo .5s cubic-bezier(.34, 1.56, .64, 1) .2s both; }
.js .box-sucesso:not([hidden]) .sucesso-icone path { stroke-dasharray: 12; stroke-dashoffset: 12; animation: tracar .35s ease .55s forwards; }
.js .box-sucesso:not([hidden]) h2 { animation: entrar .4s ease .35s both; }
.js .box-sucesso:not([hidden]) p { animation: entrar .4s ease .5s both; }
.js .box-sucesso:not([hidden]) .protocolo { animation: entrar .4s ease .65s both; }

.box-sucesso h2 { font-size: 1.5rem; color: var(--titulo, var(--texto)); }
.box-sucesso p { color: var(--texto-soft); }
.sucesso-icone {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: color-mix(in srgb, var(--acao) 12%, #fff); color: var(--acao-2);
}
.sucesso-icone .icone { width: 34px; height: 34px; }
.protocolo {
    width: 100%; margin: 10px 0; padding: 14px; border-radius: 12px;
    background: var(--bg-alt-suave, #FCFAF7); border: 1px dashed var(--borda-campo, #D9CFC0);
    font-size: .875rem; color: var(--texto-soft);
}
.protocolo strong { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--titulo, var(--texto)); }
.box-sucesso .btn-primario { width: 100%; justify-content: space-between; }

/* ===== Barra fixa de inscrição (celular) ===== */
.barra-inscricao {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--borda); box-shadow: 0 -10px 28px -14px rgba(21, 21, 68, .28);
    transform: translateY(110%); visibility: hidden;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .45s;
}
.barra-inscricao.visivel { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.barra-info { min-width: 0; line-height: 1.25; }
.barra-info strong { display: block; font: 800 1rem/1.2 var(--font-heading); color: var(--titulo, var(--texto)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-info span { display: block; font-size: .875rem; font-weight: 700; color: var(--acao-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-inscricao .btn-primario { flex-shrink: 0; padding-left: 18px; font-size: .9375rem; min-height: 46px; }
@media (min-width: 960px) { .barra-inscricao { display: none; } }

/* Aviso de "link copiado" do botão Compartilhar (computador) */
.aviso-copia {
    position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 12px);
    padding: 10px 18px; border-radius: var(--radius-pill); background: var(--titulo, #151544); color: #fff;
    font: 700 .875rem/1.2 var(--font-heading); opacity: 0; pointer-events: none;
    transition: opacity .3s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.aviso-copia.visivel { opacity: 1; transform: translate(-50%, 0); }
.aviso-copia:empty { display: none; }

/* ===== Badges ===== */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
    display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem;
    border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 700; font-size: .78rem;
}
.badge-sucesso { background: rgba(7, 156, 95, .12); color: var(--acao-2); }
.badge-aviso { background: rgba(245, 180, 0, .18); color: var(--aviso-texto); }
.badge-info { background: rgba(111, 38, 129, .1); color: var(--destaque); }
.badge-erro { background: rgba(179, 38, 30, .1); color: var(--erro); }

/* ===== Aviso (fundo + borda uniforme, sem borda lateral) ===== */
.aviso {
    background: var(--bg-alt); border: 1px solid var(--borda); border-radius: var(--radius-md);
    padding: 20px 24px; color: var(--texto-soft);
}

/* ===== Tabela (provisória, até o formulário) ===== */
.tabela-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--borda); }
th { font-family: var(--font-heading); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-soft); }

/* ===== Rodapé ===== */
.rodape { background: var(--rodape-fundo); padding: 40px 0 32px; }
.rodape .container { max-width: 1440px; padding: 0 24px; }
/* Celular na página do processo: espaço para a barra fixa não cobrir o fim do rodapé. */
@media (max-width: 959px) { body:has(.barra-inscricao) .rodape { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
.rodape-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; list-style: none; padding-bottom: 28px; }
.rodape-links a {
    font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
    color: var(--texto); text-decoration: none;
}
.rodape-links a:hover { color: var(--destaque); text-decoration: underline; text-underline-offset: 4px; }
.rodape-base {
    border-top: 2px solid var(--rodape-linha); padding-top: 24px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    font-size: .75rem; color: var(--texto);
}
.rodape-base > * { text-wrap: balance; }
.rodape-base a { color: var(--texto); text-decoration: none; }
.rodape-base a:hover { color: var(--destaque); text-decoration: underline; }
.rodape-navival { font-weight: 700; }
@media (max-width: 1100px) { .rodape-base { flex-direction: column; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Cartão de acesso (QR code do check-in) ===== */
.secao-hero-cartao { padding-bottom: 24px; }
.cartao-acesso {
    max-width: 440px; margin-inline: auto; background: var(--bg-card); border: 1px solid var(--borda);
    border-radius: 20px; box-shadow: var(--shadow-md); padding: 28px; display: grid; gap: 16px; text-align: center;
}
.cartao-acesso-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.cartao-acesso-evento { font-family: var(--font-heading); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--destaque); }
.cartao-acesso-nome { font-size: clamp(1.5rem, 5vw, 1.9rem); color: var(--titulo, var(--texto)); overflow-wrap: anywhere; }
.cartao-acesso-qr { background: #fff; padding: 14px; border: 1px solid var(--borda); border-radius: 16px; width: min(100%, 300px); margin-inline: auto; }
.cartao-acesso-qr svg { width: 100%; height: auto; display: block; }
.cartao-acesso-dados { display: grid; gap: 10px; text-align: left; border-top: 1px solid var(--borda); padding-top: 16px; }
.cartao-acesso-dados div { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.cartao-acesso-dados dt { color: var(--texto-soft); }
.cartao-acesso-dados dd { font-weight: 700; text-align: right; }
.cartao-acesso-dados .mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.cartao-acesso-dica { font-size: .8rem; color: var(--texto-soft); }
.cartao-inativo .cartao-acesso-qr { opacity: .25; filter: grayscale(1); }
.sucesso-email { font-size: .85rem; color: var(--texto-soft); }
.js .box-sucesso:not([hidden]) [data-sucesso-cartao] { animation: entrar .4s ease .8s both; }
@media print {
    .topo, .rodape, .secao-hero-cartao .lead, .cartao-acesso-dica { display: none; }
    .cartao-acesso { box-shadow: none; }
}

/* ===== Área do candidato (recuperar inscrição, minhas inscrições, corrigir dados) ===== */
.form-recuperar { padding-top: 8px; font-size: .8125rem; text-align: center; color: var(--texto-soft); }
.form-recuperar a, .cartao-corrigir a, .aviso-cpf-existente a, .form-erro-geral a { font-weight: 700; text-underline-offset: 2px; }
.aviso-cpf-existente { margin-top: 8px; }
.aviso-cpf-existente[hidden] { display: none; }
.cartao-corrigir { font-size: .9rem; color: var(--texto-soft); }
.area-cartao { max-width: 640px; text-align: left; }
.area-form { padding: 0; display: grid; gap: 18px; }
.area-form .etapa + .etapa { padding-top: 8px; }
.area-legenda { grid-column: 1 / -1; }
.area-enviado { display: grid; gap: 10px; justify-items: center; text-align: center; }
.area-enviado h2 { font-size: 1.4rem; color: var(--titulo, var(--texto)); }
.area-lista { display: grid; gap: 20px; }
.area-item { max-width: 640px; width: 100%; }
.area-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-cartao .area-acoes { justify-content: flex-start; }
.area-fixo-valor { display: block; padding: 14px 16px; border-radius: 12px; background: var(--bg-alt-suave, #FCFAF7); border: 1px dashed var(--borda); font-weight: 700; letter-spacing: .04em; }
.area-ok { margin-top: 0; }
@media (max-width: 600px) {
    .cartao-acesso.area-cartao, .area-item { padding: 20px; }
    .area-acoes .btn { width: 100%; justify-content: space-between; }
}

/* Sugestão de domínio no campo de e-mail ("Você quis dizer ...?") */
.sugestao-email { margin-top: 8px; }
.sugestao-email[hidden] { display: none; }
.sugestao-email-botao { font: inherit; font-weight: 700; color: var(--acao-2, var(--acao)); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Canal de transmissão do WhatsApp (config.canal_whatsapp): caixa de sucesso e cartão de acesso.
   Verde do botão #0B7A3E com branco: 5,4:1 (AA). */
.canal-whatsapp {
    width: 100%; margin-top: 14px; padding: 18px 20px; display: grid; gap: 6px; text-align: left;
    background: #E8F6EE; border: 1px solid #BFE5CF; border-radius: var(--radius-sm, 16px);
}
.canal-whatsapp p { margin: 0; }
.canal-whatsapp-selo { font-family: var(--font-heading); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0B6B3A; }
.canal-whatsapp-titulo { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 800; line-height: 1.3; color: var(--titulo, var(--texto)); }
.canal-whatsapp-texto { font-size: .9375rem; line-height: 1.5; color: var(--texto); }
.canal-whatsapp-botao { justify-self: start; margin-top: 8px; background: #0B7A3E; color: #FFFFFF; border: 2px solid #0B7A3E; box-shadow: none; }
.canal-whatsapp-botao:hover, .canal-whatsapp-botao:focus-visible { background: #096632; border-color: #096632; color: #FFFFFF; }
.cartao-acesso + .canal-whatsapp { margin-top: 20px; }
@media print { .canal-whatsapp { display: none; } }
