/* Shared form presentation for enquiry and newsletter pages.
   Load after draft.css, site.css and utility.css. Page styles own composition;
   this file owns fields, consent controls, feedback and the primary action. */
body.contact-page {
  --paper: #fff;
  --ink: #1d2225;
  --muted: #5d656a;
  --contact-line: #d7dcde;
  --contact-field-line: #858d91;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}
.contact-page .global-header,
.contact-page .global-menu,
.contact-page .global-menu::backdrop {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--contact-line);
}
.contact-page .global-brand img,
.contact-page .global-menu-brand img {
  filter: brightness(0);
}
.contact-page .global-menu nav a:hover,
.contact-page .global-menu nav a[aria-current] {
  color: var(--muted);
}
.contact-page .cr-form-fields,
.contact-page .cr-form-row {
  gap: 20px;
}
.contact-page .field label {
  color: #343a3e;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.contact-page .field :is(input, select, textarea) {
  border: 1px solid var(--contact-line);
  border-radius: 12px;
  background-color: #f7f7f7;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
}
.contact-page .field textarea {
  min-height: 148px;
  max-height: 450px;
  resize: vertical;
}
.contact-page .field input::placeholder,
.contact-page .field textarea::placeholder {
  color: #676e72;
}
.contact-page .field select {
  background-image: url("select-chevron.svg");
  padding-right: 42px;
}
.contact-page .field :is(input, select, textarea):hover:not(:disabled) {
  background-color: #f0f1f2;
  border-color: var(--muted);
}
.contact-page .field :is(input, select, textarea):focus-visible {
  background-color: var(--paper);
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.contact-page .field :is(input, select, textarea):focus-visible:hover:not(:disabled) { background-color: var(--paper); }
.contact-page .field :is(input, select, textarea):disabled {
  color: #676e72;
  background-color: #f0f1f2;
  cursor: not-allowed;
  opacity: 1;
}
.contact-page .field input:-webkit-autofill,
.contact-page .field input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #f7f7f7 inset;
}
.contact-page .field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset;
}
.contact-page .field select option {
  color: var(--ink);
  background: var(--paper);
}
.contact-page .field [aria-invalid="true"],
.contact-page .field [aria-invalid="true"]:hover:not(:disabled) {
  border-color: #a12622;
}
.contact-page :is(.field-error, .contact-form-status) {
  font-size: 15px;
  line-height: 1.55;
}
.contact-page .field-error,
.contact-page .contact-form-status.is-warn,
.contact-page .contact-form-status:is([data-state="invalid"], [data-state="error"], [data-state="uncertain"]) {
  color: #a12622;
}
.contact-page .contact-form-status.is-success,
.contact-page .contact-form-status[data-state="received"] {
  color: #226247;
}
.contact-page .cr-newsletter-option {
  margin-top: 26px;
  padding-block: 22px;
  border-block: 1px solid var(--contact-line);
}
.contact-page :is(.cr-newsletter-label, .check) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #343a3e;
  font-size: 15px;
  line-height: 1.55;
  cursor: pointer;
}
.contact-page :is(.cr-newsletter-label, .check) > span {
  min-width: 0;
}
.contact-page :is(.cr-newsletter-label, .check) input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.contact-page :is(.cr-newsletter-label, .check) input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.contact-page .cr-newsletter-help {
  margin: 8px 0 0 30px;
}
.contact-page .processing-consent {
  display: block;
  margin-top: 8px;
}
.contact-page :is(.cr-newsletter-help, .processing-consent, .enquiry-preview-note, .integration-note, .form-privacy, .cr-form-privacy, .cr-form-submit-note, .foundation-noscript) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.contact-page .form-privacy {
  max-width: 365px;
}
.contact-page :is(.cr-form-privacy, .form-privacy) a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Both controllers replace button text; keep their matching arrow in CSS. */
.contact-page :is(#contactSubmit, #newsletter-submit) {
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.45;
  gap: 12px;
  text-align: center;
}
.contact-page :is(#contactSubmit, #newsletter-submit):hover:not(:disabled) {
  background: #343a3e;
  text-decoration: none;
}
.contact-page :is(#contactSubmit, #newsletter-submit):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.contact-page :is(#contactSubmit, #newsletter-submit)::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -.12em;
  font-size: 18px;
  background-color: currentColor;
  -webkit-mask: var(--nova-arrow-mask) center / contain no-repeat;
  mask: var(--nova-arrow-mask) center / contain no-repeat;
  forced-color-adjust: none;
}
.contact-page :is(#contactSubmit, #newsletter-submit):disabled {
  cursor: not-allowed;
}
/* Only surface colors are restored here, at the canonical 800px breakpoint.
   Header dimensions, position, menu behavior and grid remain owned by site.css. */
@media (max-width: 800px) {
  .contact-page .global-header {
    background: rgba(var(--surface-stone-rgb), .68);
    border-bottom-color: rgba(85, 99, 105, .10);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .30) inset;
  }
  .contact-page .global-menu {
    background: rgba(var(--surface-stone-rgb), .91);
  }
  .contact-page .global-menu::backdrop {
    background: rgba(29, 29, 31, .14);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (max-width: 800px) {
    .contact-page .global-header,
    .contact-page .global-menu { background: var(--surface-stone); }
  }
}
@media (max-width: 800px) and (prefers-reduced-transparency: reduce) {
  .contact-page .global-header,
  .contact-page .global-menu { background: var(--surface-stone); }
}
@media (max-width: 760px) {
  .contact-page .cr-newsletter-option { margin-top: 22px; }
  .contact-page .field textarea { height: 112px; min-height: 112px; }
  .contact-page :is(.cr-newsletter-label, .check) input[type="checkbox"] { margin-top: 4px; }
}
@media (forced-colors: active) {
  .contact-page .field :is(input, select, textarea),
  .contact-page .field :is(input, select, textarea):focus-visible {
    background: Field;
    color: FieldText;
    border-color: ButtonText;
  }
  .contact-page .field :is(input, select, textarea):disabled { color: GrayText; }
  .contact-page .field select { background-image: none; }
  .contact-page :is(#contactSubmit, #newsletter-submit),
  .contact-page :is(#contactSubmit, #newsletter-submit):hover:not(:disabled) {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
  }
  .contact-page .global-header,
  .contact-page .global-menu,
  .contact-page .global-menu::backdrop {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
  }
  .contact-page .global-menu nav a { color: LinkText; }
}

/* Email confirmation is a pending step, separate from a completed enquiry. */
.contact-page .newsletter-confirmation-hint {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.contact-page .cr-newsletter-option .newsletter-confirmation-hint { margin: 8px 0 0 30px; }
.contact-page .newsletter-confirmation {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--contact-line);
  border-radius: 12px;
  background: #f7f7f7;
  color: var(--ink);
}
.contact-page .newsletter-confirmation[hidden],
.contact-page .newsletter-confirmation-hint[hidden] { display: none; }
.contact-page #main .newsletter-confirmation-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.contact-page .newsletter-confirmation p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; }
.contact-page .newsletter-confirmation-sender { overflow-wrap: anywhere; }
.contact-page .newsletter-confirmation-complete { font-weight: 600; }
.contact-page .newsletter-confirmation .newsletter-confirmation-existing { color: var(--muted); font-size: 14px; }
.contact-page .newsletter-confirmation:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.contact-page .contact-form-status[data-state="edited"] { color: #a12622; }
.contact-page .cr-contact-form.is-success.has-newsletter-confirmation > .cr-form-actions {
  display: block;
  min-height: 0;
  padding-block: 24px;
}
.contact-page .cr-contact-form.is-success.has-newsletter-confirmation .contact-form-status {
  max-width: none;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0;
}
@media (max-width: 760px) {
  .contact-page .newsletter-confirmation { padding: 20px; }
  .contact-page #main .newsletter-confirmation-title { font-size: 20px; }
}

.contact-page .newsletter-confirmation-help { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--contact-line); }
.contact-page .newsletter-confirmation-help summary { cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.5; }
.contact-page .newsletter-confirmation-help summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.contact-page .newsletter-confirmation-help p { color: var(--muted); font-size: 14px; }
