/**
 * Feature 056c — contact form ([dpd_contact], inc/contact.php).
 *
 * Same industrial vocabulary as the landing: Archivo headings, mono labels, 2px corners, one red
 * action. Self-scoped under `body.dpd-chrome` and depends on dpd-tokens.css for the palette, with
 * literal fallbacks so the file survives a token rename.
 *
 * Enqueued only on pages that actually contain the shortcode (see functions.php).
 */

body.dpd-chrome .dpd-contact {
  max-width: 640px;
  margin: 0 auto;
}

body.dpd-chrome .dpd-contact-h {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -.01em;
  color: var(--ink, #16140F);
  margin: 0 0 8px;
}

body.dpd-chrome .dpd-contact-lede {
  color: var(--ink-soft, #3A352D);
  margin: 0 0 28px;
}

/* ---------- result notice ---------- */
body.dpd-chrome .dpd-contact-note {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--line-strong, #C9C2B3);
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
}
body.dpd-chrome .dpd-contact-note.is-ok  { border-left-color: var(--scan, #00875A); }
body.dpd-chrome .dpd-contact-note.is-err { border-left-color: var(--red, #DC0028); }

/* ---------- fields ---------- */
body.dpd-chrome .dpd-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 18px;
}

body.dpd-chrome .dpd-field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel, #5A5347);
}

body.dpd-chrome .dpd-field input,
body.dpd-chrome .dpd-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong, #C9C2B3);
  border-radius: 2px;
  background: #fff;
  color: var(--ink, #16140F);
  font-family: "Inter", sans-serif;
  font-size: 16px; /* 16px keeps iOS Safari from zooming the field on focus */
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.dpd-chrome .dpd-field textarea { resize: vertical; min-height: 140px; }

body.dpd-chrome .dpd-field input:focus,
body.dpd-chrome .dpd-field textarea:focus {
  outline: none;
  border-color: var(--red, #DC0028);
  box-shadow: 0 0 0 3px rgba(220, 0, 40, .12);
}

/* Honeypot: pushed off-screen rather than display:none, which some bots skip over. */
body.dpd-chrome .dpd-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.dpd-chrome .dpd-contact-privacy {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--steel, #5A5347);
}
body.dpd-chrome .dpd-contact-privacy a { color: var(--ink, #16140F); text-decoration: underline; }

/* ---------- submit ---------- */
body.dpd-chrome .dpd-contact-btn {
  display: inline-flex;
  align-items: center;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-stretch: 112%;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 2px solid var(--red, #DC0028);
  border-radius: 2px;
  background: var(--red, #DC0028);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
body.dpd-chrome .dpd-contact-btn:hover,
body.dpd-chrome .dpd-contact-btn:focus-visible {
  background: var(--red-deep, #A8001F);
  border-color: var(--red-deep, #A8001F);
}
