h1,
h2,
h3,
h4,
h5 {
  font-family: Georgia, serif;
  font-family: 'Libre Baskerville', serif;
}

p {
  font-family: Helvetica, sans-serif;
  font-family: 'PT Sans', sans-serif;
}

.container {
  container-type: inline-size;
  margin-bottom: 40px;
  margin-top: 40px;
  width: 100%;
}

#aspnetForm {
  background: #e7eff2;
  border: none;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
}

#aspnetForm .pageHeader {
  color: #003b5c;
  font-family: Georgia, serif;
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  font-size: 32px;
  margin: 0;
}

#aspnetForm strong {
  display: inline-block;
  font-family: Georgia, serif;
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  text-align: center;
  width: 100%;
}

#aspnetForm #writeRepForm {
  text-align: center;
}

.buffer #aspnetForm fieldset {
  border: none;
  margin-top: 20px;
}

.buffer #aspnetForm fieldset legend {
  color: #003b5c;
  display: flex;
  font-family: Georgia, serif;
  font-family: "Libre Baskerville", serif;
  font-size: 22px;
  font-style: italic;
  margin-bottom: 0;
  margin-left: calc(25% + 28px);
  margin-top: 20px;
  text-align: left;
  width: 60%;
}

#aspnetForm .formfield {
  display: flex;
  flex-direction: row;
  margin: 10px 20px;
}

#aspnetForm label.formheader {
  align-self: center;
  color: #003b5c;
  font-family: Helvetica, sans-serif;
  font-family: "PT Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-right: 20px;
  text-align: right;
  width: 25%;
}

#aspnetForm input[type="text"],
#aspnetForm input[type="email"],
#aspnetForm input[type="tel"],
#aspnetForm input[type="search"],
#aspnetForm input[type="password"],
#aspnetForm input[type="url"],
#aspnetForm input[type="date"],
#aspnetForm input[type="datetime"],
#aspnetForm input[type="datetime-local"],
#aspnetForm input[type="time"],
#aspnetForm input[type="week"],
#aspnetForm input[type="month"],
#aspnetForm input[type="number"],
#aspnetForm input[type="color"],
#aspnetForm input:not([type]),
#aspnetForm textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  color: #003b5c;
  font-family: Helvetica, sans-serif;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  padding: 6px;
  width: 60% !important;
}

#aspnetForm select,
.contactform select {
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 16px;
  height: 50px;
  padding: 6px;
  width: 60%;
}

#aspnetForm .formfield.fs-checkbox,
#aspnetForm .formfield.radio.fs-reply {
  margin: 12px 0 0 0;
  margin-left: calc(25% + 28px);
  width: 60%;
}

#aspnetForm .fieldContainer {
  margin: 12px 0 0 0;
  margin-left: calc(25% + 30px);
  width: 60%;
}

#aspnetForm input[type="submit"].ContactForm_Submit {
  align-items: center;
  background-color: #cda052;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: Helvetica, sans-serif;
  font-family: "PT Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  text-align: center;
  width: 135px;
}

@container (max-width: 849px) {
  .buffer #aspnetForm fieldset legend {
    display: block;
    margin-left: 0;
    text-align: center;
    width: 100%;
  }

  #aspnetForm .formfield {
    flex-direction: column;
    margin-top: 14px;
  }

  #aspnetForm label.formheader {
    display: block;
    margin: 0;
    max-width: none;
    padding-left: 4px;
    text-align: left;
    width: 100%;
  }

  #aspnetForm input[type="text"],
  #aspnetForm input[type="email"],
  #aspnetForm input[type="tel"],
  #aspnetForm input[type="search"],
  #aspnetForm input[type="password"],
  #aspnetForm input[type="url"],
  #aspnetForm input[type="date"],
  #aspnetForm input[type="datetime"],
  #aspnetForm input[type="datetime-local"],
  #aspnetForm input[type="time"],
  #aspnetForm input[type="week"],
  #aspnetForm input[type="month"],
  #aspnetForm input[type="number"],
  #aspnetForm input[type="color"],
  #aspnetForm input:not([type]),
  #aspnetForm textarea,
  #aspnetForm select,
  .contactform select {
    display: block;
    margin-top: 2px;
    max-width: none;
    width: 100% !important;
  }

  #aspnetForm .formfield.fs-checkbox,
  #aspnetForm .formfield.radio.fs-reply,
  #aspnetForm .fieldContainer {
    display: block;
    margin-left: 20px;
    max-width: none;
    width: auto;
  }

  #aspnetForm .formfield-message {
    margin-bottom: 0;
  }
}

@container (max-width: 499px) {
  #aspnetForm {
    padding: 25px 15px;
  }

  .buffer #aspnetForm fieldset {
    padding-left: 0;
    padding-right: 0;
  }
}