/* =========================================================================
   CONTACT PAGE — page-specific styles (loads only on page-contact.php)
   --------------------------------------------------------------------
   Form, fields, GDPR consent checkbox, office-info aside, and the
   small replacement "groups band" that took the place of the deleted
   three-team-card direct-contact band per Pass 4.
   --------------------------------------------------------------------
   The map-stamp / pin styles from the prototype are NOT carried over —
   the prototype showed a stylised mock map with a pin, which only made
   sense as decoration (the office isn't really at a confirmed address
   yet). When a real address is set, decide whether you actually want a
   map illustration here and add the styles back from the prototype.
   ========================================================================= */

/* GRID + FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form {
  --stamp-bg: var(--parchment);
  padding: 38px 36px 34px;
}
.contact-form::before { inset: 14px; }
.contact-form h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--lon-blue);
  margin-bottom: 18px;
  letter-spacing: -.01em;
}
.contact-form h3 em { font-style: italic; font-weight: 700; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--f-stamp);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--stone);
}
.field input,
.field textarea,
.field select {
  font-family: var(--f-body);
  font-size: 14px;
  background: var(--parchment-tint);
  border: 1px solid rgba(46,74,92,.2);
  padding: 11px 14px;
  color: var(--basalt-ink);
  border-radius: 2px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--oxide-rust);
  background: var(--parchment);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; font-family: inherit; }
.field-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  margin: 18px 0 22px;
  color: var(--basalt-ink);
  opacity: .85;
  line-height: 1.5;
}
.field-checkbox input { margin-top: 3px; accent-color: var(--oxide-rust); }
.contact-form button[type="submit"] {
  width: 100%;
}

/* OFFICE INFO ASIDE */
.contact-info h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--lon-blue);
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.contact-info h3 em { font-style: italic; font-weight: 700; }
.info-block {
  border-top: 1px solid rgba(46,74,92,.18);
  padding: 20px 0 18px;
}
.info-block:last-child { border-bottom: 1px solid rgba(46,74,92,.18); }
.info-block .label {
  font-family: var(--f-stamp);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--stone);
  margin-bottom: 6px;
}
.info-block .value {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--lon-blue);
  font-weight: 500;
  line-height: 1.4;
}
.info-block .value a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(46,74,92,.3); }
.info-block .value a:hover { border-color: var(--oxide-rust); color: var(--oxide-rust); }
.info-block .sub {
  font-size: 13px;
  color: var(--basalt-ink);
  opacity: .75;
  margin-top: 4px;
  line-height: 1.55;
}


/* SUCCESS / ERROR BANNER inside the form */
.contact-banner {
  margin: 0 0 22px 0;
  padding: 14px 18px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  border-left: 3px solid currentColor;
}
.contact-banner.success { background: rgba(107, 122, 76, 0.12); color: var(--moss); }
.contact-banner.error   { background: rgba(181, 67, 42, 0.10); color: var(--oxide-rust); }
.contact-banner a { color: inherit; border-bottom: 1px solid currentColor; text-decoration: none; }

/* When no office values exist yet — show a quiet placeholder */
.info-empty {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--stone);
  border-top: 1px solid rgba(46, 74, 92, 0.15);
  padding-top: 20px;
  margin-top: 8px;
  line-height: 1.6;
}

/* GROUPS BAND — small post-form section, replaces the deleted
   three-team-card direct-contact band. */
.groups-band {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.groups-band h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--lon-blue);
  letter-spacing: -.01em;
  margin: 12px 0 18px;
}
.groups-band h2 em { font-style: italic; font-weight: 700; }
.groups-band p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--basalt-ink);
}
.groups-band p a {
  color: var(--oxide-rust);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/* MOBILE — contact-specific */
@media (max-width: 960px) {
  .contact-grid, .field-row { grid-template-columns: 1fr; gap: 30px; }
  .contact-form { padding: 28px 22px 26px; }
}

/* PASS 9: small fallback line under submit button */
.form-fallback {
  margin-top: 18px;
  font-size: 13px;
  color: var(--stone);
  line-height: 1.5;
}
.form-fallback a {
  color: var(--lon-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(46,74,92,.25);
  transition: border-color .2s ease;
}
.form-fallback a:hover { border-bottom-color: var(--oxide-rust); }
