/* ---------- Stepper ---------- */
.stepper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin-bottom: 2.5rem;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 4rem;
  left:4rem;
  height: 3px;
  background: #e9ecef;
  border-radius: 4px;
  z-index: 0;
}

.progress-line {
  position: absolute;
  top: 25px;
    height: 4px;
  background: #283891;
  border-radius: 4px;
  width: 0%;
  z-index: 1;
  transition: width 0.4s ease;
}

.step {
  position: relative;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
}

.step .circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin: 0 auto 8px;
  color: #6c757d;
  transition: all 0.35s ease;
}

.step.active .circle {
  border-color: #283891;
  color: #283891;
  background: #eef1ff;
  box-shadow: 0 4px 12px rgba(40, 56, 145, 0.15);
  transform: scale(1.08);
}

.step.completed .circle {
  background: #283891;
  border-color: #4059e1;
  color:#fff;
}
.step.completed .circle span {
  color: #fff;
}

/* ---------- Cards ---------- */
.card-step {
  position: relative;
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  background: #f8f9fa;
  transition: all 0.5s cubic-bezier(.2,.9,.2,1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}




/* Active Card Motion */
.card-step.active {
  background: #90b5ff17 !important;
  border: 1px solid #283891 !important;
  border-radius:23px 5px !important;
  color: #fff;
    transform: translateY(-8px) scale(1.03);
}

.card-step.active h4 {
  color: #030b70;
   font-size:20px ;
   font-weight:bold;
}

/* ---------- Responsive Vertical Stepper (Mobile) ---------- */
@media (max-width: 991px) {
  .stepper {
    display: none;
  }

  .mobile-stepper {
    position: relative;
    margin-top: 1rem;
    padding-right: 2.5rem;
  }

    .mobile-stepper::before {
    content: "";
    position: absolute;
    right: 3.8rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e9ecef;
    border-radius: 3px;
    z-index: 0;
  }

   .mobile-progress {
    position: absolute;
    right: 3.8rem; 
    top: 0;
    width: 3px;
    height: 0%;
    background: #283891;
    border-radius: 3px;
    transition: height 0.4s ease;
    z-index: 1;
  }


  .mobile-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    z-index: 2;
  }

   .mobile-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    color: #6c757d;
    transition: all 0.35s ease;
    z-index: 2;
  }

   .card-step {
    flex: 1;
    min-height: 160px;
    border: none;
    border-radius: 1rem;
    background: #f8f9fa;
    transition: all 0.4s ease;
    padding: 1.5rem;
    text-align: center;
  }

   .mobile-row.active .mobile-icon {
    border-color: #283891;
    color: #283891;
    background: #eef1ff;
    box-shadow: 0 4px 12px rgba(40, 56, 145, 0.15);
    transform: scale(1.1);
  }

  .mobile-row.active .card-step {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 18px 36px rgba(40, 56, 145, 0.18);
    transform: translateY(-4px) scale(1.03);
  }

    .mobile-row.completed .mobile-icon{
    background: #283891;
    border-color: #4059e1;
    color: #fff;
    box-shadow: 0 4px 10px rgba(40, 56, 145, 0.15);
  }

  .mobile-row.completed .mobile-icon svg {
    fill: #fff;
     background:#283891;
  }

  .mobile-row.completed .card-step {
    background: #eef1ff;
    color: #283891;
    box-shadow: inset 0 0 0 2px #28389130;
  }

  .mobile-row.completed .card-step h4 {
    color: #283891;
  }
}
