:root {
  --indigo: #6464F9;
  --indigo-dark: #4f4fd6;
  --navy: #322E43;
  --muted: #6b6880;
  --line: #e7e7f0;
  --bg: #f4f4fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(50, 46, 67, 0.08);
  --font-head: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

/* Brand */
.brand { text-align: center; margin-bottom: 22px; }
.logo-img {
  width: 230px;
  max-width: 80%;
  height: auto;
  display: inline-block;
}
.tagline { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* Progress */
.progress {
  height: 8px;
  background: #e3e3f1;
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--indigo), #8a8aff);
  border-radius: 99px;
  transition: width .35s ease;
}
.step-count {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 18px;
}

/* Card / steps */
.step {
  display: none;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  animation: fade .3s ease;
}
.step.is-active { display: block; }
.step h2 { margin: 0 0 18px; font-size: 20px; font-family: var(--font-head); font-weight: 700; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Option buttons */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.options.two { grid-template-columns: 1fr 1fr; }
.option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  background: #fbfbff;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s ease;
  color: var(--navy);
}
.option svg { width: 30px; height: 30px; color: var(--indigo); flex: none; }
.option span { font-size: 13.5px; font-weight: 600; text-align: center; }
.option:hover { border-color: var(--indigo); }
.option.selected {
  border-color: var(--indigo);
  background: #eeeeff;
  box-shadow: 0 0 0 3px rgba(100, 100, 249, 0.15);
}

/* Fields */
.field { display: block; margin-bottom: 16px; }
.field > span, .field-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  background: #fff;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo);
}
.field textarea { resize: vertical; }
.file-hint { font-size: 13px; color: var(--indigo); margin-top: 6px; display: block; }

/* Review */
.review { margin: 0; }
.review div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.review dt { color: var(--muted); font-size: 14px; }
.review dd { margin: 0; font-weight: 600; text-align: right; }

/* Error */
.err { color: #d23b3b; font-size: 14px; margin: 6px 0 0; min-height: 1px; }

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.btn {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: var(--indigo);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--indigo-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--line);
  flex: 0 0 auto;
}
.btn.ghost:hover { background: #f3f3fb; }

/* Success */
.success {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 24px;
  text-align: center;
}
.success .tick {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e6f8ee;
  color: #16a34a;
  font-size: 34px;
  line-height: 64px;
  font-weight: 700;
}
.success h2 { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; }
.success p { color: var(--muted); margin: 6px 0; }
.success .muted a { color: var(--indigo); font-weight: 600; text-decoration: none; }

/* Footer */
.foot {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.foot a { color: var(--indigo); font-weight: 700; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.foot a svg { width: 15px; height: 15px; }

@media (max-width: 380px) {
  .options { grid-template-columns: 1fr; }
}
