/* =============================================================
   QMerse — p-contact.css (Contact page only; loads after site.css)
   One hero: the question, the message form beside it, the email and the Zapwiser hand-off under the words;
   then the newsletter.
   ============================================================= */

.lede-link { color: var(--acc-hi); border-bottom: 1px solid currentColor; }
.lede-link:hover { color: var(--text); }

/* ---- Hero: words and other ways in on the left, the form on the right ---- */
.contact-hero { padding: clamp(36px, 4.5vw, 64px) 0 clamp(56px, 7vw, 104px); border-bottom: 0; }
.ch-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "copy form" "more form"; column-gap: clamp(32px, 5vw, 88px); row-gap: 40px; align-items: start; }
.ch-copy { grid-area: copy; }
.ch-copy .lede { margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); }
.ch-form { grid-area: form; scroll-margin-top: 100px; }
.ch-more { grid-area: more; }
.ch-mail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; }
.ch-mail a { font-family: var(--font-serif); font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.015em; color: var(--text); border-bottom: 1px solid var(--line-2); word-break: break-word; transition: color 0.25s, border-color 0.25s; }
.ch-mail a:hover { color: var(--acc-hi); border-color: var(--acc); }
.cs-copy { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--text-mute); transition: color 0.25s; }
.cs-copy::before { content: ''; width: 10px; height: 10px; border: 1.4px solid currentColor; border-radius: 2px; box-shadow: 3px -3px 0 -1.4px var(--bg), 3px -3px 0 0 currentColor; margin-inline-end: 3px; }
.cs-copy:hover { color: var(--acc-hi); }
.cs-copy.done { color: var(--signal); }
html:not(.js) .cs-copy { display: none; }
.ch-rows { margin-top: 28px; border-top: 1px solid var(--line); }
.ch-rows li { border-bottom: 1px solid var(--line); }
.ch-rows a { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; color: var(--text); }
.ch-t { font-weight: 500; font-size: 17px; line-height: 1.35; }
.ch-d { font-size: 15px; line-height: 1.55; color: var(--text-mute); max-width: 34em; }
.ch-go { font-size: 15px; font-weight: 500; color: var(--acc-hi); }
.ch-rows a:hover .ch-t { color: var(--acc-hi); }
@media (max-width: 980px) { .ch-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "form" "more"; } }

/* ---- The form: its foot row carries the button, the required note and the meter ---- */
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 28px; }
.form-foot .form-go { width: auto; margin-top: 0; }
.form-meta { display: inline-flex; align-items: center; gap: 16px; font-size: 13.5px; color: var(--f-dim); }
.form-meta .form-meter { display: inline-flex; align-items: center; gap: 10px; }
.form-meta .fm-n { font-family: var(--font-sans); letter-spacing: 0; font-size: 13.5px; }
.fg-hint { grid-column: 1 / -1; margin-top: -4px; padding: 12px 16px; border-radius: var(--radius); background: rgba(var(--acc-rgb),0.08);
  font-size: 15px; line-height: 1.55; color: var(--f-ink); animation: rmFade 0.35s ease both; }
.fg-hint:empty { display: none; }
.fg-hint a { color: var(--acc-hi); border-bottom: 1px solid currentColor; white-space: nowrap; }
@media (max-width: 640px) {
  .ch-form .form-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
  #contactForm .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  #contactForm .form-grid > :nth-child(n+3) { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .form-foot .form-go { width: 100%; justify-content: center; } }

/* ---- Newsletter: one field and a button, on the closing grid paper ---- */
.newsletter { padding: clamp(64px, 8vw, 112px) 0; }
.newsletter h2 { font-size: clamp(32px, 3.6vw, 50px); }
.newsletter .lede { font-size: clamp(16px, 1.3vw, 19px); }
.nl-form { --f-err: #b42318; --f-ok: var(--tp-ok); --f-mute: var(--tp-mute); max-width: 560px; margin: 30px auto 0; }
.nl-row { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--tp-line); border-radius: 999px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.nl-row:focus-within { border-color: var(--tp-acc); box-shadow: 0 0 0 3px rgba(11,82,208,0.2); }
.nl-row:has(input[aria-invalid="true"]) { border-color: var(--f-err); }
.nl-row input { flex: 1; min-width: 0; padding: 10px 16px; border: 0; background: transparent; color: var(--tp-ink); font: 400 16px/1.4 var(--font-sans); }
.nl-row input::placeholder { color: var(--tp-dim); opacity: 1; }
.nl-row input:focus { outline: none; }
.nl-row .btn { padding: 12px 20px; }
.nl-form .form-status { text-align: center; }
@media (max-width: 480px) { .nl-row { flex-direction: column; border-radius: var(--radius-lg); } .nl-row .btn { justify-content: center; } }
