/* =========================================================
   wizard.css — Step progress indicator
   ========================================================= */

#wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 8px;
  position: relative;
}

.step-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  width: 100%;
  max-width: 700px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  cursor: default;
}

/* Connector line between steps */
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
  transition: background var(--transition);
}

.step-item.completed:not(:last-child)::after {
  background: var(--color-primary);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
  flex-shrink: 0;
}

.step-item.completed .step-circle {
  background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.35);
}

.step-item.completed:not(:last-child)::after {
  background: linear-gradient(90deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 60%, var(--color-border)));
}

.step-item.active .step-circle {
  background: var(--color-surface);
  border-color: var(--color-primary);
  border-width: 2px;
  color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light), 0 2px 8px rgba(26, 86, 219, 0.2);
  animation: stepPulse 2s ease-in-out infinite;
}
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--color-primary-light), 0 2px 8px rgba(26,86,219,0.2); }
  50%       { box-shadow: 0 0 0 7px color-mix(in srgb, var(--color-primary) 15%, transparent), 0 2px 8px rgba(26,86,219,0.3); }
}

.step-label {
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.2;
  max-width: 80px;
  transition: color var(--transition);
}

.step-item.active .step-label {
  color: var(--color-primary);
  font-weight: 600;
}

.step-item.completed .step-label {
  color: var(--color-text);
}

/* Check icon for completed steps */
.step-item.completed .step-circle::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
}

.step-item.completed .step-number { display: none; }

/* ── Mobile: hide labels ── */
@media (max-width: 500px) {
  .step-label { display: none; }
  .step-circle { width: 28px; height: 28px; font-size: 0.75rem; }
  .step-item:not(:last-child)::after { top: 14px; }
}
