.thanks {
  padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px);
}

.thanks .wrap {
  max-width: 720px;
}

.received {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border: 1px solid var(--success);
  border-radius: var(--radius);
  background: var(--success-soft);
}

.received-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--success);
  color: #ffffff;
}

.received-icon svg {
  width: 22px;
  height: 22px;
}

.received h1 {
  color: var(--text);
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  font-weight: 700;
}

.received p {
  margin-top: 6px;
  color: var(--text);
}

.received:focus {
  outline: none;
}

.survey {
  margin-top: 40px;
}

.survey h2 {
  font-size: 1.375rem;
  font-weight: 700;
}

.survey-intro {
  margin-top: 8px;
  color: var(--muted);
}

.survey fieldset {
  min-width: 0;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.survey legend,
.survey-label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.survey-field {
  margin-top: 28px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice input:hover + span {
  border-color: var(--muted);
}

.choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--link);
  font-weight: 600;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.survey input[type="text"],
.survey input[type="email"],
.survey select,
.survey textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.survey textarea {
  min-height: 120px;
  resize: vertical;
}

.survey input[type="text"]:hover,
.survey input[type="email"]:hover,
.survey select:hover,
.survey textarea:hover {
  border-color: var(--muted);
}

.survey input[type="text"]:focus-visible,
.survey input[type="email"]:focus-visible,
.survey select:focus-visible,
.survey textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.survey input[aria-invalid="true"],
.survey select[aria-invalid="true"],
.survey textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.survey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn-ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.thanks-home {
  margin-top: 28px;
}

@media (max-width: 560px) {
  .received {
    padding: 16px;
  }

  .survey-actions .btn {
    flex: 1 1 100%;
  }
}
