:root {
  --color: #6c5ce7;
  --color-dark: #5a4bd4;
  --btn: #6c5ce7;
  --btn-hover: #5a4bd4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f3f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #1f2330;
}
.card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(20, 20, 50, 0.12);
  overflow: hidden;
}
.hero {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35));
}
.body { padding: 28px 28px 32px; }
h1 { font-size: 22px; margin: 0 0 6px; }
.subtitle { color: #6b7180; font-size: 14px; margin: 0 0 22px; line-height: 1.5; }
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dadce6;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color) 18%, transparent);
}
textarea { min-height: 110px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 9px; margin-top: 16px; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; font-weight: 400; color: #4b5160; }
button {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--btn);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
button:hover { background: var(--btn-hover); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: not-allowed; }
.error { color: #d63031; font-size: 13px; margin-top: 8px; min-height: 16px; }
.hidden { display: none; }
.success { text-align: center; padding: 20px 0; }
.success .check {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color) 15%, transparent);
  color: var(--color);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
