<?php 
$status = array("completed","completed","","");
?>

<div class="stepper-wrapper">
  <div class="stepper-item <?php echo $status[0]; ?>">
    <div class="step-counter">1</div>
    <div class="step-name">Daftar</div>
  </div>
  <div class="stepper-item <?php echo $status[1]; ?>">
    <div class="step-counter">2</div>
    <div class="step-name">Proses</div>
  </div>
  <div class="stepper-item <?php echo $status[2]; ?>">
    <div class="step-counter">3</div>
    <div class="step-name">Lengkapi</div>
  </div>
  <div class="stepper-item <?php echo $status[3]; ?>">
    <div class="step-counter">4</div>
    <div class="step-name">Selesai</div>
  </div>
</div>

<style>
.stepper-wrapper {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.stepper-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;

  @media (max-width: 768px) {
    font-size: 14px;
  }
}

.stepper-item::before {
  position: absolute;
  content: "";
  border-bottom: 2px solid #ccc;
  width: 100%;
  top: 20px;
  left: -50%;
  z-index: 2;
}

.stepper-item::after {
  position: absolute;
  content: "";
  border-bottom: 2px solid #ccc;
  width: 100%;
  top: 20px;
  left: 50%;
  z-index: 2;
}

.stepper-item .step-counter {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ccc;
  margin-bottom: 6px;
}

.stepper-item.active {
  font-weight: bold;
}

.stepper-item.completed .step-counter {
  background-color: #4bb543;
  color:#fff;
  font-size:20px;
  border-width:2px;
  border-style:solid;
  border-color:#fff;
}

.stepper-item.completed::after {
  position: absolute;
  content: "";
  border-bottom: 2px solid #4bb543;
  width: 100%;
  top: 20px;
  left: 50%;
  z-index: 3;
}

.stepper-item:first-child::before {
  content: none;
}
.stepper-item:last-child::after {
  content: none;
}

</style>