/* Formulario de inscricao do ILP (cursos-eventos/inscricao.jsp): mesma identidade do hotsite
   (ilp.al.sp.gov.br), sem Bootstrap nem jQuery. */
:root {
  --roxo: #41284b;
  --roxo-escuro: #262454;
  --verde-escuro: #2a7d26;
  --ciano-texto: #1976a4;
  --fundo: #f5f4f7;
  --texto: #1a1a2e;
  --suave: #5b5b78;
  --borda: #c9bfd2;
  --erro: #a12020;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fundo);
}

a {
  color: var(--ciano-texto);
}

:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 2px;
}

.caixa {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: .5rem 1rem;
  border-radius: 8px;
}

.pular:focus {
  top: 1rem;
}

.topo {
  background: linear-gradient(120deg, #41284b 0%, #262454 45%, #1976a4 100%);
}

.topo__caixa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
}

.topo__marca img {
  width: 10rem;
  height: auto;
  display: block;
}

.topo__voltar {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.topo__voltar:hover {
  text-decoration: underline;
  color: #fff;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

h1 {
  color: var(--roxo-escuro);
  font-size: 1.9rem;
  margin: 0 0 .3rem;
}

.atividade {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--roxo);
  margin: 0 0 .5rem;
}

.periodo,
.nota {
  color: var(--suave);
}

fieldset {
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.3rem 1.3rem;
  margin: 0 0 1.2rem;
  box-shadow: 0 1px 2px rgba(65, 40, 75, .08), 0 6px 18px -8px rgba(65, 40, 75, .25);
}

legend {
  float: left;
  width: 100%;
  font-weight: 800;
  color: var(--roxo-escuro);
  font-size: 1.1rem;
  margin-bottom: .4rem;
}

legend+* {
  clear: both;
}

label {
  display: block;
  font-weight: 600;
  margin: .9rem 0 .25rem;
  font-size: .95rem;
}

legend+label,
legend+p+label,
legend+.linha>div>label:first-child {
  margin-top: 0;
}

input,
select {
  width: 100%;
  font: inherit;
  padding: .6rem .7rem;
  border: 1px solid var(--borda);
  border-radius: 8px;
  background: #fff;
  color: var(--texto);
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--erro);
  border-width: 2px;
}

.linha {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 560px) {
  .linha {
    grid-template-columns: 1fr 1fr;
  }
}

.ajuda {
  font-size: .85rem;
  color: var(--suave);
  margin: .3rem 0 0;
}

.erro-campo {
  color: var(--erro);
  font-weight: 600;
  font-size: .9rem;
  margin: .3rem 0 0;
}

.aviso {
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.2rem;
}

.aviso p {
  margin: .2rem 0;
}

.aviso--erro {
  background: #fff4f4;
  border: 1px solid #f0caca;
  color: #6e1414;
}

.aviso--erro:focus {
  outline: 3px solid #f2b705;
}

.aviso--erro a {
  color: #6e1414;
}

.aviso--ok {
  background: #e9f6e8;
  border: 1px solid #bfe3bb;
  color: #1f4f1c;
}

.captcha {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin: .6rem 0 0;
}

.captcha img {
  border: 1px solid var(--borda);
  border-radius: 8px;
}

.armadilha {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lgpd {
  font-size: .88rem;
  color: var(--suave);
}

.botao {
  display: inline-block;
  border: 2px solid var(--roxo);
  background: #fff;
  color: var(--roxo);
  border-radius: 999px;
  padding: .6rem 1.2rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.botao--principal {
  background: var(--verde-escuro);
  border-color: var(--verde-escuro);
  color: #fff;
  width: 100%;
  font-size: 1.1rem;
  padding: .85rem 1.2rem;
}

.botao--principal:disabled {
  opacity: .7;
  cursor: progress;
}

.botao--leve {
  padding: .4rem .9rem;
  font-size: .9rem;
}

.rodape {
  background: #1a1c4e;
  color: #e8e6f2;
  padding: 1.2rem 0;
  font-size: .88rem;
}

.rodape a {
  color: #fff;
}