/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}

/* ── Form ───────────────────────────────────────────────────────────────── */
.cform { display: grid; gap: 20px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf { display: grid; gap: 7px; }
/* Direct child only — a .chip is itself a <label>, and must not inherit the
   mono/uppercase field-label treatment. */
.cf > label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cf-opt { color: var(--ink-4); letter-spacing: 0.08em; }

/* Direct children only. The chip radios also live inside .cf, and a blanket
   `.cf input` gave them width:100% — which, being absolutely positioned against
   a non-positioned ancestor, resolved to the full viewport and pushed the page
   sideways on mobile. */
.cf > input,
.cf > select,
.cf > textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.cf textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.cf > input::placeholder,
.cf > textarea::placeholder { color: var(--ink-4); }
.cf > input:hover, .cf > select:hover, .cf > textarea:hover { border-color: var(--line-3); }
.cf > input:focus, .cf > select:focus, .cf > textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.14);
}
/* The native picker list is a light OS surface; keep the options readable. */
.cf > select option { background: var(--surface-2); color: var(--ink); }

.cf-err {
  display: none;
  font-size: 0.76rem;
  color: var(--risk);
}
.cf.invalid input,
.cf.invalid textarea { border-color: var(--risk); }
.cf.invalid .cf-err { display: block; }

/* ── Chips ──────────────────────────────────────────────────────────────── */
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.chip span {
  display: inline-block;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: all 0.16s var(--ease);
}
.chip:hover span { border-color: var(--line-3); color: var(--ink); }
.chip input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
}
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Honeypot — visually gone, still reachable by bots that parse the DOM. */
.cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform-submit { justify-self: start; margin-top: 4px; }
.cform-note { font-size: 0.85rem; min-height: 1.2em; }
.cform-note.ok { color: var(--money); }
.cform-note.bad { color: var(--risk); }

/* ── Side ───────────────────────────────────────────────────────────────── */
.cside { display: grid; gap: 16px; }
.cside-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 22px;
}
.cside-block--quiet { background: transparent; }
.cside-block .h3 { margin-bottom: 6px; }
.cside-block > .muted { font-size: 0.86rem; }

.cside-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.cside-list li { display: grid; gap: 3px; }
.cside-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cside-list a, .cside-list span:not(.cside-k) { font-size: 0.92rem; color: var(--ink-2); }
.cside-list a:hover { color: var(--ink); }

.cside-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: s;
}
.cside-steps li {
  display: grid;
  gap: 3px;
  padding-left: 30px;
  position: relative;
  counter-increment: s;
}
.cside-steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
}
.cside-steps strong { font-size: 0.92rem; font-weight: 550; }
.cside-steps span { font-size: 0.82rem; color: var(--ink-3); line-height: 1.55; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cf-row { grid-template-columns: 1fr; }
}

/* Small print in the quiet block — was an inline font-size. */
.cside-block--quiet .muted { font-size: 0.85rem; }
