/* --------------- Stepper List --------------- */
.stepper-list {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;

  --divider-w: auto;
}

.step-item {
  min-width: 0;
  flex-shrink: 0;
  flex-basis: auto;
}

/* Step Box (circle + label) */
.step-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 18px;
  color: #abb7c2;
}

/* Step Circle */
.step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  border: 1px solid #abb7c2;
  color: inherit;
  width: 40px;
  height: 40px;
  line-height: 1;
}

.step-circle .step-check {
  display: none;
  width: 24px;
  height: 24px;
}
.step-circle[data-state="active"] {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}
.step-circle[data-state="success"] {
  background: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
}
.step-circle[data-state="success"] .step-index {
  display: none;
}
.step-circle[data-state="success"] .step-check {
  display: block;
}

/* Step Label */
.step-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #abb7c2;
}
.step-label[data-state="active"],
.step-label[data-state="success"] {
  color: var(--brand-orange);
}

.step-divider {
  background: #cfd6dc99;
  height: 1px;
  flex: 1 1 auto;
  min-width: 50px;
}

.step-divider.is-equal {
  flex: 0 0 var(--divider-w);
  width: var(--divider-w);
}

/* ----- Responsive Design ----- */
@media (max-width: 768px) {
  .stepper-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .step-divider {
    display: none;
  }
}
