:root {
  --purple: #6d4aff;
  --purple-dark: #5636d6;
  --ink: #1a1730;
  --muted: #6b6785;
  --line: #e7e3f5;
  --bg: #f5f3fb;
  --ok: #1fa855;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #efeafd, var(--bg));
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}
.card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(45, 30, 110, 0.10);
  padding: 26px;
}
.head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.dot { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--purple), #9a7bff); flex: 0 0 auto; }
h1 { font-size: 21px; margin: 0; letter-spacing: -0.02em; }
.sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.step { margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
input, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fdfcff;
}
input:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.14); }
.hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.slot {
  padding: 11px 0; border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; transition: all .12s;
}
.slot:hover { border-color: var(--purple); color: var(--purple-dark); }
.slot.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.chosen { font-weight: 600; margin-bottom: 14px; padding: 10px 12px; background: #f3effe; border-radius: 11px; font-size: 14px; }
.field { margin-bottom: 12px; }
.primary {
  display: inline-block; width: 100%; text-align: center; padding: 13px; border: none; border-radius: 12px;
  background: var(--purple); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  text-decoration: none; transition: background .12s;
}
.primary:hover { background: var(--purple-dark); }
.primary:disabled { opacity: .55; cursor: default; }
.ghost { width: 100%; margin-top: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--muted); cursor: pointer; }
.err { color: #c0392b; font-size: 13px; margin: 10px 0 0; min-height: 1em; }
.done { text-align: center; padding: 8px 0; }
.check { width: 54px; height: 54px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.done h2 { margin: 0 0 6px; font-size: 19px; }
.done p { color: var(--muted); margin: 0 0 18px; }
.foot { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.hidden { display: none; }
@media (max-width: 380px) { .slots { grid-template-columns: repeat(3, 1fr); } }
