:root {
  --bg: #f5f7f4;
  --panel: #ffffff;
  --ink: #18211d;
  --muted: #64726a;
  --line: #dfe6df;
  --green: #237a4b;
  --green-soft: #e5f3eb;
  --red: #b83d32;
  --shadow: 0 14px 36px rgba(24, 33, 29, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.hero,
.form-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 18px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
}

h2 {
  font-size: 17px;
}

.subcopy,
.section-head p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.language-toggle {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

button {
  min-height: 42px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.language-toggle button {
  min-height: 36px;
  padding: 0 12px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.language-toggle button.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.form-card {
  padding: 16px;
}

.section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-head {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.section-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label,
.question {
  display: grid;
  gap: 7px;
}

label > span,
.question-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.question-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0 11px;
}

textarea {
  padding: 10px 11px;
  resize: vertical;
}

.question-stack {
  display: grid;
  gap: 12px;
}

.question {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.option {
  display: flex;
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.option input {
  width: auto;
  min-height: 0;
  margin-top: 2px;
}

.other-input {
  margin-top: 2px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.actions button {
  padding: 0 18px;
}

.status {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

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

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

@media (max-width: 720px) {
  .hero,
  .actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .grid,
  .options {
    grid-template-columns: 1fr;
  }

  .language-toggle {
    width: 100%;
  }

  .language-toggle button,
  .actions button {
    flex: 1;
    width: 100%;
  }
}
