:root {
  --accent: #4a7c8c;
  --accent-soft: rgba(74, 124, 140, 0.12);
  --accent-hover: #3d6a78;
  --text: #1a2228;
  --text-muted: #5c6b73;
  --surface: #ffffff;
  --surface-muted: #f5f6f7;
  --border: #e4e8eb;
  --radius: 10px;
  --font-display: "Literata", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(26, 34, 40, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface-muted);
  line-height: 1.55;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(74, 124, 140, 0.18), transparent 55%),
    linear-gradient(180deg, #f8f9fa 0%, #f0f2f4 100%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.hero-lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field span { font-weight: 500; }

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.field em { font-weight: 400; color: var(--text-muted); font-style: normal; }

lexxy-editor {
  display: block;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.user-banner {
  background: var(--accent-soft);
  color: var(--accent-hover);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.consents { margin: 1rem 0; }

.consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.consent-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.consent a { color: var(--accent); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.captcha-wrap { margin: 1rem 0; }

.form-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
}

.cta-primary:hover { background: var(--accent-hover); }

.cta-full { width: 100%; }

.cta-secondary {
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.thank-you {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.footer-nav a { color: var(--accent); text-decoration: none; }

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

/* Author display:flex otherwise wins over the HTML hidden attribute. */
.cookie-banner[hidden] {
  display: none !important;
}

.legal-page main { max-width: 720px; }
.legal-page .back-link { color: var(--accent); }
.legal-page h1 { font-family: var(--font-display); }
.legal-page .prose p, .legal-page .prose li { color: var(--text-muted); }
