/* Contact page + thank-you page. Loaded only on those two pages.
   Readability spec (Oct 2026): boxed inputs, darker labels, 16px input text (also stops
   iOS zooming into a field on focus), lighter hero subtext, full-width button on mobile. */

/* ---------- hero ---------- */
.contact-header p { color: #D0D0D0; }
.landing-commercial .contact-header h1 { max-width: 22ch; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; }

/* ---------- trust strip (commercial landing only) ---------- */
.trust-strip { background: var(--charcoal); border-top: 1px solid var(--line-on-ink); }
.trust-strip ul {
  list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px;
}
.trust-strip li { font-size: 14px; line-height: 1.4; color: #D0D0D0; padding-left: 14px; border-left: 1px solid var(--bronze); }
.trust-strip strong { font-weight: 600; color: var(--ivory); }

/* ---------- form ---------- */
.inquiry-form .field label { color: #3A3A3A; font-size: 12px; letter-spacing: .06em; margin-bottom: 8px; }
.inquiry-form .field .req { color: var(--bronze-deep); }
.inquiry-form .field .optional { text-transform: none; letter-spacing: 0; color: #6b665e; }
.inquiry-form .field input,
.inquiry-form .field textarea,
.inquiry-form .field select {
  border: 1px solid #BDB6AA; border-radius: 4px; background-color: #fff;
  font-size: 16px; padding: 12px 14px; color: var(--ink);
}
.inquiry-form .field select { background-position: right 12px center; padding-right: 38px; }
.inquiry-form .field input::placeholder { color: #8d877c; }
.inquiry-form .field input:focus,
.inquiry-form .field textarea:focus,
.inquiry-form .field select:focus { border-color: var(--bronze-deep); }
.form-reassure { margin-top: 12px; font-size: 13.5px; color: #3A3A3A; }
/* Even spacing between stacked fields; the blank grid cell next to Phone takes no room. */
.inquiry-form .row-2 { display: grid; gap: 18px; }
.inquiry-form .row-2 > div:empty { display: none; }
@media (min-width: 700px) { .inquiry-form .row-2 > div:empty { display: block; } }
.inquiry-form .dyn-fields { margin-bottom: 0; }

/* ---------- mobile: get the pills and first field up within one scroll ---------- */
@media (max-width: 699px) {
  .contact-header { padding: 104px 0 28px; }
  .contact-header h1 { font-size: 30px; line-height: 1.15; max-width: none; }
  .landing-commercial .contact-header h1 { font-size: 25px; line-height: 1.2; }
  .contact-header p { margin-top: 12px; font-size: 15px; line-height: 1.55; }
  .contact-header .direct-contact { margin-top: 10px; gap: 0 20px; }
  .contact-header .direct-contact a { min-height: 40px; font-size: 14.5px; }
  .trust-strip ul { grid-template-columns: 1fr 1fr; padding-top: 14px; padding-bottom: 14px; gap: 10px 14px; }
  .trust-strip li { font-size: 13px; padding-left: 10px; }
  .contact-section { padding-top: 28px; }
  /* Pills wrap onto a second line instead of scrolling sideways (a scrolling row looked cut off). */
  .contact-section .path-pills { margin-bottom: 18px; gap: 8px; flex-wrap: wrap; }
  .contact-section .path-pill { padding: 9px 14px; font-size: 12.5px; }
  /* Full-width tap-to-call in the hero. */
  .contact-header .direct-contact { flex-direction: column; align-items: stretch; gap: 4px; }
  .contact-header .direct-contact a.contact-call {
    justify-content: center; min-height: 52px; background: var(--ivory); color: var(--ink);
    text-decoration: none; border-radius: var(--radius); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  }
  .contact-header .direct-contact a[href^="mailto:"] { justify-content: center; }
  /* Ads landing: the phone stays (call is the other conversion); email is in the footer. */
  .landing-commercial .contact-header .direct-contact a[href^="mailto:"] { display: none; }
  .contact-section .form-intro { margin-bottom: 16px; }
  .inquiry-form .btn { width: 100%; justify-content: center; }
}

/* ---------- thank-you page ---------- */
.thanks-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
@media (min-width: 700px) { .landing-commercial .contact-section { padding-top: 72px; } }
/* Let the form column shrink to the screen so the scrolling pill row can't widen the page. */
.contact-layout > * { min-width: 0; }

/* Ads landing call bar (phones). Shares .mobile-action-bar styles from components.css. */
@media (max-width: 699px) {
  body.has-contact-bar #footer-root { padding-bottom: 60px; background: var(--ink); }
}

/* ---------- privacy page ---------- */
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 14px; line-height: 1.7; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 699px) {
  .contact-bar { grid-template-columns: 1fr; }
  .contact-bar .mab-call { background: var(--ivory); color: var(--ink); border: 0; gap: 8px; }
  .contact-bar .mab-num { letter-spacing: .04em; }
}
.mobile-action-bar[hidden] { display: none !important; }
/* Ads visitors (commercial landing) only see the commercial pill, so nothing competes with it. */
.landing-commercial .path-pill:not([data-path="commercial-management"]) { display: none; }

/* Contact intro + service area (Chris's doc, Nov 2026) */
.contact-header #contact-sub { max-width: 62ch; }
.contact-header .contact-area { max-width: 62ch; margin-top: 12px; font-size: 14px; color: rgba(244,240,232,0.62); }

/* Multi-family ad landing (?path=multi-family, Nov 2026). Its pill only shows on that page;
   it reuses every .landing-commercial rule, and hides the other pills the same way. */
.path-pill[data-path="multi-family"] { display: none; }
.landing-multi-family .path-pill[data-path="multi-family"] { display: inline-block; }
.landing-multi-family .path-pill[data-path="commercial-management"] { display: none; }
