/* ============================================================
   GEM — Contact page (contact.html ONLY, loaded after styles.css).
   Two-column intro + form layout; form fields reuse the shared
   .field system. Compat rules as everywhere: no :has(), no inset
   shorthand, no flex gap (grid-gap only).
   ============================================================ */
.contact-cols {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 2rem;
}
@media (min-width: 900px) {
  .contact-cols {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
    grid-gap: clamp(2.25rem, 4vw, 4rem);
    align-items: start;
  }
}
.contact-intro__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--purple-deep);
}
.contact-intro p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 46ch;
}
.contact-email-block { margin: 0 0 1.1rem; }
.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;                       /* tap target */
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
  word-break: break-all;
}
.contact-email:hover { color: var(--purple-bright); }
.contact-email:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.contact-intro__note {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  border-top: 1px solid rgba(187, 134, 63, 0.4);
  padding-top: 0.9rem;
}

/* ============ 2026-08 - reason-first enquiry form (the routing cards and
   urgent panel this rebuild also introduced were REVERTED per client
   direction; the original .contact-intro left column above is live again,
   and .contact-cols' own two-column grid handles the layout). ============ */

/* --- Enquiry form card (the standard white card recipe; inputs reuse the
       shared .field system untouched) --- */
.contact2 .contact-form-col {
  background: var(--white);
  border: 1px solid rgba(58, 42, 102, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.contact2__formhead { margin: 0 0 0.2rem; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--purple-deep); }
.contact2__formhead:focus { outline: none; }   /* tabindex=-1 focus target (the media-card jump link) - ring not needed on a heading */
.contact2__req { margin: 0 0 1.1rem; font-size: 0.85rem; color: var(--text-muted); }
.contact2__msghead { display: flex; align-items: baseline; justify-content: space-between; }
.contact2__count { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.contact2__privacy { margin: 0.9rem 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); }
.contact2__privacy a { color: var(--purple); font-weight: 600; }
.contact2__submitrow { margin: 1rem 0 0; display: flex; align-items: center; }
.contact2__respnote { margin-left: 0.8rem; font-size: 0.85rem; color: var(--text-muted); }
/* Conditional organisation field: 200ms ease open for motion users; the
   [hidden] attribute (set by JS) removes it from layout, tab order and the
   accessibility tree when not relevant. */
.contact2__orgwrap { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .contact2__orgwrap { transition: opacity 0.2s ease; }
}
/* Error summary - quiet card, purple-deep text, links focus their fields. */
.contact2__errsum {
  margin: 0 0 1.1rem;
  padding: 0.8rem 1rem;
  background: var(--lavender-light);
  border: 1px solid rgba(58, 42, 102, 0.25);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius);
}
.contact2__errsum-head { margin: 0 0 0.4rem; font-weight: 700; font-size: 0.95rem; color: var(--purple-deep); }
.contact2__errsum-list { margin: 0; padding-left: 1.1rem; }
.contact2__errsum-list li { margin: 0 0 0.25rem; font-size: 0.9rem; }
.contact2__errsum-list a { color: var(--purple); font-weight: 600; }
/* Success panel - replaces the form fields in place on CONFIRMED success. */
.contact2__success { padding: 0.25rem 0 0; }
.contact2__success-head { margin: 0 0 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--purple-deep); }
.contact2__success-head:focus { outline: none; }   /* programmatic focus target */
.contact2__success p { margin: 0 0 0.7rem; font-size: 0.98rem; line-height: 1.6; color: var(--text); }
.contact2__success a { display: inline-flex; align-items: center; min-height: 44px; color: var(--purple); font-weight: 600; }
.contact2__success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 0.8em;
}
