:root {
  --bg: #f4efe6;
  --bg-accent: #e8dcc6;
  --card: #fffdf8;
  --text: #1f1d1a;
  --muted: #5d584f;
  --line: #d8ccba;
  --brand: #315e4f;
  --brand-contrast: #ffffff;
  --danger: #b0392f;
  --ok: #1d6a4b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 10%, #f8f2e8 0%, transparent 30%),
    radial-gradient(circle at 10% 85%, #efe4cf 0%, transparent 35%),
    var(--bg);
  min-height: 100vh;
}

.page {
  width: min(780px, 92vw);
  margin: 3rem auto;
}

.hero {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(31, 29, 26, 0.08);
  padding: clamp(1rem, 3vw, 2rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #fffcf6;
}

input:focus,
textarea:focus {
  outline: 2px solid #7ea897;
  outline-offset: 1px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-contrast);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

button[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

.status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--ok);
}

.notice {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.thank-you {
  margin-top: 2rem;
  border-top: 1px dashed var(--line);
  padding-top: 1.25rem;
}

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

@media (min-width: 680px) {
  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
