@charset "utf-8";

/*Geral*/
body {
  width: 100%;
  margin: 0;
  font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
  color: #3c3c3b;
  background-color: #f7f4f0;
}

/* Remover margens padrão de imagens e garantir responsividade */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Classe utilitária para imagens full width */
.img-full {
  width: 100%;
  height: auto;
}

/*Espaçador*/
.espacador {
  background-color: #c1da6f;
  padding: 1px 0;
}

/*Header*/
header {
  display: flex;
  background-color: #f7f4f0;
  padding: 15px 0;
  justify-content: center;
}

header img {
  max-width: 150px;
}

/*Seção do formulário (#forms)*/
#forms {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #fde4d2;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  flex-wrap: wrap; /* permite quebrar em coluna no mobile */
}

#forms img {
  padding-top: 20px;
}

/* Container da imagem da médica */
.img-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-container .medica {
  max-height: 400px;
  width: auto;
}

/* Container do formulário */
.form-container {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
}

/*Formulário*/
form {
  display: grid;
  width: 100%;
  max-width: 550px;
  gap: 10px;
  padding: 15px;
  box-sizing: border-box;
  background-color: #fde4d2; /* mantém a cor de fundo da seção */
}

form h2 {
  color: #33706d;
  margin-bottom: 10px;
}

label {
  color: #33706d;
  font-weight: 500;
}

.option {
  color: #706f6f;
  padding: 6px;
  border: 2px solid #d1e393;
  border-radius: 5px;
  background-color: white;
}

input {
  color: #33706d;
  padding: 6px;
  border: 2px solid #d1e393;
  border-radius: 5px;
}

input::placeholder {
  color: #706f6f;
}

/* Grupo CPF / CNPJ */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Botão */
button {
  font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
  font-size: 16px;
  width: 100%;
  max-width: 400px;
  margin: 20px auto 10px auto;
  padding: 10px;
  background-color: white;
  color: #33706d;
  border: 2px solid #d1e393;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  display: block;
  text-align: center;
}

button:hover {
  background-color: #d1e393;
  color: #33706d;
  border: 2px solid white;
}

/* Ajuste do reCAPTCHA para não quebrar layout em telas pequenas */
.g-recaptcha {
  transform-origin: left top;
}

/*Links*/
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

/*Footer*/
footer {
  padding: 10px;
  font-size: 10px;
  text-align: center;
  color: #575756;
  background-color: #d1e393;
}

footer p {
  margin: 5px 0;
}

/*Resposividade*/

/* Telas até 1024px (tablets e alguns notebooks menores) */
@media (max-width: 1024px) {
  #forms {
    padding: 20px 10px;
  }

  form {
    max-width: 500px;
  }

  .img-container .medica {
    max-height: 350px;
  }
}

/* Telas até 768px (tablets em pé, celulares grandes) */
@media (max-width: 768px) {
  #forms {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .img-container {
    order: 1;
    margin-bottom: 10px;
  }

  .form-container {
    order: 2;
    width: 100%;
  }

  form {
    padding: 15px 10px;
  }

  button {
    max-width: 100%;
  }
}

/* Telas até 480px (celulares comuns) */
@media (max-width: 480px) {
  header img {
    max-width: 130px;
  }

  form h2 {
    font-size: 20px;
  }

  label {
    font-size: 14px;
  }

  input,
  select,
  button {
    font-size: 14px;
  }

  /* Recaptcha menor para caber na tela */
  .g-recaptcha {
    transform: scale(0.85);
  }
}