:root {
  --bg: #080808;
  --bg-soft: #141414;
  --card: #1c1c1c;
  --card-hover: #252525;
  --line: rgba(255, 193, 7, 0.14);
  --text: #ffffff;
  --muted: #bfbfbf;
  --brand: #ffc107;
  --brand-strong: #ffd24a;
  --brand-dark: #9a1f49;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #000000, #171717);
}

.page {
  width: min(100%, 100%);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
}

.wizard-card {
  width: min(100%, 520px);
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(154, 31, 73, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(28, 28, 28, 0.98), rgba(18, 18, 18, 0.98));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.wizard-header {
  text-align: center;
  margin-bottom: 22px;
}

.brand-logo {
  width: min(220px, 100%);
  display: block;
  margin: 0 auto 16px;
}

.wizard-header h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.08;
  color: var(--brand);
}

.wizard-header p {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 38ch;
}

.stepper {
  margin-bottom: 22px;
}

.stepper-top {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.step-node {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.step-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  background: #353535;
  color: #d0d0d0;
  transition: 0.2s ease;
}

.step-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.step-text {
  font-size: 0.76rem;
  font-weight: 700;
  color: #909090;
}

.step-node.active .step-icon,
.step-node.done .step-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #111111;
}

.step-node.active .step-text,
.step-node.done .step-text {
  color: var(--brand);
}

.progress {
  height: 6px;
  background: #303030;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  transition: width 0.25s ease;
}

.wizard-form {
  display: grid;
  gap: 22px;
}

.form-step {
  display: none;
  gap: 18px;
}

.form-step.active {
  display: grid;
}

.step-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.step-header h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--text);
}

.step-count,
.question-block legend,
.form-status {
  color: var(--muted);
}

.step-count {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.field,
.question-block {
  margin: 0;
}

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

.field {
  display: grid;
  gap: 0;
}

.question-block legend {
  font-size: 0.92rem;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: #242424;
  color: var(--text);
  font: inherit;
  transition: 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.14);
}

.field select {
  appearance: none;
  color: #9c9c9c;
}

.field select:valid {
  color: var(--text);
}

.choice-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.choice-list.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #242424;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.choice-card:hover {
  border-color: var(--brand);
  background: var(--card-hover);
}

.choice-card:has(input:checked) {
  border-color: var(--brand);
  background: #242424;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  line-height: 1.5;
}

.wizard-footer {
  display: grid;
  gap: 18px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 0.9rem;
}

.form-status.success {
  color: #67d5a1;
}

.form-status.error {
  color: #ff7f8d;
}

.buttons {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

button {
  flex: 1;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 0;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.btn-next {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #111111;
}

.btn-back {
  background: #333333;
  color: white;
}

.btn-back:disabled {
  background: #2b2b2b;
  color: #7f7f7f;
}

#submit-button {
  display: none;
}

@media (max-width: 560px) {
  .wizard-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .stepper-top {
    grid-template-columns: repeat(5, minmax(52px, 1fr));
    gap: 6px;
  }

  .step-icon {
    width: 38px;
    height: 38px;
  }

  .step-text {
    font-size: 0.68rem;
    text-align: center;
    line-height: 1.2;
  }

  .choice-list.two-cols,
  .field-row {
    grid-template-columns: 1fr;
  }

  .step-header {
    flex-direction: column;
  }

  .buttons {
    gap: 10px;
  }

  button {
    min-height: 54px;
  }
}
