.formulario-cadastro * {
  box-sizing: border-box;
}

.formulario-cadastro {
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
  color: #222222;
}

.formulario-cadastro__wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px;
}

/* Container único (card) */
.formulario {
  background: #ffffff;
  border-radius: 6px;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(10, 46, 92, 0.08);
}

/* Cabeçalho interno */
.cabecalho-formulario {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dde1e7;
}

.cabecalho-formulario h1 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: #0a2e5c;
}

.cabecalho-formulario p {
  margin: 0;
  font-size: 0.95rem;
  color: #55606e;
}

/* Campos */
.formulario-cadastro__campos {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.campo {
  display: flex;
  flex-direction: column;
}

.campo--largo {
  grid-column: 1 / -1;
}

.campo label,
.rotulo-grupo {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222222;
}

.campo__controle,
.campo input[type="text"],
.campo input[type="e-mail"],
.campo input[type="date"],
.campo select,
.campo textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dde1e7;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #222222;
  background: #ffffff;
}

.campo__controle:focus {
  outline: none;
  border-color: #0a2e5c;
  box-shadow: 0 0 0 3px rgba(10, 46, 92, 0.15);
}

.campo textarea {
  resize: vertical;
}

/* Grupos de opção (radio / checkbox) */
.campo--opcoes .opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.opcao {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.92rem;
  color: #55606e;
}

.opcao input[type="radio"],
.opcao input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2e3a4d;
}

/* Consentimento / LGPD */
.consentimento {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #dde1e7;
}

.consentimento .textLGPD {
  display: none;
}

.consentimento .textLGPD.aberto {
  display: block;
  font-size: 0.85rem;
  color: #55606e;
  margin-bottom: 12px;
}

.consentimento .openTerm {
  color: #0a2e5c;
  font-weight: 600;
  cursor: pointer;
}

.consentimento a {
  color: #0a2e5c;
  font-weight: 600;
}

/* Ações */
.formulario-cadastro__acoes {
  margin-top: 24px;
}

.botao-enviar {
  width: 100%;
  background: #2e3a4d;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.botao-enviar:hover {
  background: #202939;
}

.botao-enviar:focus-visible {
  outline: 3px solid #0a2e5c;
  outline-offset: 2px;
}

.botao-enviar[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mensagens de erro do formFields.js */
.campoErro {
  display: block;
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 4px;
}

.gestaoErro {
  border-color: #c0392b !important;
}

/* Overlay de sucesso */
.formulario-cadastro__sucesso {
  background: #ffffff;
  border-radius: 6px;
  padding: 32px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(10, 46, 92, 0.08);
}

.formulario-cadastro__sucesso.hidden {
  display: none;
}

.formulario-cadastro__sucesso-titulo {
  color: #0a2e5c;
  margin: 0 0 8px;
}

.formulario-cadastro__sucesso-subtitulo {
  color: #2e3a4d;
  margin: 0 0 12px;
  font-weight: 600;
}

.formulario-cadastro__sucesso-texto {
  color: #55606e;
  margin: 0;
}

/* Responsivo */
@media (max-width: 560px) {
  .formulario {
    padding: 24px 20px;
  }

  .cabecalho-formulario h1 {
    font-size: 1.2rem;
  }
}