:root {
  color-scheme: dark;
  --bg: #03130f;
  --panel: rgba(5, 38, 29, 0.94);
  --line: rgba(242, 206, 117, 0.25);
  --text: #f7f2df;
  --muted: #b7cbc3;
  --gold: #f2ce75;
  --green: #8bd6b6;
  --danger: #ee897c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0, rgba(35, 126, 91, 0.34), transparent 38rem), linear-gradient(145deg, #0b3026, var(--bg) 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.6;
}

.contact-page { min-height: 100dvh; }
.contact-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  min-height: calc(64px + env(safe-area-inset-top));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 27, 21, 0.92);
  backdrop-filter: blur(12px);
}
.contact-header > div { text-align: center; }
.contact-header span, .eyebrow {
  display: block;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.contact-header h1 { margin: 2px 0 0; font-size: 20px; line-height: 1.15; }
.back-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 27px;
  line-height: 1;
  text-decoration: none;
}
.contact-main {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 16px max(14px, env(safe-area-inset-right)) max(36px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
.contact-card {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 66, 51, 0.94), var(--panel));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}
.section-heading { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.eyebrow { margin-bottom: 3px; }
h2 { margin: 0; font-size: clamp(24px, 5vw, 34px); line-height: 1.25; }
.lead { margin: 14px 0 0; color: var(--muted); }
form { display: grid; gap: 9px; margin-top: 20px; }
label { margin-top: 8px; font-weight: 850; }
.optional { display: inline; color: var(--muted); font-family: inherit; font-size: 12px; letter-spacing: 0; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(151, 195, 183, 0.38);
  border-radius: 11px;
  background: rgba(0, 17, 13, 0.7);
  color: var(--text);
  font: inherit;
}
input, select { min-height: 48px; padding: 10px 12px; }
textarea { min-height: 180px; padding: 12px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(242, 206, 117, 0.2);
  outline-offset: 1px;
}
.field-help, .field-meta, .contact-status, .turnstile-status { margin: 0; color: var(--muted); font-size: 12px; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; }
.privacy-warning {
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(238, 137, 124, 0.42);
  border-radius: 12px;
  background: rgba(111, 31, 24, 0.22);
  font-size: 13px;
}
.privacy-warning p { margin: 4px 0 0; color: var(--muted); }
.consent-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 650; }
.consent-row input { width: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--green); }
a { color: #b8f2d8; text-underline-offset: 3px; }
#contactSubmit {
  min-height: 50px;
  margin-top: 8px;
  border: 1px solid rgba(242, 206, 117, 0.52);
  border-radius: 12px;
  background: linear-gradient(145deg, #2f8066, #14523f);
  color: #fff9e8;
  font: inherit;
  font-weight: 900;
}
#contactSubmit:disabled { cursor: wait; opacity: 0.6; }
.contact-status { padding: 11px 13px; border-radius: 10px; }
.contact-status[data-tone="success"] { border: 1px solid rgba(139, 214, 182, 0.42); background: rgba(29, 94, 70, 0.28); color: #cdf7e4; }
.contact-status[data-tone="error"] { border: 1px solid rgba(238, 137, 124, 0.42); background: rgba(111, 31, 24, 0.22); color: #ffd5cf; }
.turnstile-area { min-height: 1px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 620px) {
  .contact-header h1 { font-size: 17px; }
  .contact-card { border-radius: 16px; }
}
