:root {
  color-scheme: light;
  --bg: #f4f1ec;
  --panel: #ffffff;
  --ink: #1f2523;
  --muted: #66706b;
  --line: #d9ded8;
  --accent: #1f7a6b;
  --accent-dark: #16584d;
  --focus: #c8872f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.intro {
  margin-bottom: 28px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.02;
}

.intro p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.form {
  display: grid;
  gap: 18px;
}

.section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 32px);
}

.section h2 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 700;
}

label:first-of-type,
.grid label {
  margin-top: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bcc6c0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

input,
select {
  min-height: 46px;
  padding: 10px 12px;
}

textarea {
  min-height: 104px;
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(200, 135, 47, 0.25);
}

input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--accent);
}

output {
  display: inline-grid;
  width: 44px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: #e7f2ef;
  color: var(--accent-dark);
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
}

#form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

#form-status.success {
  color: var(--accent-dark);
}

#form-status.error {
  color: #9f2f22;
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0 22px;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 980px);
    padding: 28px 0;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
