:root {
  --ink: #1a1a1a;
  --muted: #5a5f66;
  --line: #d7dbe0;
  --accent: #0b5cab;
  --error: #b00020;
  --bg: #f4f6f8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  padding: 2rem 1rem;
}

.card {
  max-width: 40rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.lede {
  color: var(--muted);
  margin-top: 0;
}

.field {
  margin: 1.1rem 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}

.error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
  min-height: 0;
}

.consent label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
}

.consent input {
  margin-top: 0.25rem;
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.status {
  margin-top: 0.9rem;
  font-weight: 600;
}

.status.ok {
  color: #1a7f37;
}

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

.success {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  background: #e8f5ec;
  border: 1px solid #1a7f37;
  border-radius: 8px;
  color: #14622b;
  font-weight: 600;
}

.privacy {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.privacy h2 {
  font-size: 1.05rem;
}

.privacy ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.privacy strong {
  color: var(--ink);
}

/* Reasons selection */
fieldset.reasons,
fieldset.review-choice {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem 1rem;
  margin: 1.25rem 0;
}

fieldset.reasons legend,
fieldset.review-choice legend {
  font-weight: 700;
  padding: 0 0.4rem;
}

.reason {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 0.5rem 0;
  cursor: pointer;
}

.reason input {
  margin-top: 0.25rem;
  flex: 0 0 auto;
}

.reason input:disabled {
  cursor: not-allowed;
}

.reason input:disabled + * {
  color: var(--muted);
}

fieldset.review-choice label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 0.5rem 0;
  cursor: pointer;
}

.section-intro {
  margin-top: 1.25rem;
}

/* Review-and-edit step */
.review {
  margin-top: 1.5rem;
}

.review h2 {
  font-size: 1.15rem;
}

#review-text {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  line-height: 1.5;
  color: inherit;
  resize: vertical;
  min-height: 18rem;
  white-space: pre-wrap;
}

#review-text:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

#review-send {
  margin-top: 0.9rem;
}
