.contact__header {
  border-radius: 0 0 6px 6px;
}

.contact__header {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: nowrap;
  display: flex;
  position: relative;
  height: 28.5rem;
  margin-bottom: 2rem;
  padding: 3.7rem;
  background: white no-repeat center/cover;
  overflow: hidden;
  z-index: 0;
}

.contact__text {
  width: 100%;
  background-color: transparent;
  color: white;
  text-align: center;
}

.contact__title {
  margin-bottom: 3.5rem;
  font-weight: 700;
  line-height: 4.6rem;
}

.contact__subtitle {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -.03rem;
  line-height: 3.4rem;
}

.contact__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #6e7187;
  opacity: .7;
  z-index: -1;
}

.contact form,
.contact .webform-submission-form {
  display: inline-block;
  margin-top: 5rem;
  margin-bottom: 5rem;
  padding: 10rem;
  border-radius: .6rem;
  background-color: rgba(208, 209, 220, 0.2);
  max-width: 100%;
}

.contact .webform-horizontal-rule {
  margin: 4rem 0;
  border-top-color: #d0d1dc;
}

.contact .webform-element--title-inline {
  flex-direction: row;
  align-items: center;
}

.contact .webform-element--title-inline > .form-label {
  flex: 1 0 30%;
  margin: 0;
}

.contact .webform-element--title-inline > *:not(.form-label) {
  flex: 1 0 60%;
  max-width: 60%;
}

.contact .form-textarea-wrapper,
.contact .select-container .form-item_inner,
.contact .select-container .form-select,
.contact .select-container {
  width: 100%;
  margin-bottom: 0;
}

.contact .webform-flexbox {
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact .webform-flexbox > .webform-flex {
  width: 45%;
  min-width: 45%;
  max-width: 45%;
}

.contact .webform-flexbox > .webform-flex:first-child:last-child {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.contact .button.form-submit {
  min-width: 18rem;
  margin-left: auto;
}

.contact .webform-flex--container > .form-item:not(.select-container) {
  margin: 0 0 1.5rem;
}

.contact .field-prefix,
.contact .text-count-wrapper,
.contact .description {
  margin-top: 1rem;
  color: #6e7187;
  font-size: 1.4rem;
}

@media only screen and (max-width: 1024px) {
  .contact .webform-element--title-inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact .webform-element--title-inline > .form-label {
    flex: 1 0 30%;
    margin: 0;
  }
  .contact .webform-element--title-inline > *:not(.form-label) {
    flex: 1 0 60%;
    max-width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .contact .webform-submission-form {
    padding: 4rem 2rem;
  }
  .contact .webform-flexbox > .webform-flex {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 1 0 100%;
  }
  .contact .webform-flexbox > .webform-flex + .webform-flex {
    margin-left: 0;
  }
  .contact .webform-element--title-inline > *:not(.form-label) {
    width: 100%;
    max-width: 100%;
  }
  .contact .button.form-submit {
    width: 100%;
    margin-top: 4rem;
  }
}

.form-label a {
  color: #383ff5;
  text-decoration: underline;
}

.ui-widget-content.ui-front a {
  color: #383ff5;
  text-decoration: underline;
}
