.contact-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

@media screen and (min-width: 900px) {
  .contact-container {
    flex-direction: row;
    width: 90%;
  }
}

.contact-details,
.contact-form {
  width: 100%;
}

.contact-details {
  font-size: 1.1em;
  padding: 25px 0 0 25px;
}

.contact-form {
  margin: 20px auto 0;
  padding: 0;
}

@media screen and (min-width: 900px) {
  .contact-details,
  .contact-form {
    width: 50%;
  }

  .contact-form {
    margin: 0 auto;
    padding: 25px;
  }

  .contact-details {
    padding: 25px;
  }
}

address {
  line-height: 1.4;
}

/* Contact form container */
#form-container {
  background: #fff;
  padding: 30px 35px;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  -ms-border-radius: 7px;
  border-radius: 7px;
  border: 3px solid #003e87;
  width: 100%;
}

/*Form elements*/
.field-input {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #000;
  background: #e7e7e7;
  padding: 13px;
  border-radius: 5px;
  border: 3px solid rgba(0, 0, 0, 0);
  width: 100%;
}

.field-input:focus {
  border: 3px solid #003e87;
  outline: none;
}

input,
select {
  margin-top: 10px;
}

textarea {
  width: 100%;
  height: 150px;
  line-height: 150%;
  resize: vertical;
  margin-top: 10px;
  margin-bottom: -8px;
  font-family: 'Roboto', sans-serif;
}

/* Form field placeholder text color */
::placeholder {
  color: #000;
  font-family: 'Roboto', sans-serif;
}

/* Form labels for screen readers only */
.accessibility-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hidden field for anti-spam */
#anti-spam {
  display: none;
}

/* Submit button */
#submit-button {
  width: 100%;
}

/* Error text displayed under each form field */
.error-text {
  font-size: 0.8em;
  font-weight: bold;
  line-height: 1.1;
  color: #003e87;
  padding-left: 0.1rem;
}

/* Form modal container */
.modal-container {
  display: none; 
  position: fixed;
  z-index: 1;
  padding-top: 200px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

/* Form modal content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border-radius: 35px;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: openModal;
  -webkit-animation-duration: 0.4s;
  animation-name: openModal;
  animation-duration: 0.4s
}

/* Form modal animation */
@-webkit-keyframes openModal {
  from {scale:0; opacity:0} 
  to {scale:1; opacity:1}
}

@keyframes openModal {
  from {scale:0; opacity:0}
  to {scale:1; opacity:1}
}

/* Form modal content width on varying screen displays */
@media screen and (min-width: 425px) { 
  .modal-content {
    width: 60%;
  }
}

@media screen and (min-width: 1200px) { 
  .modal-content {
    width: 30%;
  }
}

/* Form modal header */
.modal-header {
  padding: 3px 30px;
  background-color: #003e87;
  text-align: center;
  position: relative;
  border-radius: 15px 15px 0 0;
}

/* Icon displayed in form modal header for successful form submission */
.modal-success-header {
  background-image: url('../images/success-icon.png');
}

/* Icon displayed in form modal header for network or timeout errors */
.modal-error-header {
  background-image: url('../images/error-icon.png');
}

/* Icon base styling for both scenarios */
.modal-success-header, .modal-error-header {
  background-repeat: no-repeat;
  background-position: left 5% top 50%;
  background-size: 35px 35px;
}

@media screen and (min-width: 550px) {
  .modal-success-header, .modal-error-header {
    background-position: left 3% top 50%;
    background-size: 50px 50px;
  }
}

/* Form modal close button */
.close-modal {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 10px;
  top: 0;
}

.close-modal:hover,
.close-modal:focus {
  color: #dedede;
  text-decoration: none;
  cursor: pointer;
}

/* Form modal heading */
#modal-heading {
  font-size: 1rem;
  color: #fff;
  margin: 10px 0;
}

@media screen and (min-width: 550px) {
  #modal-heading {
    font-size: 1.5rem;
  }
}

/* Form modal body */
.modal-body {
  padding: 30px;
  background-color: #dcdcdc;
  border-radius: 0 0 15px 15px;
}