body.lab-contact-page-body,
body.lab-contact-page-body .container-wrap {
  background: #fff;
}

body.lab-contact-page-body #header-space,
body.lab-contact-page-body #to-top,
body.lab-contact-page-body #footer-outer {
  display: none !important;
}

body.lab-contact-page-body .container-wrap {
  padding-bottom: 0;
  padding-top: 0;
}

body.lab-contact-page-body .container-wrap,
body.lab-contact-page-body .container-wrap > .main-content,
body.lab-contact-page-body #main-content,
body.lab-contact-page-body .lab-contact-wrap {
  max-width: none;
  width: 100%;
}

body.lab-contact-page-body #header-outer,
body.lab-contact-page-body #header-outer.transparent,
body.lab-contact-page-body #header-outer.small-nav,
body.lab-contact-page-body #header-outer.scrolled-down {
  background: transparent !important;
  box-shadow: none !important;
  position: fixed !important;
  z-index: 100;
}

body.lab-contact-page-body #header-outer {
  mix-blend-mode: difference;
}

body.lab-contact-page-body #header-outer #logo img,
body.lab-contact-page-body #header-outer #top .slide-out-widget-area-toggle .label,
body.lab-contact-page-body #header-outer #top .slide-out-widget-area-toggle .lines,
body.lab-contact-page-body #header-outer #top .slide-out-widget-area-toggle .lines::before,
body.lab-contact-page-body #header-outer #top .slide-out-widget-area-toggle .lines::after,
body.lab-contact-page-body #header-outer #top .slide-out-widget-area-toggle .lines-button::after {
  transition: background-color 160ms ease-out, color 160ms ease-out, filter 160ms ease-out;
}

body.lab-contact-page-body #header-outer #logo img {
  filter: brightness(0) invert(1) !important;
}

body.lab-contact-page-body #header-outer #top .slide-out-widget-area-toggle .label {
  color: #fff !important;
}

body.lab-contact-page-body #header-outer #top .slide-out-widget-area-toggle .lines,
body.lab-contact-page-body #header-outer #top .slide-out-widget-area-toggle .lines::before,
body.lab-contact-page-body #header-outer #top .slide-out-widget-area-toggle .lines::after,
body.lab-contact-page-body #header-outer #top .slide-out-widget-area-toggle .lines-button::after {
  background-color: #fff !important;
}

.lab-contact {
  background: #fff;
  color: var(--lab-ink);
  margin-left: calc(50% - 50vw);
  max-width: none;
  width: 100vw;
}

/* Preserve safe gutters on small screens, then taper toward a 70vw canvas. */
body.lab-contact-page-body .lab-contact .lab-shell {
  width: min(var(--lab-shell), calc(100% - clamp(40px, calc(65.8vw - 466px), 30vw)));
}

.lab-contact__hero {
  align-items: center;
  display: flex;
  min-height: 760px;
  padding: 190px 0 110px;
  text-align: center;
}

.lab-contact__hero-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: 1120px;
}

.lab-contact__hero .lab-eyebrow {
  margin-bottom: 20px;
}

.lab-contact__hero h1 span {
  color: var(--lab-blue);
}

.lab-contact__intro {
  color: var(--lab-blue);
  margin: 32px auto 0;
  max-width: 790px;
}

.lab-contact__content {
  border-top: 0;
  padding: 0 0 clamp(96px, 8.333vw, 160px);
}

body.lab-contact-page-body .lab-contact .lab-contact__content {
  border-top: 0;
  padding-top: 0;
}

.lab-contact__grid {
  align-items: stretch;
  display: grid;
  gap: clamp(56px, 6.25vw, 120px);
  grid-template-columns: minmax(300px, 5fr) minmax(520px, 7fr);
}

.lab-contact__details {
  background: var(--lab-ink);
  color: #fff;
  padding: clamp(22px, 1.5625vw, 30px);
}

@media (min-width: 768px) {
  body.lab-contact-page-body {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }
}

.lab-contact__details .lab-eyebrow {
  margin-bottom: 24px;
}

.lab-contact__details .lab-eyebrow {
  color: #91abb3;
}

.lab-contact__details .lab-type-heading {
  color: #fff;
  max-width: 470px;
}

.lab-contact__details-copy {
  color: #d6dddd;
  margin: 32px 0 0;
  max-width: 490px;
}

.lab-contact__address {
  display: flex;
  flex-direction: column;
  font-style: normal;
  gap: 10px;
  margin-top: 70px;
}

.lab-contact__address a,
.lab-contact__address span {
  color: #fff;
  text-decoration: none;
}

.lab-contact__address a:hover {
  color: #a7c2c9;
}

.lab-contact__address a:focus-visible {
  outline: 3px solid #a7c2c9;
  outline-offset: 4px;
}

.lab-contact__form-embed {
  margin-top: 48px;
}

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

.lab-contact-form__field {
  margin: 0;
}

.lab-contact-form__field--wide,
.lab-contact-form__privacy,
.lab-contact-form__submit {
  grid-column: 1 / -1;
}

.lab-contact-form__field label {
  color: var(--lab-ink);
  display: block;
  font: 600 16px/22px var(--lab-font-body);
  margin: 0 0 9px;
}

.lab-contact-form__required {
  color: var(--lab-blue);
}

.lab-contact-form__field input,
.lab-contact-form__field select,
.lab-contact-form__field textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(32, 34, 33, .45);
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  color: var(--lab-ink);
  font: 400 18px/28px var(--lab-font-body);
  margin: 0;
  padding: 10px 0 12px;
  width: 100%;
}

.lab-contact-form__field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--lab-ink) 50%),
    linear-gradient(135deg, var(--lab-ink) 50%, transparent 50%);
  background-position:
    calc(100% - 8px) 50%,
    100% 50%;
  background-repeat: no-repeat;
  background-size: 8px 8px, 8px 8px;
  padding-right: 30px;
}

.lab-contact-form__field textarea {
  min-height: 132px;
  resize: vertical;
}

body.lab-contact-page-body #lab-contact-message {
  min-height: 0;
}

.lab-contact-form__field input:focus,
.lab-contact-form__field select:focus,
.lab-contact-form__field textarea:focus {
  border-bottom-color: var(--lab-blue);
  box-shadow: 0 2px 0 var(--lab-blue);
  outline: 0;
}

.lab-contact-form__privacy {
  color: var(--lab-ink);
  font: 400 16px/24px var(--lab-font-body);
  margin: 2px 0 0;
}

.lab-contact-form__privacy .wpcf7-list-item {
  margin: 0;
}

.lab-contact-form__privacy label {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 12px;
}

.lab-contact-form__privacy input {
  accent-color: var(--lab-blue);
  flex: 0 0 auto;
  height: 22px;
  margin: 2px 0 0;
  width: 22px;
}

.lab-contact-form__submit {
  margin: 4px 0 0;
}

body.lab-contact-page-body .container-wrap .lab-contact-form__submit .wpcf7-submit {
  align-items: center;
  background: var(--lab-blue) !important;
  border: 0;
  border-radius: 999px !important;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: 400 18px/1 var(--lab-font-body);
  height: 49px;
  justify-content: center;
  margin: 0;
  padding: 0 24px !important;
  width: 280px;
}

body.lab-contact-page-body .container-wrap .lab-contact-form__submit .wpcf7-submit:hover {
  background: var(--lab-ink) !important;
}

.lab-contact-form__submit .wpcf7-submit:focus-visible,
.lab-contact-form__privacy input:focus-visible {
  outline: 3px solid var(--lab-blue);
  outline-offset: 4px;
}

.lab-contact .wpcf7-not-valid-tip {
  color: #a12d2d;
  font: 500 15px/22px var(--lab-font-body);
  margin-top: 7px;
}

.lab-contact .wpcf7-response-output {
  border: 1px solid var(--lab-blue) !important;
  color: var(--lab-ink);
  font: 500 16px/24px var(--lab-font-body);
  margin: 28px 0 0 !important;
  padding: 14px 18px !important;
}

.lab-contact__form-notice {
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .lab-contact__hero {
    min-height: 680px;
    padding-top: 160px;
  }

  .lab-contact__grid {
    gap: 48px;
  }

  .lab-contact__details {
    padding: 20px;
  }
}

@media (max-width: 1279px) {
  /* Keep the details panel and form from compressing inside the narrower shell. */
  .lab-contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .lab-contact__hero {
    min-height: 620px;
    padding: 130px 0 80px;
  }

  .lab-contact__hero h1 {
    font-size: var(--lab-type-display-size);
  }

  .lab-contact__intro {
    margin-top: 24px;
  }

  .lab-contact__content {
    padding: 0 0 96px;
  }

  .lab-contact__grid {
    display: block;
  }

  .lab-contact__details {
    min-height: 0;
    padding: 18px 14px 22px;
  }

  .lab-contact__address {
    margin-top: 44px;
  }

  .lab-contact__form {
    margin-top: 72px;
  }

  .lab-contact-form__grid {
    display: block;
  }

  .lab-contact-form__field,
  .lab-contact-form__privacy,
  .lab-contact-form__submit {
    margin-bottom: 26px;
  }

  .lab-contact-form__submit .wpcf7-submit {
    min-height: 49px;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-contact *,
  .lab-contact *::before,
  .lab-contact *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
