.contact-header {
  position: absolute;
  z-index: 20;
  width: 100%;
  padding: 16px 0;
}

.contact-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-brand img {
  display: block;
  width: 204px;
  height: auto;
}

.contact-back {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.contact-back:hover,
.contact-back:focus {
  color: #fff;
  text-decoration: underline;
}

.form-hero {
  min-height: 470px;
  background-image: url("../images/hero_bg_1.jpg");
  background-position: center;
}

.form-hero-copy {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: 1.05rem;
}

.form-hero .row {
  margin-right: 0;
  margin-left: 0;
}

.contact-layout {
  display: grid;
  width: calc(100% - 30px);
  padding-right: 0;
  padding-left: 0;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  align-items: start;
  gap: 32px;
}

.contact-card,
.contact-details {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(17, 30, 52, 0.09);
}

.contact-card {
  padding: clamp(24px, 4vw, 48px);
}

.contact-details {
  padding: 32px;
  border-top: 5px solid #f89d13;
}

.contact-card-heading {
  margin-bottom: 30px;
}

.contact-card-heading h2,
.contact-details h2 {
  color: #1f2d3d;
  font-weight: 600;
}

.contact-eyebrow {
  margin-bottom: 8px;
  color: #f89d13;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-field {
  margin-bottom: 22px;
}

.contact-field label {
  display: inline-block;
  margin-bottom: 8px;
  color: #26384d;
  font-weight: 600;
}

.contact-field label > span[aria-hidden="true"],
.contact-consent span[aria-hidden="true"] {
  color: #b42318;
}

.contact-optional {
  color: #687786;
  font-size: 0.85rem;
  font-weight: 400;
}

.contact-field .form-control {
  min-height: 48px;
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  color: #1f2d3d;
}

.contact-field textarea.form-control {
  min-height: 165px;
  resize: vertical;
}

.contact-field .form-control:focus {
  border-color: #f89d13;
  box-shadow: 0 0 0 3px rgba(248, 157, 19, 0.18);
}

.contact-file {
  height: auto;
  padding: 10px;
}

.contact-help,
.contact-file-summary {
  margin: 8px 0 0;
  color: #667482;
  font-size: 0.86rem;
  line-height: 1.55;
}

.contact-file-summary:not(:empty) {
  color: #31465c;
  font-weight: 600;
}

.contact-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 4px;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #f89d13;
}

.contact-consent label {
  margin: 0;
  color: #35495e;
  line-height: 1.55;
}

.contact-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-status {
  display: none;
  margin: 24px 0 16px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  line-height: 1.5;
}

.contact-status:not(:empty) {
  display: block;
}

.contact-status-progress {
  color: #32475b;
  background: #eef4f8;
  border-color: #c9d8e3;
}

.contact-status-error {
  color: #7a271a;
  background: #fef3f2;
  border-color: #fecdca;
}

.contact-status-success {
  color: #05603a;
  background: #ecfdf3;
  border-color: #abefc6;
}

.contact-status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.contact-submit {
  min-width: 210px;
  border: 0;
  border-radius: 4px;
  background: #f89d13;
  font-weight: 600;
}

.contact-submit:hover,
.contact-submit:focus {
  background: #df8505;
}

.contact-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.contact-detail {
  padding-top: 22px;
  border-top: 1px solid #e6ebef;
}

.contact-detail + .contact-detail {
  margin-top: 22px;
}

.contact-detail h3 {
  margin-bottom: 7px;
  color: #27394d;
  font-size: 1rem;
  font-weight: 700;
}

.contact-detail p {
  margin-bottom: 0;
}

.contact-footer {
  padding: 36px 0;
}

.contact-footer p {
  margin: 0;
}

@media (max-width: 991.98px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-details {
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .contact-header {
    padding-top: 10px;
  }

  .contact-header-inner {
    align-items: flex-start;
  }

  .contact-brand img {
    width: 152px;
  }

  .contact-back {
    max-width: 120px;
    padding-top: 9px;
    text-align: right;
  }

  .form-hero {
    min-height: 410px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-card,
  .contact-details {
    padding: 24px 20px;
  }

  .contact-submit {
    width: 100%;
  }
}
