/* ==========================================================================
   Section: Flow Steps
   ADVANCE v2
   ========================================================================== */

.s-flow-steps {
  display: flex;
  gap: 0;
  counter-reset: step;
  position: relative;
}

/* ---------- Step item ---------- */
.s-flow-steps__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 16px;
  counter-increment: step;
}

/* ---------- Number badge ---------- */
.s-flow-steps__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* ---------- Connector line ---------- */
.s-flow-steps__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  right: calc(-50% + 36px);
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}

/* ---------- Icon ---------- */
.s-flow-steps__icon {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-top: 16px;
}

/* ---------- Image ---------- */
.s-flow-steps__image {
  width: 100%;
  max-width: 180px;
  margin-top: 16px;
  border-radius: var(--btn-radius);
  overflow: hidden;
}

.s-flow-steps__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ---------- Text ---------- */
.s-flow-steps__title {
  font-weight: var(--font-weight-heading);
  font-size: 1.05rem;
  line-height: 1.4;
  margin-top: 12px;
  color: var(--color-text);
}

.s-flow-steps__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* ---------- Responsive: vertical ---------- */
@media (max-width: 767px) {
  .s-flow-steps {
    flex-direction: column;
    gap: 0;
    padding-left: 36px;
  }

  .s-flow-steps__item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0 0 32px 0;
    gap: 16px;
  }

  .s-flow-steps__number {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .s-flow-steps__item:not(:last-child)::after {
    top: 44px;
    left: 22px;
    right: auto;
    width: 2px;
    height: calc(100% - 44px);
  }

  .s-flow-steps__body {
    flex: 1;
  }

  .s-flow-steps__icon,
  .s-flow-steps__image {
    margin-top: 8px;
  }

  .s-flow-steps__title {
    margin-top: 0;
  }
}
