/* ==============================================
   Contact form — native, no plugin
   Used by [ch_contact_form] and ch/contact-form block.
   ============================================== */

.ch-contact-form {
  max-width: 640px;
  margin: 0;
  display: grid;
  gap: 16px;
}

.ch-form-status {
  padding: 14px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}
.ch-form-status--success {
  background: rgba(34, 139, 34, 0.08);
  color: #1f6f1f;
  border: 1px solid rgba(34, 139, 34, 0.3);
}
.ch-form-status--error {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
}

.ch-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ch-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .ch-form-row {
    grid-template-columns: 1fr;
  }
}

.ch-form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Inherit so labels read on either light or dark section backgrounds:
     - Light section (contact page) → dark ink
     - Dark section (recruit page, has-text-color group) → bone/cream */
  color: inherit;
  opacity: 0.85;
}

.ch-form-label--required::after {
  content: ' *';
  color: var(--primary);
}

.ch-form-input,
.ch-form-textarea,
.ch-form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font: 400 16px/1.5 var(--font-sans);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ch-form-input:focus,
.ch-form-textarea:focus,
.ch-form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.ch-form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Honeypot — visually hidden, screen-reader hidden, keyboard skipped */
.ch-form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ch-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--on-primary);
  border: 0;
  border-radius: 4px;
  font: 700 14px/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  justify-self: start;
}
.ch-form-submit:hover {
  background: var(--primary-dark);
}
.ch-form-submit:active {
  transform: translateY(1px);
}
.ch-form-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Math captcha row — inline label + short numeric input ─────── */
.ch-form-captcha {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ch-form-captcha .ch-form-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.ch-form-captcha__input {
  width: 96px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
}

/* ── Recruit-form-specific tweaks ──────────────────────────────── */
.ch-recruit-form {
  max-width: 760px;
}
