/* step indicator base styles */
.stepper {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
  width: 100%;
}

.step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.step .circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d1d5db;
  background: #fff;
  font-weight: 600;
}

.step .label {
  display: block;
  margin-top: .5rem;
  font-size: .875rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
  .step .label {
    font-size: .65rem;
  }
  .step .circle {
    width: 32px;
    height: 32px;
    font-size: .875rem;
  }
  .stepper {
    gap: 0.5rem;
  }
  .step:not(:last-child)::after {
    left: calc(50% + 16px);
    top: 16px;
  }
}

/* connector line between steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% + 18px);
  right: -50%;
  top: 18px;
  height: 2px;
  background: #e6e9ee;
  z-index: -1;
}

/* states */
.step.active .circle {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.step.completed .circle {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.step.completed .label,
.step.active .label {
  color: #111827;
  font-weight: 600;
}

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

/* responsive: stack vertically on small screens */
/* @media (max-width: 575.98px) {
  .stepper {
    flex-direction: column;
    gap: 1.25rem;
  }

  .step:not(:last-child)::after {
    display: none;
  }
} */