/* Route-local contact system: quiet surfaces, explicit states, no decorative dividers. */
.contact-page {
  --contact-canvas: oklch(0.97 0.008 95);
  --contact-field: oklch(0.94 0.009 95);
  --contact-hover: oklch(0.915 0.012 95);
  --contact-muted: oklch(0.45 0.025 160);
  --contact-error: oklch(0.43 0.14 30);
  --contact-ease: cubic-bezier(.22, 1, .36, 1);
  background: var(--contact-canvas);
}
.contact-page .site-header.is-solid { background: var(--contact-canvas); }
.contact-enquiry { padding-block: clamp(144px, 13vw, 192px) clamp(72px, 8vw, 112px); }
.contact-layout { align-items: start; column-gap: clamp(48px, 7vw, 104px); }
.contact-intro h1 {
  margin: 0;
  font-family: "Parkinsans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(64px, 6.4vw, 96px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.08;
}
.contact-lead {
  max-width: 32ch;
  margin: 30px 0 0;
  color: var(--contact-muted);
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.5;
}
.contact-details { max-width: 360px; margin-top: 52px; font-size: 15px; line-height: 1.6; }
.contact-details p { margin: 0; }
.contact-office-details { display: grid; align-content: start; gap: 8px; min-height: 254px; margin-top: 18px; }
.contact-office-label { margin: 0; color: var(--orange-text); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.contact-office-address { max-width: 37ch; margin: 0; font-size: 16px; font-style: normal; line-height: 1.5; }
.contact-phone { display: flex; width: fit-content; min-height: 44px; align-items: center; font-size: 16px; letter-spacing: -.015em; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-office-fallback { display: grid; gap: 24px; margin-top: 20px; }
.contact-office-fallback h2 { margin: 0; font: 500 32px/1.1 "Parkinsans", sans-serif; }
.contact-office-fallback section { display: grid; justify-items: start; gap: 8px; }
.contact-office-fallback h3 { margin: 0; color: var(--orange-text); font-size: 12px; letter-spacing: .12em; }
.contact-office-fallback address { font-size: 16px; font-style: normal; line-height: 1.5; }
.contact-office-fallback a { min-height: 32px; }
.contact-email {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  letter-spacing: -.025em;
  text-decoration: none;
  transition: color 180ms ease;
}
.contact-email [data-office-email-text] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 180ms ease;
}
.contact-email__arrow { flex-shrink: 0; transition: transform 220ms var(--contact-ease); }
.contact-form { min-width: 0; padding-top: 6px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-field { display: grid; align-content: start; min-width: 0; gap: 9px; }
.contact-field--message { grid-column: 1 / -1; }
.contact-field label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 400; line-height: 1.4; }
.contact-optional { color: var(--contact-muted); font-size: 12px; }
.contact-field :is(input, select, textarea, .contact-select__trigger) {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  background: var(--contact-field);
  font: 400 16px/1.5 "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.contact-field select { cursor: pointer; }
.contact-field textarea { min-height: 174px; resize: vertical; }
.contact-field :is(input, textarea)::placeholder { color: var(--contact-muted); opacity: 1; }
.contact-field :is(input, select, textarea, .contact-select__trigger):focus {
  background: var(--contact-canvas);
  border-color: transparent;
  box-shadow: none;
  outline: 2px solid var(--ink);
  outline-offset: 0;
}
.contact-page :is(.contact-submit, .contact-email, .contact-phone):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.contact-select { position: relative; min-width: 0; }
.contact-select__trigger { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; cursor: pointer; }
.contact-select__trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin: -4px 5px 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms var(--contact-ease);
}
.contact-select__trigger[aria-expanded="true"]::after { transform: translateY(4px) rotate(225deg); }
.contact-select__list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid oklch(0.45 0.025 160 / .2);
  border-radius: 10px;
  color: var(--ink);
  background: var(--contact-canvas);
  box-shadow: 0 10px 28px oklch(0.3 0.025 160 / .1);
}
.contact-select.opens-up .contact-select__list { top: auto; bottom: calc(100% + 8px); }
.contact-select__option { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 5px; font-size: 16px; line-height: 1.4; cursor: pointer; }
.contact-select__option.is-active { background: var(--contact-field); }
.contact-select__option[aria-selected="true"]::after { content: "✓"; flex-shrink: 0; font-size: 14px; }

.contact-error { min-height: 18px; color: var(--contact-error); font-size: 13px; line-height: 1.4; }
.contact-field [aria-invalid="true"] { border-color: var(--contact-error); }
.contact-field [aria-invalid="true"]:focus { border-color: transparent; outline-color: var(--contact-error); }
.contact-consent { display: grid; gap: 10px; margin-top: 20px; color: var(--ink); font-size: 14px; line-height: 1.4; }
.contact-consent label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.contact-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange-brand); }
.contact-consent a { color: inherit; text-underline-offset: 3px; }
.contact-consent input:focus-visible { outline: 2px solid var(--orange-brand); outline-offset: 3px; }
.contact-form__footer { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.contact-submit {
  display: inline-flex;
  flex-shrink: 0;
  min-width: 210px;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  color: var(--ink-deep);
  background: var(--orange-action);
  font: 600 16px/1.5 "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 200ms ease, transform 220ms var(--contact-ease);
}
.contact-submit__arrow { font-size: 22px; line-height: 1; transition: transform 220ms var(--contact-ease); }
.contact-submit:not(:disabled):active { transform: scale(.98); }
.contact-submit:disabled { color: var(--contact-muted); background: var(--contact-field); cursor: wait; }
.contact-form__footer p { max-width: 32ch; margin: 0; color: var(--contact-muted); font-size: 13px; line-height: 1.5; }
.contact-status { min-height: 44px; margin: 16px 0 0; color: var(--contact-muted); font-size: 14px; line-height: 1.5; }
.contact-manual-copy { margin-top: 16px; }
.contact-manual-copy p { margin: 0; font-size: 14px; }
.contact-page [hidden] { display: none !important; }
.contact-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-page .site-footer { margin-top: 0; }

@media (hover: hover) and (pointer: fine) {
  .contact-field :is(input, select, textarea, .contact-select__trigger):not(:focus):hover { background: var(--contact-hover); }
  .contact-select__option:hover { background: var(--contact-hover); }
  .contact-submit:not(:disabled):hover { background: var(--orange-action-hover); }
  .contact-submit:not(:disabled):hover .contact-submit__arrow,
  .contact-email:hover .contact-email__arrow { transform: translate(2px, -2px); }
  .contact-email:hover, .contact-phone:hover { color: var(--ink); }
  .contact-email:hover [data-office-email-text] { text-decoration-color: currentColor; }
}
@media (max-width: 1050px) and (min-width: 801px) {
  .contact-form__footer { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 800px) {
  .contact-enquiry { padding-block: 116px 64px; }
  .contact-layout { row-gap: 26px; }
  .contact-intro h1 { font-size: clamp(56px, 11vw, 80px); }
  .contact-lead { margin-top: 20px; }
  .contact-details { max-width: 100%; margin-top: 32px; }
  .contact-office-details { min-height: 254px; margin-top: 18px; }
  .contact-form { padding-top: 0; }
}
@media (max-width: 520px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .contact-field--message { margin-top: 4px; }
  .contact-form__footer { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 24px; }
  .contact-form__footer p { max-width: 40ch; }
  .contact-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-page :is(input, select, textarea, .contact-select__trigger, .contact-submit, .contact-submit__arrow, .contact-email, .contact-email span, .contact-email__arrow) { transition: none; transform: none !important; }
  .contact-select__trigger::after { transition: none; }
}
@media (forced-colors: active) {
  .contact-field :is(input, select, textarea, .contact-select__trigger), .contact-submit { border-color: ButtonText; }
  .contact-select__option.is-active { color: HighlightText; background: Highlight; }
}
