/*! styles for any / all screen sizes */

form h2 {
  font-size: 160%;
  font-weight: 700;
  margin: 10px 0px;
}

.gridContainer {
  display: grid;
  align-items: center;
  grid-template-columns: 50px auto;
  grid-template-rows: 40px 40px 40px 40px;
}

.gridContainer2 {
  display: grid;
  align-items: center;
  grid-template-columns: 50px auto;
  grid-template-rows: 40px 40px;
}

.gridContainer3 {
  display: grid;
  align-items: center;
  grid-template-columns: 50px auto;
  grid-template-rows: 40px 40px 40px;
}

.gridContainerReverse {
  display: grid;
  align-items: center;
  grid-template-columns: auto auto auto;
  grid-template-rows: 70px 70px 70px 70px;
  row-gap: 5px;
}

.formTitle {
  font-size: 130%;
  font-weight: 600;
}

.formSubtitle {
  font-size: 110%;
  font-weight: 600;
  line-height: 150%;
}

label.formSubtitle {
  display: inline-block;
}

#form_container {
  background: #fff;
  border: 1px solid #ccc;
  margin: 0 auto;
  text-align: left;
  width: 80%;
  box-shadow: 0px 5px 5px #c9c9c9, 0px -5px 5px 0px #c9c9c9;
}

#top {
  display: block;
  height: 10px;
  margin: 10px auto 0;
  width: 81%;
}

#bottom {
  display: block;
  height: 10px;
  margin: 0 auto;
  width: 81%;
}

.submitButton {
  width: 200px;
  height: 60px;
  border-radius: 10px;
  background-color: #ffff00;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 30px 30px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 5px 10px;
}

textarea {
  padding: 10px;
}

input[type="date"] {
  width: 30%;
  height: 60px;
  padding: 10px;
}

input[type="text"] {
  width: 95%;
  height: 60px;
  padding: 10px;
}

.error {
  color: red;
  padding: 0px;
}

/*! styles for large screen sizes from  1031px */
@media only screen and (min-width: 1031px) {
  textarea {
    width: 70%;
    min-height: 150px;
  }

  form p,
  form h1,
  form h2,
  form h3,
  form h4,
  form h5,
  form h6 {
    padding: 10px 0 10px 30px;
  }

  .gridContainer,
  .gridContainer2,
  .gridContainer3 {
    padding: 5px 10px 5px 30px;
  }

  .formSubtitle {
    padding: 10px 10px 10px 30px;
  }

  textarea,
  input[type="date"] {
    margin: 5px 0 0 30px;
  }

  label.formSubtitle {
    min-width: 185px;
  }
}

/*! styles for small screen sizes up to  1031px */
@media only screen and (max-width: 1031px) {
  #form_container {
    width: 95%;
  }

  form p,
  form h1,
  form h2,
  form h3,
  form h4,
  form h5,
  form h6 {
    padding: 5px 0 5px 10px;
  }

  .gridContainer {
    padding: 0 0 0 10px;
  }

  .formSubtitle {
    padding: 10px;
  }
  textarea,
  input[type="date"] {
    margin: 0 10px 0 10px;
    padding: 5px;
    width: 43%;
  }

  textarea {
    width: 90%;
    min-height: 150px;
  }

  #top {
    width: 96%;
  }

  #bottom {
    width: 96%;
  }
}
