/* Scaffold section: contact (S1-T7). The contact.css rows of SPEC.md section
   4.4: mock-shared.css.txt lines 470-501 (contact) and the contact rules of
   the responsive block (568-607), ported under the rename rule of SPEC.md
   section 2.0 (.mk -> .ifs, mk-<n> -> ifs-<n>, --mk-<n> -> --if-<n>,
   container mk -> ifs). Markup: template-parts/scaffold/contact.php.

   Printed twice by impact_css_layers(), like style.css: once into
   layer(theme-important) and once unlayered (SPEC.md section 4.2).

   What this file adds to the mock, and why:

   - .ifs-formcard carries the card surface itself. The mock gives the form
     card .mk-card (cards.css, S1-T5), but that file is not enqueued for this
     section, and its `.ifs-card p` rule would restyle the status line.
   - The form keeps the legacy hooks ihb1-form / ihb1-form-submit /
     ihb1-form-status for js/cta-contact.js. style.css styles those classes,
     and this file never selects them (SPEC 4.2). Two of their rules need an
     answer here:
       .ihb1-form-submit { background: var(--ihb1-action) !important }: that
         variable is defined only on the legacy sections, so on a scaffold page
         it is unset and the button would paint transparent. The form defines
         the two variables with the scaffold's own button colours (#0568FD,
         hover #0451CC, as .ifs-btn-primary), and the button paints as the mock.
         `height: 52px` is reset by .ifs-btns .ifs-btn.
       .ihb1-form-status[data-state] { color: #0B6B4F / #B3261E !important }:
         dark green and dark red, unreadable on the navy card. The status line's
         colour is answered with `color !important`, the property SPEC 4.2
         allows for a scaffold p when a stylesheet forces it.
   - .ifs-hp hides the honeypot, as .ihb1-hp does for the legacy form.
   - The placeholders inherit the control's font-size, against the bundle's
     `input[type]::-webkit-input-placeholder, textarea::… { font-size: .875rem }`.
   - font-size on the controls is !important: base.css sets them to
     `inherit !important` against the bundle's `input, select, textarea
     { font-size !important }`, so the mock's .95rem needs the same rank. */

/* ---------- contact (mock 470-501) ---------- */
.ifs .ifs-contact{--if-contact-ok:#0F7B6C;--if-contact-err:#B8322A}
.ifs .ifs-contact[data-band="navy"]{--if-contact-ok:#7EE0C8;--if-contact-err:#FFB4AB}
.ifs .ifs-contact-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3rem;align-items:start}
.ifs .ifs-contact-grid h2{margin-top:1rem}
.ifs .ifs-contact-grid .ifs-lead{margin-top:1rem}
.ifs .ifs-reassure{margin-top:1.5rem;display:flex;flex-direction:column;gap:.6rem;color:var(--if-s-text);font-size:.95rem}
.ifs .ifs-reassure li{display:flex;gap:.55rem;align-items:flex-start}
.ifs .ifs-reassure svg{width:16px;height:16px;color:var(--if-s-check);margin-top:.2rem}
.ifs .ifs-wa-line{margin-top:1.5rem;display:inline-flex;align-items:center;gap:.5rem;font-size:.95rem;font-weight:600;color:var(--if-s-link)}
.ifs .ifs-wa-line svg{width:16px;height:16px;color:var(--if-s-link)}
.ifs .ifs-wa-line:hover{text-decoration:underline;text-underline-offset:3px}
.ifs .ifs-formcard{display:block;min-width:0;background:var(--if-s-card);color:var(--if-s-fg);border:1px solid var(--if-s-card-rule);border-radius:var(--if-radius-card);padding:1.85rem}
.ifs .ifs-form{display:flex;flex-direction:column;gap:.9rem;--ihb1-action:#0568FD;--ihb1-action-hover:#0451CC}
.ifs .ifs-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.9rem}
.ifs .ifs-field{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.ifs .ifs-field label{font-size:.8rem;font-weight:600;color:var(--if-s-text);line-height:1.3}
.ifs .ifs-field input,.ifs .ifs-field select,.ifs .ifs-field textarea{width:100%;min-width:0;font-family:var(--if-sans);font-size:.95rem !important;line-height:1.45;color:var(--if-s-field-fg);background:var(--if-s-field-bg);
  border:1px solid var(--if-s-field-rule);border-radius:.5rem;padding:.65rem .8rem;box-shadow:none;margin:0}
.ifs .ifs-field input,.ifs .ifs-field select{height:2.875rem}
.ifs .ifs-field input::placeholder,.ifs .ifs-field textarea::placeholder{color:var(--if-s-placeholder);opacity:1;font-size:inherit}
.ifs .ifs-field select{appearance:none;-webkit-appearance:none;padding-right:2.4rem;cursor:pointer;
  background:var(--if-s-field-bg) var(--if-s-select-arrow) no-repeat right .85rem center}
.ifs .ifs-field textarea{resize:vertical;min-height:2.875rem}
.ifs .ifs-field option{color:#0A1A2F;background:#FFFFFF}
.ifs .ifs-field input:focus-visible,.ifs .ifs-field select:focus-visible,.ifs .ifs-field textarea:focus-visible,
.ifs .ifs-field input:focus,.ifs .ifs-field select:focus,.ifs .ifs-field textarea:focus{outline:2px solid var(--if-s-focus);outline-offset:1px;border-color:transparent;border-radius:.5rem}
.ifs .ifs-wa{display:grid;grid-template-columns:auto minmax(0,1fr);min-width:0}
.ifs .ifs-wa .ifs-cc{display:flex;align-items:center;padding:0 .75rem;border:1px solid var(--if-s-field-rule);border-right:0;border-radius:.5rem 0 0 .5rem;background:var(--if-s-cc-bg);font-size:.95rem;font-weight:600;color:var(--if-s-field-fg)}
.ifs .ifs-wa input{border-radius:0 .5rem .5rem 0}
.ifs .ifs-btns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.6rem;margin-top:.4rem}
.ifs .ifs-btns .ifs-btn{padding:.8rem;white-space:normal;text-align:center;height:auto}

/* ---------- honeypot and status line (not in the mock) ---------- */
.ifs .ifs-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ifs .ifs-form-status{min-height:1.25rem;font-size:.875rem;line-height:1.45;color:var(--if-s-text)}
.ifs .ifs-form .ifs-form-status[data-state="ok"]{color:var(--if-contact-ok) !important}
.ifs .ifs-form .ifs-form-status[data-state="error"]{color:var(--if-contact-err) !important}

/* ---------- responsive (mock 568-607, contact rules) ---------- */
@container ifs (max-width:900px){
  .ifs .ifs-contact-grid{grid-template-columns:minmax(0,1fr);gap:2rem}
}
@container ifs (max-width:640px){
  .ifs .ifs-row{grid-template-columns:minmax(0,1fr)}
}
@container ifs (max-width:560px){
  .ifs .ifs-btns{grid-template-columns:minmax(0,1fr)}
  .ifs .ifs-formcard{padding:1.25rem}
}
