/* Contact page — page-scoped styles.
   Extends the global design system in /style.css (Barlow / Barlow Condensed /
   IBM Plex Mono, --accent, --border-soft, --text-*). Nothing here overrides
   global classes; every selector is namespaced under .ndf-. */

.ndf-contact-section { padding-top: 8px; }

.ndf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

/* ---------- left column ---------- */

.ndf-contact-side .pillar-h2 { margin: 14px 0 26px; }

.ndf-steps {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  border-top: 1px solid var(--border-subtle);
}

.ndf-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.ndf-steps strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 400;
  color: var(--text-primary);
}

.ndf-step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 4px;
}

.ndf-direct {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.ndf-direct-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-ghost);
}

.ndf-direct a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 138, 221, 0.35);
  padding-bottom: 2px;
  align-self: flex-start;
}

.ndf-direct a:hover { color: #ffffff; border-bottom-color: var(--accent); }

.ndf-privacy {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-ghost);
  max-width: 380px;
}

/* ---------- form ---------- */

.ndf-contact-form-wrap {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  padding: 34px;
}

.ndf-form { display: flex; flex-direction: column; gap: 18px; }

.ndf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ndf-field { display: flex; flex-direction: column; gap: 8px; }

.ndf-field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ndf-req { color: var(--accent); }

.ndf-field input,
.ndf-field select,
.ndf-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-mid);
  border-radius: 0;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
  appearance: none;
}

.ndf-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.ndf-field input::placeholder,
.ndf-field textarea::placeholder { color: var(--text-ghost); }

.ndf-field input:focus,
.ndf-field select:focus,
.ndf-field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.ndf-field input:invalid:not(:placeholder-shown) { border-color: rgba(220, 90, 90, 0.6); }

.ndf-field textarea { resize: vertical; min-height: 132px; }

/* honeypot — hidden from people, visible to naive bots */
.ndf-field--hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.ndf-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ndf-submit { cursor: pointer; border: 1px solid var(--accent); }

.ndf-submit[disabled] { opacity: 0.5; cursor: default; }

.ndf-status {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1 1 240px;
}

.ndf-status[data-state="ok"] { color: #58c98a; }
.ndf-status[data-state="err"] { color: #e08a8a; }

.ndf-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- FAQ / links ---------- */

.ndf-faq { max-width: 900px; }
.ndf-faq .pillar-body { max-width: 720px; }
.ndf-faq .pillar-links { margin-top: 34px; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .ndf-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .ndf-contact-form-wrap { padding: 24px; }
}

@media (max-width: 620px) {
  .ndf-row { grid-template-columns: 1fr; }
  .ndf-steps li { grid-template-columns: 32px 1fr; }
}

.ndf-direct-address {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #cbd5e1;
}
