/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styles */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #e0f1e7;
  color: #2e4044;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

h1 {
  margin-bottom: 1rem;
}

/* Form Elements Reset */
input,
textarea,
select:not([type="radio"]),
button,
fieldset,
.desenvolvimento__container {
  width: 100%;
  border: none;
  font-size: 1.2rem;
}

/* Removendo estilos padrão do input */
input[type="tel"],
input[type="text"],
input[type="email"],
textarea {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
  outline: none;
}

/* Removendo setas em alguns navegadores */
input[type="tel"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input,
textarea,
.desenvolvimento__container {
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #0c7d69;
}

/* Form Layout */
form {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 720px;
}

fieldset {
  margin: 1rem 0;
}

.nome__sobrenome fieldset {
  margin: 0;
}

span {
  color: #0c7d69;
}

/* Input Customization */
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  transform: scale(1.5);
  cursor: pointer;
}

input[type="checkbox"] {
  margin: 0 0.25rem;
}

textarea {
  height: 7.5rem;
}

/* Button Styles */
button {
  background-color: #0c7d69;
  color: #fff;
  border-radius: 0.25rem;
  height: 3rem;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Flex Utilities */
.nome__sobrenome,
.desenvolvimento,
.desenvolvimento__container {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  div label {
    margin-top: 0.5rem;
  }
}

.nome__sobrenome,
.desenvolvimento {
  justify-content: space-between;
}

/* Renderização condicional de Textarea de Mensagens */
.mensagem__container {
  display: none;
}

.mensagem__container.active {
  display: flex;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    background-color: #fff;
    align-items: start;
    margin-top: 2rem;
  }

  form {
    background-color: transparent;
    padding: 0.5rem;
    margin: 0.5rem;
  }

  textarea {
    height: 10rem;
  }

  .nome__sobrenome {
    flex-direction: column;
  }

  .desenvolvimento {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  body {
    margin-top: 1rem;
  }

  input,
  textarea,
  select:not([type="radio"]),
  button,
  fieldset,
  .desenvolvimento__container {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  textarea {
    height: 15rem;
  }

  button {
    height: 2.5rem;
  }

  input,
  textarea,
  .desenvolvimento__container {
    margin-top: 0.25rem;
    padding: 0.5rem 1rem;
  }
}
