/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-hero {
  padding: var(--s-9) 0 var(--s-6);
}

.contact-hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--s-3) 0 var(--s-4);
}

.contact-hero .accent { color: var(--teal); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

.lede {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* ---------- Layout ---------- */

.contact-body { padding-bottom: var(--s-9); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}

/* ---------- Form card ---------- */

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 14px);
  box-shadow: 0 10px 30px rgba(11, 26, 31, 0.06);
  padding: var(--s-7);
}

.contact-form-card h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: var(--s-5);
}

.contact-form-card h2 i {
  color: var(--teal);
  margin-right: var(--s-2);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.field .req { color: var(--danger); }

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.15);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.12);
}

/* Honeypot field — visually hidden, only bots ever see/fill it */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Status message ---------- */

.form-status {
  display: none;
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: var(--fs-sm);
  margin-bottom: var(--s-4);
  line-height: 1.5;
}

.form-status.is-visible { display: block; }

.form-status.is-success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--green-dark);
}

.form-status.is-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: #9c2b2b;
}

.form-note {
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.55;
}

#cf-submit[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* ---------- Sidebar cards ---------- */

.contact-side {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 14px);
  padding: var(--s-5);
}

.side-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.side-card h3 i {
  color: var(--teal);
  margin-right: var(--s-2);
  width: 1.1em;
  text-align: center;
}

.side-card p {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}

.side-card a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.side-card a:hover { color: var(--cyan); }

.social-list {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}

.social-list a:hover { color: var(--teal); }

.social-list i { width: 1.2em; text-align: center; color: var(--teal); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: var(--s-5); }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-hero { padding-top: var(--s-7); }
}

/* ---- Turnstile human check ---- */
.cf-turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 1.25rem;
  min-height: 0;
}
/* NOTE: do NOT use :empty { display:none } here — the Turnstile iframe is
   injected into #cf-turnstile, which leaves .cf-turnstile-wrap technically
   ":empty"-adjacent in some engines and hid the widget entirely. */
#cf-turnstile { transform-origin: top center; min-height: 65px; }
