.contact-page {
  --contact-dark: #102629;
  --contact-line: #d9e3e1;
  --contact-pale: #f1f6f5;
  --contact-mint: #a2dcd1;
  --contact-gutter: clamp(22px, 3.6vw, 46px);
}

.contact-page .wrap { max-width: 1200px; }

.contact-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(470px, 43vw, 625px);
  color: var(--white);
  background: #101d20;
}

.contact-hero__image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -2;
}

.contact-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(9 23 25 / .85) 0, transparent 145px),
    linear-gradient(90deg, #101d20 15%, rgb(16 29 32 / .96) 37%, rgb(16 29 32 / .67) 48%, transparent 69%);
  pointer-events: none;
  content: '';
}

.contact-hero__copy {
  padding-block: calc(var(--header-h) + clamp(24px, 5vw, 70px)) clamp(58px, 7vw, 102px);
}

.contact-hero h1 {
  max-width: min(14.5ch, 48%);
  margin: 0;
  font-size: clamp(2.75rem, 1.68rem + 3.3vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.contact-hero p {
  max-width: min(48ch, 46%);
  margin-top: 20px;
  color: #e0eeec;
  font-size: clamp(1rem, .94rem + .32vw, 1.1875rem);
  line-height: 1.58;
}

.contact-hero__action {
  gap: 16px;
  min-height: 50px;
  margin-top: clamp(20px, 3vw, 32px);
  padding-inline: clamp(17px, 2vw, 26px);
}

.contact-hero__action span { font-size: 1.1rem; }
.contact-hero :focus-visible { outline-color: var(--contact-mint); }

.contact-enquiry {
  --contact-anchor-gap: 34px;
  padding-block: 0 clamp(43px, 6vw, 82px);
  background: var(--contact-pale);
  scroll-margin-top: calc(var(--header-h) + var(--contact-anchor-gap));
}

.admin-bar .contact-enquiry { scroll-margin-top: calc(var(--header-h) + var(--contact-anchor-gap) + 32px); }

.contact-enquiry__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.52fr);
  border: 1px solid var(--contact-line);
  background: var(--white);
  box-shadow: 0 22px 50px rgb(16 38 41 / .09);
}

@media (min-width: 901px) {
  .contact-enquiry__panel { top: -22px; }
}

.contact-enquiry__intro {
  padding: var(--contact-gutter);
  color: var(--white);
  background: radial-gradient(ellipse at 30% 0, #214145, transparent 73%), var(--contact-dark);
}

.contact-enquiry__intro h2,
.contact-references h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.contact-enquiry__intro p {
  max-width: 36ch;
  margin-top: 14px;
  color: #d6e9e7;
  font-size: 1rem;
  line-height: 1.64;
}

.contact-enquiry__checklist {
  margin-top: clamp(21px, 3vw, 35px);
  border-top: 1px solid #456164;
}

.contact-enquiry__checklist li {
  position: relative;
  padding: 14px 0 14px 17px;
  border-bottom: 1px solid #456164;
}

.contact-enquiry__checklist li::before {
  position: absolute;
  top: 23px;
  inset-inline-start: 0;
  width: 6px;
  height: 6px;
  background: var(--contact-mint);
  content: '';
}

.contact-enquiry__checklist li span {
  display: block;
  margin-top: 2px;
  color: #d6e9e7;
  font-size: .875rem;
  line-height: 1.48;
}

.contact-enquiry__form {
  min-width: 0;
  padding: var(--contact-gutter);
}

.contact-enquiry__channels {
  display: grid;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 36px);
  font-style: normal;
}

.contact-enquiry__channels a {
  display: grid;
  justify-items: start;
  align-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  color: var(--white);
}

.contact-enquiry__channels span {
  color: #c2d7d2;
  font-size: .8125rem;
}

.contact-enquiry__channels strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: #789992;
  text-underline-offset: .23em;
}

.contact-enquiry__channels a:is(:hover, :focus-visible) strong { text-decoration-color: currentColor; }
.contact-enquiry__channels a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.vc-form--contact .vc-form__required-note {
  margin-bottom: 18px;
  color: #4f6061;
  font-size: .875rem;
}

.vc-form--contact :is(.vc-form__required-note, .field label) > span:not(.vc-form__optional) { color: #a52821; }

.vc-form--contact .vc-form__context {
  margin-bottom: 22px;
  padding: 9px 13px;
  border-inline-start: 3px solid var(--teal);
  color: #234b4b;
  background: #e9f4f1;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.vc-form--contact .vc-form__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.vc-form--contact .vc-form__group + .vc-form__group { margin-top: clamp(17px, 2.6vw, 28px); }

.vc-form--contact .vc-form__legend {
  width: 100%;
  margin-bottom: 13px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--contact-line);
  font-size: clamp(1rem, .92rem + .44vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.35;
}

.vc-form--contact .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.vc-form--contact .field { min-width: 0; gap: 4px; }
.vc-form--contact .field label { font-size: .875rem; line-height: 1.45; }
.vc-form--contact .vc-form__optional { margin-inline-start: 3px; color: #526465; font-size: .8125rem; font-weight: 400; }

.vc-form--contact .field :is(input, select, textarea) {
  min-height: 47px;
  padding: 9px 12px;
  border-color: #b5c6c4;
  background-color: #f7faf9;
  font-size: 16px;
  line-height: 1.4;
}

.vc-form--contact .field :is(input, select, textarea):focus {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  background: #fff;
}

.vc-form--contact .field :is(input, textarea):user-invalid { border-color: #b12c22; }
.vc-form--contact .field textarea { min-height: 105px; }

.vc-form--contact .vc-form__field-hint {
  color: #4f6061;
  font-size: .8125rem;
  line-height: 1.45;
}

.vc-form--contact .form-actions { margin-top: 21px; }
.vc-form--contact .form-actions .btn { min-height: 49px; padding-inline: 22px; }
.vc-form--contact .vc-form__privacy { margin-top: 11px; line-height: 1.5; }

.contact-references {
  padding-block: clamp(40px, 6vw, 80px);
  background: var(--white);
}

.contact-references__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  border-block: 1px solid var(--contact-line);
}

.contact-references__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 90px;
  padding: 15px 19px;
}

.contact-references__links a + a { border-inline-start: 1px solid var(--contact-line); }
.contact-references__links a:is(:hover, :focus-visible) { background: var(--contact-pale); }
.contact-references__links h3 { color: #174c4c; font-size: 1.125rem; }
.contact-references__links p { margin-top: 4px; color: var(--steel); line-height: 1.45; }
.contact-references__links a > span { color: var(--teal); font-size: 1.45rem; }

@media (max-width: 900px) {
  .contact-enquiry { --contact-anchor-gap: 12px; }
  .contact-enquiry__panel { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); }
}

@media (max-width: 782px) {
  .admin-bar .contact-enquiry { scroll-margin-top: calc(var(--header-h) + var(--contact-anchor-gap) + 46px); }
}

@media (max-width: 760px) {
  .contact-hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: 0;
  }
  .contact-hero__image {
    position: static;
    width: 100%;
    height: auto;
    max-height: 290px;
    aspect-ratio: 2 / 1;
    object-position: 55% 53%;
    clip-path: none;
    z-index: auto;
  }
  .contact-hero::after { content: none; }
  .contact-hero__copy { padding-block: calc(var(--header-h) + 23px) 31px; }
  .contact-hero h1 { max-width: 15ch; font-size: clamp(2.3rem, 1.43rem + 4.4vw, 3.7rem); }
  .contact-hero p { max-width: 48ch; margin-top: 13px; }
  .contact-hero__action { margin-top: 20px; }
  .contact-enquiry { padding-top: 23px; }
  .contact-enquiry__panel { grid-template-columns: minmax(0, 1fr); }
  .contact-enquiry__intro h2 { text-wrap: pretty; }
  .contact-enquiry__intro p { max-width: 52ch; }
  .contact-enquiry__checklist { margin-top: 17px; }
  .contact-enquiry__checklist li { padding-block: 9px; }
  .contact-enquiry__checklist li::before { top: 18px; }
}

@media (max-width: 520px) {
  .vc-form--contact .form-grid,
  .contact-references__links { grid-template-columns: minmax(0, 1fr); }
  .vc-form--contact .form-actions .btn { width: 100%; }
  .contact-references__links a + a { border-inline-start: 0; border-top: 1px solid var(--contact-line); }
}
