.contact-page {
  --contact-gutter: clamp(18px, 3.125vw, 60px);
  --contact-navy: var(--brand-navy);
  --contact-copy: #415774;
  --contact-line: #cdd9e8;
  background: #f4f7f9;
  font-family: system-ui, sans-serif;
}

.contact-page > .interior-header { border: 0; border-bottom: 1px solid var(--contact-line); background: #fff; }
.contact-page .interior-header__inner { width: calc(100% - 2 * var(--contact-gutter)); min-height: 66px; }
.contact-page .interior-breadcrumbs li { color: var(--contact-navy); font-size: clamp(13px, .83vw, 16px); }
.contact-page .interior-breadcrumbs a { color: var(--contact-copy); text-decoration: none; }
.contact-page .interior-breadcrumbs a:hover { text-decoration: underline; }
.contact-page .interior-header__phone {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  padding: .45em 0;
  color: var(--contact-navy);
  background: transparent;
  font-size: clamp(13px, .83vw, 16px);
}
.contact-page .interior-header__phone:hover { text-decoration: underline; text-underline-offset: .25em; }
.contact-page .interior-header__phone span { font-size: 1.18em; line-height: 1; }

.contact-shell { padding: clamp(22px, 1.67vw, 32px) var(--contact-gutter) clamp(36px, 3.4vw, 65px); }
.contact-hero, .contact-details { position: relative; overflow: hidden; isolation: isolate; }
.contact-hero {
  padding: clamp(26px, 1.93vw, 37px) clamp(23px, 2.55vw, 49px) clamp(27px, 1.77vw, 34px);
  color: #fff;
  background: var(--contact-navy);
}
.contact-hero::after, .contact-details::after {
  position: absolute;
  z-index: -1;
  background:
    repeating-linear-gradient(var(--drawing-angle), transparent 0 26px, rgb(215 152 0 / var(--drawing-opacity)) 26px 27px, transparent 27px 34px),
    repeating-linear-gradient(90deg, rgb(215 152 0 / 14%) 0 1px, transparent 1px 27px),
    repeating-linear-gradient(0deg, rgb(215 152 0 / 14%) 0 1px, transparent 1px 27px);
  content: '';
}
.contact-hero::after { --drawing-angle: 163deg; --drawing-opacity: 26%; right: 0; bottom: 0; width: 28%; height: 65%; }
.contact-details::after { --drawing-angle: 147deg; --drawing-opacity: 42%; right: 7%; bottom: 6%; width: 40%; height: 22%; }
.contact-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 clamp(11px, .83vw, 16px);
  color: #dce6ee;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 20px;
  text-transform: uppercase;
}
.contact-hero__eyebrow::before { width: 28px; height: 2px; background: var(--brand-gold); content: ''; }
.contact-hero h1 { margin: 0; color: #fff; font: 700 clamp(37px, 3.33vw, 64px) / 1.06 system-ui, sans-serif; letter-spacing: -.018em; }
.contact-hero__summary { margin: clamp(12px, .85vw, 16px) 0 0; color: #edf2f6; font-size: clamp(16px, 1.04vw, 20px); line-height: 1.45; }

.contact-panels {
  display: grid;
  grid-template-columns: minmax(0, 63.85fr) minmax(0, 36.15fr);
  gap: clamp(16px, 1.15vw, 22px);
  margin-top: clamp(21px, 1.67vw, 32px);
}
.contact-enquiry, .contact-details { min-height: clamp(490px, 28.3vw, 543px); padding: clamp(23px, 1.72vw, 33px); }
.contact-enquiry { padding-top: clamp(23px, 1.45vw, 28px); border: 1px solid var(--contact-line); background: #fff; }
.contact-details { padding-inline: clamp(23px, 1.93vw, 37px); background: #e8eef5; }
.contact-panels h2, .contact-office h2 { margin: 0; color: var(--contact-navy); font-size: clamp(26px, 1.88vw, 36px); font-weight: 700; line-height: 1.15; }
.contact-enquiry h2 { margin-bottom: clamp(16px, 1.14vw, 22px); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px clamp(14px, 1.15vw, 22px); }
.contact-field { min-width: 0; }
.contact-field--message { grid-column: 1 / -1; }
.contact-field label { display: block; margin: 0 0 8px; color: var(--brand-navy); font-size: clamp(14px, .83vw, 16px); font-weight: 700; line-height: 1.35; }
.contact-field :is(input, textarea, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--contact-line);
  border-radius: 0;
  color: var(--brand-navy);
  background: #f5f7f9;
  font: 400 16px / 1.35 system-ui, sans-serif;
}
.contact-field :is(input, textarea)::placeholder, .contact-field select:invalid { color: var(--contact-copy); opacity: 1; }
.contact-field select { appearance: none; padding-right: 36px; cursor: pointer; }
.contact-field--select { position: relative; }
.contact-field--select::after { position: absolute; right: 16px; bottom: 20px; width: 9px; height: 9px; border: solid var(--contact-navy); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; content: ''; }
.contact-field textarea { min-height: 111px; resize: vertical; }
.contact-field :is(input, textarea, select):focus { border-color: var(--brand-navy); outline: 2px solid #9bb6d8; outline-offset: 1px; background: #fff; }
.contact-enquiry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: clamp(20px, 1.67vw, 32px); }
.contact-enquiry__actions p { margin: 0; color: var(--contact-copy); font-size: 14px; line-height: 1.4; }
.contact-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: .7em 1.15em;
  border: 1px solid var(--contact-navy);
  color: #fff;
  background: var(--contact-navy);
  font: 650 15px / 1.2 system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.contact-button:is(:hover, :focus-visible) { border-color: var(--brand-hover); color: #fff; background: var(--brand-hover); box-shadow: 0 5px 13px rgb(0 34 70 / 23%); text-decoration: none; }
.contact-button span { font-size: 1.28em; line-height: 1; }

.contact-details dl { margin: clamp(20px, 1.67vw, 32px) 0 0; }
.contact-details dl > div { padding: clamp(16px, 1.2vw, 23px) 0; border-top: 1px solid #bacbde; }
.contact-details dt { margin-bottom: clamp(10px, .83vw, 16px); color: var(--contact-copy); font-size: 13px; font-weight: 700; letter-spacing: .15em; line-height: 1.35; text-transform: uppercase; }
.contact-details dd { margin: 0; }
.contact-details__phone { color: var(--contact-navy); font-size: clamp(26px, 1.77vw, 34px); font-weight: 700; line-height: 1.25; }
.contact-details__phone:is(:hover, :focus-visible) { color: var(--brand-hover); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.contact-details address { margin: 0; color: var(--contact-copy); font-size: clamp(15px, .9vw, 17px); font-style: normal; line-height: 1.7; }
.contact-details address strong { color: var(--contact-navy); font-size: clamp(17px, 1.06vw, 20px); }

.contact-office { margin-top: clamp(31px, 2.97vw, 57px); padding-top: clamp(21px, 1.35vw, 26px); border-top: 1px solid #bdccdf; }
.contact-office__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; }
.contact-office__header p { margin: 9px 0 0; color: var(--contact-copy); font-size: clamp(15px, .9vw, 17px); line-height: 1.45; }
.contact-map {
  position: relative;
  height: clamp(285px, 22.5vw, 430px);
  margin: clamp(21px, 1.77vw, 34px) 0 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #bdccdf;
  background: #e8e6dd;
}
.contact-map__drawing {
  position: absolute;
  inset: -40%;
  transform: scale(var(--map-scale, 1)) rotate(-10deg) skewX(12deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 264px, #d8d1bf 264px 265px, #f9f0d5 265px 282px, #d8d1bf 282px 283px),
    repeating-linear-gradient(90deg, transparent 0 372px, #d8d1bf 372px 373px, #f7efd8 373px 388px, #d8d1bf 388px 389px),
    repeating-linear-gradient(0deg, transparent 0 74px, #cccbbf 74px 75px, #faf9f4 75px 82px, #cccbbf 82px 83px),
    repeating-linear-gradient(90deg, transparent 0 120px, #cccbbf 120px 121px, #faf9f4 121px 128px, #cccbbf 128px 129px),
    conic-gradient(from 90deg at 22px 20px, #d8dbd3 90deg, transparent 0) 0 0 / 64.5px 83px,
    repeating-conic-gradient(#dce8da 0 25%, #e8e6de 0 75%, #dce8da 0) 0 0 / 258px 166px;
}
.contact-map__location {
  position: absolute;
  top: 29%;
  left: 50%;
  display: grid;
  width: min(calc(100% - 36px), 340px);
  justify-items: center;
  gap: 22px;
  transform: translateX(-50%);
  color: var(--contact-navy);
  text-decoration: none;
}
.contact-map__callout { display: grid; width: 100%; gap: 5px; padding: 10px clamp(12px, .93vw, 18px); border: 1px solid var(--contact-line); background: #fff; font-size: clamp(15px, .9vw, 17px); line-height: 1.35; }
.contact-map__callout > span { color: var(--contact-copy); font-size: 15px; }
.contact-map__pin { display: grid; width: 34px; height: 34px; place-items: center; transform: rotate(-45deg); border-radius: 50% 50% 50% 0; background: var(--contact-navy); }
.contact-map__pin::after { width: 11px; height: 11px; border-radius: 50%; background: #fff; content: ''; }
.contact-map__location:is(:hover, :focus-visible) { text-decoration: none; }
.contact-map__location:is(:hover, :focus-visible) .contact-map__callout { border-color: #819ec5; box-shadow: 0 5px 16px rgb(0 34 70 / 20%); }
.contact-map figcaption { position: absolute; bottom: 14px; left: 14px; padding: 5px 10px; color: var(--contact-copy); background: #fff; font-size: 13px; line-height: 1.35; }
.contact-map__zoom { position: absolute; right: clamp(10px, .98vw, 19px); bottom: clamp(14px, 1.83vw, 35px); display: grid; border: 1px solid #bdccdf; background: #fff; }
.contact-map__zoom[hidden] { display: none; }
.contact-map__zoom button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; color: var(--contact-navy); background: #fff; font: 700 22px / 1 system-ui, sans-serif; cursor: pointer; }
.contact-map__zoom button + button { border-top: 1px solid var(--contact-line); }
.contact-map__zoom button[aria-disabled='true'] { color: #61728c; cursor: default; }
.contact-map__zoom button:not([aria-disabled='true']):is(:hover, :focus-visible) { background: #e4efff; }
.contact-map__zoom button:focus-visible { z-index: 1; outline-offset: -3px; }

@media (hover: hover) {
  .contact-field :is(input, textarea, select):hover:not(:focus) { border-color: #829ec3; background: #f0f5fc; }
}
@media (prefers-reduced-motion: no-preference) {
  .contact-button, .contact-field :is(input, textarea, select) { transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease; }
  .contact-button span, .contact-map__drawing { transition: transform .25s ease; }
  .contact-button:is(:hover, :focus-visible) span { transform: translate(4px, -4px); }
}
@media (max-width: 850px) {
  .contact-panels { grid-template-columns: minmax(0, 1fr); }
  .contact-enquiry, .contact-details { min-height: 0; }
}
@media (max-width: 700px) {
  .contact-page .interior-header__inner { min-height: 53px; }
}
@media (max-width: 520px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
  .contact-hero::after { width: 44%; opacity: .7; }
  .contact-map__location { top: 18%; }
}

/* The CMS embed fills the existing responsive map area. */
.contact-map__embed { display: block; width: 100%; height: 100%; border: 0; }
