:root { color-scheme: light dark; --fundo: #f6f6f9; --painel: #fff; --texto: #363949; --suave: #667085; --borda: #e1e4ed; --azul: #0a84ff; --rosa: #df5a99; --erro: #b42318; --sucesso: #198754; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 0.95rem/1.6 Poppins, Arial, sans-serif; }
[hidden] { display: none !important; }
.topo { max-width: 1080px; margin: auto; padding: 1.4rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--borda); }
.marca { display: flex; gap: 0.75rem; align-items: center; color: inherit; text-decoration: none; font-weight: 700; }
.marca img { border-radius: 0.6rem; }
.marca small { display: block; color: var(--suave); font-size: 0.75rem; font-weight: 400; }
.topo-descricao { color: var(--suave); font-size: 0.85rem; }
main { max-width: 880px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.apresentacao { margin-bottom: 2rem; max-width: 680px; }
.sobretitulo { color: var(--rosa); font-size: 0.8rem; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.04em; margin: 0.6rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 0; }
h3 { font-size: 1rem; margin: 0; }
p { margin: 0; }
.apresentacao p, .ajuda, .campo small { color: var(--suave); }
.painel { background: var(--painel); border: 1px solid var(--borda); border-radius: 1.3rem; padding: 1.75rem; }
.cabecalho-painel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.etiqueta { background: color-mix(in srgb, var(--azul) 9%, transparent); color: var(--azul); border-radius: 2rem; padding: 0.3rem 0.65rem; font-size: 0.75rem; white-space: nowrap; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.campos-duplos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.campo { min-width: 0; }
label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; }
input, select { width: 100%; min-width: 0; min-height: 46px; padding: 0.75rem; border: 1px solid var(--borda); background: var(--painel); color: var(--texto); border-radius: 0.65rem; font: inherit; }
input::placeholder { color: var(--suave); }
.campo small { display: block; font-size: 0.72rem; margin-top: 0.4rem; }
:is(input, select, button, a):focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
.turmas-cabecalho { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 1.75rem 0 0.75rem; }
#quantidadeTurmas { font-size: 0.8rem; color: var(--suave); }
.ajuda { font-size: 0.8rem; line-height: 1.7; }
.lista-turmas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.opcao-turma { display: flex; align-items: start; gap: 0.65rem; border: 1px solid var(--borda); border-radius: 0.8rem; padding: 1rem; cursor: pointer; margin: 0; }
.opcao-turma:has(input:checked) { border-color: var(--azul); background: color-mix(in srgb, var(--azul) 5%, transparent); }
.opcao-turma input { width: 18px; height: 18px; min-height: 0; margin: 0.3rem 0 0; padding: 0; flex-shrink: 0; accent-color: var(--azul); }
.opcao-turma strong { display: block; overflow-wrap: anywhere; }
.opcao-turma small { display: block; font-weight: 400; color: var(--suave); }
.dados-participante { margin-top: 1.75rem; }
.aviso-dados { margin: 1.2rem 0; }
button { font: inherit; border-radius: 0.65rem; min-height: 46px; padding: 0.7rem 1.1rem; cursor: pointer; }
.botao-principal { color: #fff; background: var(--azul); border: 1px solid var(--azul); font-weight: 600; }
.botao-principal:hover { filter: brightness(0.95); }
.botao-secundario { color: var(--texto); background: transparent; border: 1px solid var(--borda); }
.botao-secundario:hover { background: var(--fundo); }
:disabled { cursor: not-allowed; opacity: 0.65; }
.erro { color: var(--erro); font-size: 0.85rem; margin-top: 1rem; }
.estado { display: flex; gap: 0.7rem; align-items: center; color: var(--suave); padding: 1rem 0; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--borda); border-top-color: var(--azul); border-radius: 50%; animation: girar 0.7s linear infinite; flex-shrink: 0; }
@keyframes girar { to { transform: rotate(360deg); } }
.confirmacao { text-align: center; padding: 0.5rem 0; }
.confirmacao-icone { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--sucesso) 12%, transparent); color: var(--sucesso); font-size: 1.6rem; margin-bottom: 1rem; }
.confirmacao h2 { margin-bottom: 0.5rem; }
.confirmacao p { color: var(--suave); }
.numero-inscricao { display: block; font-size: 1.2rem; color: var(--azul); margin: 1rem 0; overflow-wrap: anywhere; }
.confirmacao dl { text-align: left; background: var(--fundo); border-radius: 0.8rem; padding: 1rem; margin: 1rem 0 1.5rem; }
.confirmacao dt { color: var(--suave); font-size: 0.75rem; }
.confirmacao dd { margin: 0 0 0.7rem; font-weight: 500; overflow-wrap: anywhere; }
.confirmacao dd:last-child { margin-bottom: 0; }
footer { text-align: center; color: var(--suave); font-size: 0.75rem; padding: 1rem 1.5rem 2rem; }
@media (prefers-color-scheme: dark) { :root { --fundo: #181a1e; --painel: #202528; --texto: #edeffd; --suave: #b4becc; --borda: #3a424b; --erro: #ff9e95; --sucesso: #62c794; } }
@media (max-width: 600px) { .topo { padding: 1rem; } main { padding: 1.75rem 1rem; } .painel { padding: 1.1rem; } .campos-duplos, .lista-turmas { grid-template-columns: 1fr; } input, select { font-size: 16px; } .topo-descricao { display: none; } .botao-principal { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.5s; } }
