:root {
  color-scheme: light;
  --ink: #3d3d3d;
  --muted: #6a5658;
  --line: #f4bec3;
  --paper: #ffffff;
  --wash: #ffffff;
  --soft: #fdeef0;
  --accent: #ec515e;
  --accent-strong: #ad1a27;
  --dark: #3d3d3d;
  --dark-hover: #262626;
  --danger: #ad1a27;
  --focus: rgba(236, 138, 108, 0.38);
  --wg-gradient: linear-gradient(90deg, #ec8a6c 0%, #ee8a7e 22%, #ec6f95 100%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

.page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 34px 14px 36px;
}

.form-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(67, 20, 24, 0.08);
}

.intro {
  position: static;
  max-width: 680px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--accent);
  background: var(--wg-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro p:last-child,
.hint {
  margin: 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

.field,
.group {
  display: grid;
  gap: 6px;
}

.group {
  margin: 0;
  padding: 0;
  border: 0;
}

label,
legend {
  font-weight: 700;
}

legend {
  margin-bottom: 6px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

select {
  min-height: 39px;
}

textarea {
  resize: vertical;
}

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

#website {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  min-height: 66px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
}

.choice input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.choice strong,
.choice small {
  display: block;
}

.choice strong {
  font-size: 0.9rem;
}

.choice small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.success-banner {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 14px 18px;
  color: #166534;
  background: #ecfdf3;
  box-shadow: 0 18px 60px rgba(22, 101, 52, 0.12);
  text-align: center;
}

.success-banner strong {
  color: #14532d;
  font-size: 1.05rem;
}

.success-banner span {
  color: #166534;
  font-size: 0.92rem;
}

.success-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 6px;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: #16a34a;
  font-weight: 800;
  text-decoration: none;
}

.success-banner a:hover {
  background: #15803d;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: var(--wg-gradient);
  font-weight: 800;
  cursor: pointer;
}

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

button[disabled] {
  cursor: progress;
  opacity: 0.72;
}

.error {
  min-height: 1.25em;
  margin: 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 650;
}

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

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

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

@media (max-width: 760px) {
  .page {
    padding: 24px 16px 32px;
  }

  .form-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .intro {
    position: static;
  }

  .three-column,
  .choice-grid {
    grid-template-columns: 1fr;
  }
}
