/* ─────────────────────────────────────────────────────────────────────────
   Contact — README §6.7.
   ───────────────────────────────────────────────────────────────────────── */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  margin-top: 56px;
}
.contact__info { flex: 1 1 340px; min-width: 0; }
.contact__form-card { flex: 1 1 420px; min-width: 0; padding: 36px; }

@media (max-width: 560px) {
  .contact__form-card { padding: 24px; }
}

/* ══ Left column ═════════════════════════════════════════════════════════ */
.contact__block { padding: 20px 0; }
.contact__block:first-child { padding-top: 0; }

.contact__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-45);
}

.contact__address { margin: 8px 0 0; font-size: 19px; line-height: 1.5; }
.contact__hours   { margin-top: 8px; font-size: 16px; line-height: 1.8; }
.contact__reach   { margin-top: 8px; font-size: 16px; line-height: 1.9; }

/* ══ Map ═════════════════════════════════════════════════════════════════ */
.contact__map {
  position: relative;
  height: 260px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-neutral-900);
}
.contact__map-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  margin: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-55);
}
.contact__map iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  /* OSM ships a light tile set; invert it into the dark palette (§6.7). */
  filter: invert(.92) hue-rotate(180deg) saturate(.5) brightness(1.05);
}
.contact__map-link { margin: 12px 0 0; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .contact__map iframe { transition: filter var(--dur) var(--ease); }
}

/* ══ Form ════════════════════════════════════════════════════════════════ */
.contact__form-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: var(--tracking-h2);
}
.contact__form-intro {
  margin: 12px 0 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-65);
}

/* The status line only occupies space once it says something. */
.contact__status { margin: 0; font-size: 14px; line-height: 1.6; }
.contact__status:empty { display: none; }
.contact__status.is-ok,
.contact__status.is-error { margin-bottom: 22px; padding: 12px 14px; border-radius: var(--radius-md); }
.contact__status.is-ok {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}
.contact__status.is-error {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--text-25);
}

.contact__topics { margin: 0 0 26px; padding: 0; border: 0; }
.contact__topic-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.contact__grid .field { margin: 0; }
.contact__message { margin: 16px 0 0; }

.contact__consent { margin: 20px 0 0; }
.contact__consent .checkbox__text { font-size: 13px; line-height: 1.55; color: var(--text-70); }
.contact__consent a { text-decoration: underline; }

.contact__submit { margin-top: 22px; padding: 12px; }
.contact__submit[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   inputs, and this must look fillable to them. */
.contact__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-accent-300);
}
.field__error:empty { display: none; }
.input[aria-invalid="true"] { border-color: var(--color-accent); }

/* The consent label must stay a flex row. `.field > label` (0,1,1) would
   otherwise beat `.checkbox` (0,1,0) and blockify it, collapsing the box. */
.contact__consent .checkbox { display: flex; }
