.steps-section {
  background: #fff;
  padding: 80px 0;
}

.steps-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  position: relative;
  padding: 40px 0;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.step.visible {
  opacity: 1;
  transform: translateY(0);
}
.step .number {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 900;
  color: var(--new-green);
}
.step .content {
  background: var(--muted);
  border-radius: 14px;
  padding: 40px 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.step .icon {
  font-size: 3rem;
  color: var(--new-green);
  margin-bottom: 12px;
}

.steps-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 6px;
  border-top: 3px dashed var(--new-green);
  z-index: 1;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 1s ease;
}
.steps-line.visible {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .steps-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .step {
    width: 100%;
    max-width: 400px;
  }

  .step .number {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }

  .steps-line {
    display: none;
  }

  .steps-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: repeating-linear-gradient(
      to bottom,
      var(--new-green),
      var(--new-green) 6px,
      transparent 6px,
      transparent 12px
    );
    opacity: 0.3;
    transform: translateX(-50%);
  }

  .step .content {
    padding: 30px 20px;
  }
}