.page-contact #left-column,
.page-contact #content-wrapper {
  margin-top: 24px;
}
.page-contact .nexus-contact-rich,
.page-contact .contact-form {
  background: #fff;
  border: 1px solid #e8edf1;
  box-shadow: 0 10px 28px rgba(5, 36, 53, .06);
  padding: 24px;
}
.page-contact .nexus-contact-rich h4,
.page-contact .contact-form .h2 {
  color: #06364b;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.page-contact .nexus-contact-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.page-contact .nexus-contact-card .icon {
  color: #00779a;
  min-width: 28px;
  line-height: 1.4;
}
.page-contact .nexus-contact-card .data {
  color: #1b2d38;
  line-height: 1.55;
}
.page-contact .nexus-contact-card a {
  color: #0077d9;
  font-weight: 700;
}
body#contact .contact-form .form-fields,
body#contact .contact-form .form-footer {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body#contact .contact-form .contact-form-title,
body#contact .contact-form .contact-form-title .h2,
body#contact .contact-form .nexus-contact-intro {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
}
.page-contact .nexus-contact-intro {
  color: #5d6b73;
  line-height: 1.45;
  margin: -8px auto 34px;
  max-width: 620px;
}
.page-contact .contact-form .form-group.row {
  display: block;
  margin: 0 0 22px;
}
.page-contact .contact-form .form-control-label {
  color: #183647;
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 0;
  text-align: left;
  width: 100%;
}
.page-contact .contact-form .col-md-12 {
  float: none;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}
.page-contact .contact-form .form-control,
.page-contact .contact-form .form-control-select {
  background-color: #fff;
  border: 1px solid #d8e1e7;
  border-radius: 6px;
  color: #152f3d;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}
.page-contact .contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
body#contact .contact-form .form-footer,
body#contact .contact-form .nexus-contact-footer {
  border-top: 1px solid #eef2f5;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 8px;
  padding-top: 18px;
  text-align: center !important;
}
body#contact .contact-form input[name="submitMessage"].btn {
  float: none !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  border-radius: 6px;
  font-weight: 800;
  min-width: 160px;
}
@media (max-width: 767px) {
  .page-contact #left-column,
  .page-contact #content-wrapper {
    margin-top: 16px;
  }
  .page-contact .nexus-contact-rich,
  .page-contact .contact-form {
    padding: 18px;
  }
  body#contact .contact-form .form-fields,
  body#contact .contact-form .form-footer {
    max-width: 100% !important;
  }
  .page-contact .contact-form .h2 {
    font-size: 1.55rem;
    line-height: 1.2;
  }
  .page-contact .nexus-contact-intro {
    font-size: .95rem;
    margin-bottom: 24px;
  }
}

/* Hard reset title alignment inherited from Bootstrap offsets. */
body#contact .contact-form .contact-form-title,
body#contact .contact-form .form-fields > .form-group:first-child,
body#contact .contact-form .form-fields > .form-group:first-child > div {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 760px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center !important;
  width: 100% !important;
}
body#contact .contact-form .contact-form-title .h2,
body#contact .contact-form .contact-form-title h3,
body#contact .contact-form .nexus-contact-intro {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  width: 100% !important;
}
body#contact .contact-form .form-fields > .form-group:not(:first-child) {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 760px !important;
  width: 100% !important;
}
body#contact .contact-form .nexus-contact-footer {
  max-width: 760px !important;
}

/* Force the submit button to the exact visual center of the form. */
body#contact .contact-form .form-footer {
  display: block !important;
  text-align: center !important;
}
body#contact .contact-form input[name="submitMessage"].btn {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Final desktop correction: center footer by layout, not by offsetting the button. */
body#contact .contact-form footer.form-footer.clearfix,
body#contact .contact-form .form-footer {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  float: none !important;
  margin: 8px auto 0 !important;
  max-width: 760px !important;
  padding: 18px 0 0 !important;
  text-align: center !important;
  width: 100% !important;
}
body#contact .contact-form .form-footer input[name="submitMessage"].btn,
body#contact .contact-form input[name="submitMessage"].btn {
  display: inline-flex !important;
  float: none !important;
  left: auto !important;
  margin: 0 !important;
  position: static !important;
  right: auto !important;
  transform: none !important;
}
