/* ============================================================
   CONTACT - page-specific only (contact.html, nous-joindre.html).
   One heading, the form, a tenant band, the office and its map.
   ============================================================ */

/* ---- The heading and the form, in one narrow column.
        The nav is fixed, so the top padding clears it as .page-head does. ---- */
.contact-top {
  padding-block: clamp(7rem, 12vw, 9rem) clamp(3.5rem, 7vw, 5rem);
}

.contact-top-inner { max-width: 48rem; }

.contact-top h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.contact-form { gap: 1.25rem; }

/* The shared .form label is 10px caps; this form is the whole page. */
.contact-form > label,
.contact-form .form-row > label { font-size: 0.75rem; }

/* wireForm's consent lines lose to .form label (0,1,1): caps, and a flex
   column that stacked the box above its sentence. Box beside sentence here,
   and a box big enough for a thumb - the whole line is the label anyway. */
.contact-form .consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.contact-form .consent input[type="checkbox"] { width: 1.375rem; height: 1.375rem; margin: 0; }

.contact-form textarea { min-height: 140px; }

.contact-form button[type="submit"] { padding-block: 1.125rem; }

/* ---- Sending: wireForm disables the button and sets its "Sending…"
        label; a ring turns in front of it until the answer comes back. ---- */
.contact-form button[type="submit"]:disabled { cursor: progress; }

.contact-form button[type="submit"]:disabled::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.75em;
  vertical-align: -0.2em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: contact-spin 0.7s linear infinite;
}

@keyframes contact-spin { to { transform: rotate(360deg); } }

/* ---- The answer. Thank-you as a plate, so it cannot be missed. ---- */
/* Empty takes no room, but stays in the page so screen readers still hear it fill. */
.contact-form .form-status:empty { min-height: 0; margin-top: -1.25rem; }

.contact-form .form-status.is-ok {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--brand-wash);
  border-left: 3px solid var(--brand);
  padding: 1rem 1.125rem;
}

.contact-form .form-status.is-error { font-size: 0.9375rem; }

/* ---- Already a tenant: a band, not a card. --brand and --on-brand are
        a designed pair in both themes; --brand-deep turns pale in dark. ---- */
.tenant-band { background: var(--brand); color: var(--on-brand); }

.tenant-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  padding-block: clamp(2.25rem, 5vw, 3rem);
}

.tenant-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: inherit;
  margin: 0;
}

.tenant-band p { margin: 0.5rem 0 0; max-width: 56ch; opacity: 0.88; }

.tenant-band-btn { flex: none; background: var(--on-brand); color: var(--brand); }
.tenant-band-btn:hover { opacity: 0.9; }

@media (max-width: 760px) {
  .tenant-band-btn { width: 100%; text-align: center; padding-block: 1.125rem; }
}
