.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.stepper-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  transition: all 0.3s ease;
}

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

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

.step-counter {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #757575;
  margin-bottom: 6px;
  font-weight: bold;
  font-family: 'Helvetica', sans-serif;
}

.step-name {
  font-size: 0.85rem;
  color: #666;
  font-family: 'Helvetica', sans-serif;
}

/* Active State: Deep Blue with White Text */
.stepper-item.active .step-counter {
  background-color: #1a73e8; /* Professional Blue */
  color: #ffffff;            /* Pure White text for clarity */
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2); /* Subtle glow effect */
  border: none;
}

.stepper-item.active .step-name {
  color: #1a73e8;
  font-weight: 700;
  font-family: 'Helvetica', sans-serif;
}

/* Completed State: Keep the Green but use a "softer" Forest Green */
.stepper-item.completed .step-counter {
  background-color: #2e7d32; 
  color: #ffffff;
}
.stepper-item.completed::after {
  position: absolute;
  content: "";
  border-bottom: 2px solid #2e7d32;
  width: 100%;
  top: 20px;
  left: 50%;
  z-index: 2;
}

/* Responsive adjustment for small screens */
@media (max-width: 480px) {
  .step-name {
    font-size: 0.7rem;
  }
  .step-counter {
    width: 30px;
    height: 30px;
  }
  .stepper-item::before, .stepper-item.completed::after {
    top: 15px;
  }
}

.btn-next-container {
    margin-top: 50px;
    display: flex;
    justify-content: center; /* Keeps everything centered */
    align-items: center;
    gap: 30px;               /* Space between Back and Confirm */
    width: 100%;
    position: relative;
}

/* Back Button Style */
.btn-back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: #888;             /* Subtle grey at rest */
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
}

.btn-back-link i {
    margin-right: 8px;
    font-size: 13px;
}

/* Back Button Hover: Wakes up without being too loud */
.btn-back-link:hover {
    color: #004d99;          /* Turns Blue to match theme */
    background-color: #f0f4f8; /* Soft highlight */
    transform: translateX(-5px); /* Gentle nudge left */
}

/* Your existing btn-grand probably has specific styles, 
   but adding a subtle shadow helps it look more 'Grand' */
.btn-grand {
    min-width: 250px;        /* Ensures it stays 'Conspicuous' */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Optional: If you want the Confirm button to be EXACTLY centered 
   despite the back button being on the left */
.btn-spacer {
    width: 130px;            /* Same width as your back button */
    display: block;
}

@media (max-width: 600px) {
    .btn-next-container {
        flex-direction: column-reverse; /* Stack them on mobile */
        gap: 20px;
    }
}

