.stepper-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;

}

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.step-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  cursor: pointer;
  flex: 1;
}

.step-block .step-circle {
  width: 30px;
  height: 30px;
  background-color: #5c659d;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
outline:5px solid transparent;
}

.step-block.active .step-circle {
  background-color: white;
  outline: 5px solid #5c659d;
}

.step-block:hover .step-circle {
  background-color: #ffffff;
  transform: scale(1.1);
outline: 5px solid #5c659d;
}

.step-block .step-label {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  color: #cccccc;
  font-weight: bold;
position:absolute;
bottom:-50px;
height:40px;
max-width:100px;
}

.step-block.active .step-label {
  color: white;
}
/* Linie între cercuri (background) */
.step-block:not(:last-child)::after {
content: '';
position: absolute;
top: 50%;
left: calc(50% + 15px); /* 15px = jumătate din diametrul cercului */
height: 6px;
width: calc(100% - 30px);
background-color: #5c659d;
transform: translateY(-50%);
z-index: 1;
border-radius: 4px;
overflow: hidden;
}

/* Linie albă animată deasupra */
.step-block:not(:last-child)::before {
content: '';
position: absolute;
top: 50%;
left: calc(50% + 15px);
height: 6px;
width: 0%;
background-color: white;
transform: translateY(-50%);
z-index: 2;
border-radius: 4px;
transition: width 0.4s ease;
}

/* Când pasul este 'filled', animăm linia albă */
.step-block.filled:not(:last-child)::before {
width: calc(100% - 30px);
}

.step-block.active:not(:last-child)::after {
  
  background-size: 200% 100%;
  background-position: left center;
  transition: background-position 0.4s ease;
}

.step-block.filled:not(:last-child)::after {
  background-position: right center;
}

/* === VERSIUNE MOBIL === */
@media (max-width: 768px) {
.stepper {
flex-direction: column;
align-items: flex-start;
}

.step-block {
flex-direction: row;
align-items: flex-start;
position: relative;
width: 100%;
padding-bottom: 40px; /* distanță între pași */
}

.step-block:last-child {
padding-bottom: 0;
}

.step-block .step-circle {
width: 20px;
height: 20px;
margin-top: 0;
flex-shrink: 0;
}

.step-block .step-label {
margin-top:5px;
position: static;
margin-left: 15px;
text-align: left;
font-size: 13px;
height: auto;
line-height: 1.3;
max-width:100%;
}

/* Linie albastră între cercuri – verticală exact între ele */
.step-block:not(:last-child)::after {
content: '';
position: absolute;
top: 20px; /* imediat sub cerc */
left: 9px; /* centrul cercului de 20px (cu margin fix) */
width: 4px;
height: calc(100% - 20px); /* până jos, fără să iasă */
background-color: #5c659d;
z-index: 1;
border-radius: 2px;
transform:none;
}

/* Linie albă animată – verticală */
.step-block:not(:last-child)::before {
content: '';
position: absolute;
top: 20px;
left: 9px;
width: 2px;
height: 0;
background-color: white;
z-index: 2;
border-radius: 2px;
transition: height 0.4s ease;
transform:none;
}

.step-block.filled:not(:last-child)::before {
height: calc(100% - 20px); /* animare până jos */
width:4px;
}
}
