/* ============================================================
   CONTACT PAGE
   Self-contained, matching the other page stylesheets. No inline
   styles anywhere — the CSP sends style-src 'self'.
   ============================================================ */

:root {
  --bg:        #0a0c0a;
  --bg2:       #0f120f;
  --surface:   #141a14;
  --surface2:  #1a221a;
  --border:    #222e22;
  --border2:   #2a382a;
  --green:     #6abf69;
  --green-dim: rgba(106,191,105,0.10);
  --green-glow:rgba(106,191,105,0.18);
  --gold:      #c9a84c;
  --gold-dim:  rgba(201,168,76,0.10);
  --red:       #e05555;
  --red-dim:   rgba(224,85,85,0.10);
  --text:      #e8ede8;
  --text-2:    #8fa08f;
  --text-3:    #7a8c7a;
  --syne: 'Outfit', sans-serif;
  --dm:   'Outfit', sans-serif;
  --mono: 'DM Mono', monospace;
  --radius: 10px;
  --radius-sm: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--dm);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,12,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px; display: flex; align-items: center;
  padding: 0 2rem; gap: 2rem;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Bebas Neue', var(--syne); font-size: 1.6rem; font-weight: 400; letter-spacing: 0.05em; color: var(--text); flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; border-radius: 0; background: none; box-shadow: none; display: block; object-fit: contain; flex-shrink: 0; }
.logo span { color: var(--green); }
.logo-tld { font-size: 0.7rem; color: var(--text-2); font-family: var(--mono); border: 1px solid var(--border); padding: 2px 7px; border-radius: 100px; letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; flex: 1; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--text-2); padding: 6px 12px; border-radius: var(--radius-sm); transition: all 0.15s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: var(--green); color: #0a0c0a; font-weight: 700; padding: 10px 18px; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

.page-head { margin-bottom: 2.25rem; }
.eyebrow { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--green); margin-bottom: 0.6rem; }
.page-head h1 { font-family: var(--syne); font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.7rem; text-wrap: balance; }
.page-head p { color: var(--text-2); font-size: 1rem; line-height: 1.65; max-width: 58ch; }

/* ---- step 1: topic picker ---- */
.step-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 0.85rem;
}
fieldset { border: none; margin-bottom: 2rem; }
legend { padding: 0; }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 0.6rem; }
.topic {
  display: block;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.topic:hover { border-color: var(--border2); background: var(--surface2); }
.topic[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green-dim);
  box-shadow: 0 0 0 1px var(--green);
}
.topic .hint { display: block; font-size: 0.76rem; color: var(--text-3); font-weight: 400; margin-top: 3px; line-height: 1.4; }

/* ---- the deflection answer ---- */
.answer {
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
}
.answer h2 { font-family: var(--syne); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.7rem; color: var(--text); }
.answer p { color: var(--text-2); line-height: 1.7; font-size: 0.94rem; margin-bottom: 0.7rem; }
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--text); }
.answer a { color: var(--gold); border-bottom: 1px solid rgba(201,168,76,0.4); }

/* ---- the form ---- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.1rem; }
.field label { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.field .opt { color: var(--text-3); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--dm);
  font-size: 0.92rem;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(106,191,105,0.12); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field-error { font-size: 0.78rem; color: var(--red); min-height: 1rem; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   inputs, but nearly all fill a field they can parse. aria-hidden and
   tabindex keep it away from real assistive tech and keyboard users. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-btn {
  background: var(--green);
  border: none;
  color: #0a0c0a;
  font-family: var(--syne);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.submit-btn:hover:not(:disabled) { background: #7dd67c; transform: translateY(-1px); box-shadow: 0 4px 20px var(--green-glow); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-note { font-size: 0.78rem; color: var(--text-3); line-height: 1.6; margin-top: 0.9rem; }

.form-status { margin-top: 1rem; font-size: 0.9rem; line-height: 1.6; }
.form-status.err { color: var(--red); }

.success {
  background: var(--green-dim);
  border: 1px solid rgba(106,191,105,0.4);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-align: center;
}
.success h2 { font-family: var(--syne); font-size: 1.2rem; margin-bottom: 0.5rem; }
.success p { color: var(--text-2); font-size: 0.94rem; line-height: 1.65; }

[hidden] { display: none !important; }

footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; font-family: var(--mono); font-size: 0.65rem; color: var(--text-3); }
footer a { color: var(--text-2); }
footer a:hover { color: var(--green); }
.footer-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  nav { padding: 0 1rem; gap: 0.75rem; }
  nav .nav-links { display: none; }
  .logo-tld { display: none; }
  .wrap { padding: 2rem 1.15rem 4rem; }
}


/* ============================================================
   MOBILE NAV
   `.nav-links` is hidden below 900px, so without this the header offers
   no way to reach ATF Tracker / Get Listed / Advertise on a phone.
   mobile-nav.js builds the panel from the live nav; these are the styles
   it expects, matching the other pages.
============================================================ */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 199;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.mobile-nav.open { max-height: 70vh; overflow-y: auto; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.mobile-nav-link:hover { background: var(--surface2); }
.mobile-nav-link.active { color: var(--green); background: var(--green-dim); }
.mobile-nav-action { color: var(--green); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
}
@media (max-width: 480px) {
  .logo { font-size: 1.15rem; }
  .logo-tld { display: none; }
}


/* ============================================================
   FOOTER
   Appended last so it overrides whatever this sheet defined earlier --
   every page used to carry its own footer, and they had drifted into
   five different layouts with four different disclaimers.
============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  text-align: left;
  font-family: var(--dm, var(--syne));
  font-size: 1rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo-size { font-size: 1.15rem; }
.footer-brand-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 220px;
}
.footer-col-title {
  font-family: var(--syne);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin: 0; padding: 0; }
.footer-links-list a { font-size: 0.78rem; color: var(--text-2); transition: color 0.12s; }
.footer-links-list a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.72rem; color: var(--text-3); font-family: var(--mono); flex-shrink: 0; }
.footer-disclaimer { font-size: 0.68rem; color: var(--text-3); max-width: 500px; line-height: 1.5; text-align: left; }
.footer-disclaimer strong { color: var(--text-2); }
.footer-disclaimer a { color: var(--text-2); text-decoration: underline; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  footer { padding: 2rem 1rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
