:root {
  --primary: #3f6b4a;
  --primary-dark: #2d4f36;
  --bg: #f5faf6;
  --card-bg: #ffffff;
  --text: #1d241f;
  --text-muted: #647268;
  --border: #dfe8e1;
  --error: #c0392b;
  --radius: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading-fallback {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.hero {
  position: relative;
}

.hero-image {
  display: block;
  width: 100%;
  height: 42vh;
  min-height: 220px;
  max-height: 340px;
  object-fit: cover;
  object-position: center 47%;
}

.subheadline {
  max-width: 34rem;
  margin: 1.1rem auto 0;
  padding: 0 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 1.75rem 1.5rem;
}

.details {
  margin-bottom: 1.5rem;
}

.details p {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 0.98rem;
}

.facts {
  margin: 1.1rem 0 1.3rem;
  padding: 1rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.facts dt {
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.facts dd {
  margin: 0;
  color: var(--text);
}

.details-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.details-closing {
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-row {
  display: flex;
  gap: 0.75rem;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.consent input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

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

.submit-btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-error {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: var(--error);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.success {
  text-align: center;
  padding: 1rem 0;
}

.success h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.success p {
  color: var(--text-muted);
  margin: 0;
}

.footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

@media (max-width: 420px) {
  .hero-image {
    height: 34vh;
    min-height: 180px;
  }

  .subheadline {
    margin-top: 0.9rem;
    font-size: 0.95rem;
  }

  .wrap {
    padding: 1.1rem 1rem 2rem;
  }

  .card {
    padding: 1.35rem 1.1rem;
  }

  form {
    gap: 0.9rem;
  }

  .field-row {
    gap: 0.6rem;
  }

  .details p {
    font-size: 0.92rem;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
    padding: 0.9rem 1rem;
  }

  .facts dd {
    margin-bottom: 0.5rem;
  }
}
