body {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  padding: 1rem 2rem;
  text-align: center;
  margin: 0 auto;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

main article {
  background: #ffd54f;
  padding: 0.4rem;
  color: black;
  width: 100%;
  text-align: center;
}

main .section-form form img {
  width: 100%;
}

main .section-form form section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

main .section-form form section h1 {
  text-align: center;
  font-size: 1.4rem;
  text-wrap: balance;
  line-height: 1.8rem;
  padding: 1rem 0;
}

main form section div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.4rem;
}

main form section div label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

main form section div label input, main form section div label select {
  background-color: #e8e8e8;
  padding: 0.2rem;
  outline: none;
  border: 2px solid #e8e8e8;
}

main form section div label input:focus, main form section div label select:focus {
  border: 2px solid #ccc;
}

main form section div .button-register, .popup-verified section .submit-accept {
  background-color: #0480bf;
  color: white;
  width: max-content;
  padding: 0.4rem;
  border-radius: 0.3rem;
  margin: 0 auto;
  border: none;
  cursor: pointer;
}

.popup-verified section .submit-cancel {
  background: none;
  border: none;
  border-bottom: 1px solid black;
  cursor: pointer;
}

main form section div label #errors span {
  color: red;
  font-size: 0.8rem;
}


.form-send, .popup-verified {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
}

.popup-verified section, .form-send section {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
  background-color: white;
  padding: 1rem;
  line-height: 1.3rem;
  text-align: center;
}

.popup-verified section h2, .form-send section h2 {
  font-size: 1.2rem;
}

.form-send section {
  padding: 2rem;
  border-radius: 1rem;
}

#field {
  color: black;
}


/* MEDIA MORE THAN 1024PX */
@media (min-width: 1024px) {
  main article span {
    display: block;
    max-width: 40%;
    margin: 0 auto;
  }

  main .section-form {
    max-width: 960px;
    margin: 2rem 0;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.5);
    border-radius: 0.2rem;
  }

  main .section-form form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  main .section-form form img {
    object-fit: cover;
    height: 20px;
  }

  main .section-form form section h1 {
    font-size: 2rem;
    font-weight: bolder;
    width: 50%;
    margin: 0 auto;
  }

  main .section-form form section div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem 2rem;
  }

  main .section-form form section div label,
  main .section-form form section div section {
    width: 49%;
  }

  main .section-form form section div section span {
    font-size: small;
    display: block;
  }

  main .section-form form section div section .button-register {
    background-color: #009659;
    margin: 0 auto;
    padding: 0.8rem;
    height: 60%;
    width: 80%;
    border-radius: 1rem;
    border: none
  }

  .form-send section, .popup-verified section {
    max-width: 400px;
    margin: 0 auto;
  }

  #verified-data-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  #verified-data-details span {
    color: black;
    text-align: start;
    font-size: 0.8rem;
  }

}

.error-input, #errors {
  display: flex;
  flex-direction: column;
  color: red;
  padding: 0;
}