/* Reset global */

/* Fundo da seção */
.form-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Caixa do formulário */
.form-div {

  padding: 20px 40px;
  border-radius: 12px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

form{
  border: 1px solid gray;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  margin: auto;
}

/* Cabeçalho */
.form-text{
  margin-bottom: 24px;
  max-width: 1440px;
  margin: auto;
}

.form-text h1 {
  font-size: 1.8rem;
  color: #0072CE;
  font-weight: bold;
}

.form-text p {
  font-size: 1.1rem;
  color: #000000;
  margin-top: 5px;
}

form h2 {
  color: #054E72;
  margin-top: 0;
}

/* Container das perguntas */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.last-fieldset{
  margin-top: 12px;
}

/* Estilização dos fieldsets */
fieldset {
  border: 2px solid #0072CE;
  border-radius: 8px;
  padding: 18px;
  text-align: left;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Legenda */
legend {
  font-weight: bold;
  color: #0072CE;
  font-size: 16px;
}

/* Esconde os radios padrão */
input[type="radio"] {
  display: none;
}

/* Estilização dos labels como blocos */
input[type="radio"] + label {
  margin-bottom: 8px;
  display: block;
  background: #FFC600;
  color: #054E72;
  padding: 12px;
  border-radius: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}


/* Efeito de seleção */
input[type="radio"]:checked + label {
  background: #0072CE;
  color: white;
  transform: scale(1.03);
  box-shadow: 2px 2px 12px rgba(0, 114, 206, 0.3);
}

/* Botões */
.buttons {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

/* Botão principal */
.button {
  background: #FF6A14;
  color: white;
  padding: 12px 22px;
  border: none;
  border-radius: 36px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
  width: 45%;
}

.button:hover {
  transform: scale(1.025);
}

/* Botão de reset */
.reset-button {
  background: #0072CE;
  padding: 12px 22px;
  color: white;
  border: none;
  border-radius: 36px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
  width: 45%;
}

.reset-button:hover {
  transform: scale(1.025);
}

/* Responsividade */
@media (max-width: 600px) {
  .form-div {
      padding: 25px;
      width: 90%;
  }

  fieldset {
      padding: 12px;
  }

  .buttons {
      flex-direction: column;
      gap: 8px;
  }

  .button,
  .reset-button {
      width: 100%;
  }
}
