:root {
    --qpay-primary: #2a4365;
    --qpay-secondary: #3182ce;
    --qpay-accent: #38b2ac;
    --qpay-danger: #e53e3e;
    --qpay-light: #f8fafc;
    --qpay-gray: #e2e8f0;
    --qpay-step-border: #cbd5e1;
    --qpay-step-active: #3182ce;
    --qpay-step-completed: #38b2ac;
    --qpay-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
}

/* Card sizing for standard web form */
.card {
    border-radius: 18px;
    box-shadow: var(--qpay-shadow);
    border: none;
    max-width: 900px;
    margin: 0 auto;
}

.card-header {
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, var(--qpay-primary) 0%, var(--qpay-secondary) 100%);
    color: #fff;
    padding: 2rem 1.5rem 1rem 1.5rem;
    border-bottom: none;
}

.card-header h4 {
    font-weight: 700;
    font-size: 25px;
    letter-spacing: 1px;
    color: #fff;
    font-family: "Roboto", sans-serif;
}

.card-header small {
    color: #e0e7ef;
    font-family: "Roboto", sans-serif;
}

.card-body i {
    margin-right: 8px;
    margin-bottom: 10px;
    font-size: 25px;
}

/* ============================================
   STEP INDICATOR (Web + Mobile Responsive)
=============================================== */
.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Horizontal connector line (desktop) */
.step-indicator::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 100px;
  right: 100px;
  height: 4px;
  background: #e5e7eb;
  z-index: 0;
  border-radius: 3px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 1;
  min-width: 80px;
}

.step-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 1.3rem;
  font-weight: 700;
  border: 3px solid #d1d5db;
  transition: background 0.3s, border 0.3s, color 0.3s;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
}

.step-circle.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.step-circle.completed {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
   /* background: #10b981; 
  border-color: #10b981;*/
}

.step small {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
  text-align: center;
}

/* 📱 Mobile-friendly stacked layout with vertical progress */
@media (max-width: 768px) {
  .step-indicator {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 10px;
    position: relative;
  }

  /* Remove horizontal and vertical connector from the container */
  .step-indicator::before,
  .step-indicator::after {
    display: none;
  }

  .step {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 15px;
    gap: 12px;
    background-color: #fff;
    position: relative;
  }

  .step-circle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    z-index: 2;
    position: relative;
    margin-bottom: 0;
  }

  /* Vertical connector progress for completed steps */
  .step-circle.completed::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -100%; /* connect to next step */
    width: 3px;
    height: calc(100% + 12px); /* step gap */
    background: transparent;
    /* background: #10b981; */
    transform: translateX(-50%);
    z-index: 1;
  }

  /* Remove connector for last step */
  .step:last-child .step-circle.completed::after {
    display: none;
  }

  .step small {
    font-size: 0.9rem;
    color: #4b5563;
  }
}


.card-body {
    background: #fff;
    border-radius: 0 0 18px 18px;
    font-size: 18px;
    padding: 2rem;
    font-family: "Roboto", sans-serif;
}
.card-body h5 {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--qpay-primary);
    font-family: "Roboto", sans-serif;
}

.card-body p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1rem;
    font-family: "Roboto", sans-serif;
}

.form-group label {
    font-weight: 600;
    color: var(--qpay-primary);
    margin-bottom: 6px;
    font-family: "Roboto", sans-serif;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1.5px solid var(--qpay-gray);
    padding: 0.7rem 1rem;
    font-size: 1rem;
    background: #f9fafb;
    transition: border 0.2s;
    font-family: "Roboto", sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--qpay-secondary);
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.08);
    background: #fff;
}

.alert {
    border-radius: 8px;
    font-size: 18px;
    margin-top: 1rem;
    font-family: "Roboto", sans-serif;
}

.alert-info {
     border-left: var(--qpay-secondary) 5px solid;
    background: #ebf8ff;
    color: #0369a1;
}
.alert-info i {
    margin-right: 10px;
    color: var(--qpay-secondary);
    font-size: 20px;
}
.alert-info strong {
    font-size: 1.1rem;
    color: #0369a1;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
}
.alert-info p {
    margin-top: 5px;
    font-size: 1rem;
    color: #0369a1;
}
.alert-danger {
    border-left: var(--qpay-danger) 5px solid;
    background: #fef2f2;
    color: #b91c1c;
}
.alert-danger i {
    margin-right: 10px;
    color: var(--qpay-danger);
    font-size: 20px;
}
.alert-danger p {
    margin-top: 5px;
    font-size: 1rem;
    color: #b91c1c;
}
.alert-danger strong {
    font-size: 1.1rem;
    color: #b91c1c;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
}
.alert-warning {
    border-left: orange 5px solid;
    background: #fff7e6;
    color: orange;
}
.alert-warning i {
    margin-right: 10px;
    color: orange;
    font-size: 20px;
}
.alert-warning p {
    margin-top: 5px;
    font-size: 1rem;
    color: orange;
}
.alert-warning strong {
    font-size: 1.1rem;
    color: orange;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
}

.alert-success-confirm {
    border-left: green 5px solid;
    background: #f0fdf4;
    color: green;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.alert-success-confirm i{
    color: green;
    font-size: 60px;
    margin-bottom: 15px;
}

/* Button spacing for mobile */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    font-size: 1.08rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.04);
    margin-bottom: 0.5rem;
}

.btn-primary,
.btn-success {
    background: linear-gradient(90deg, var(--qpay-secondary) 0%, var(--qpay-accent) 100%);
    border: none;
}

.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(90deg, var(--qpay-accent) 0%, var(--qpay-secondary) 100%);
    color: #fff;
}

.btn-outline-secondary {
    border: 2px solid var(--qpay-secondary);
    color: var(--qpay-secondary);
    background: #fff;
}

.btn-outline-secondary:hover {
    background: var(--qpay-secondary);
    color: #fff;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-check-label {
    font-weight: 500;
    color: #374151;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid black;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
}

.form-check-input:checked {
    background-color: var(--qpay-secondary);
    border-color: var(--qpay-secondary);
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .card {
        margin: 1rem;
        max-width: none;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    /* Keep buttons side by side */
    .d-flex.justify-content-between {
        flex-direction: row; /* Changed from column to row */
        gap: 1rem;
        width: 100%;
    }
    
    .d-flex.justify-content-between .btn {
        flex: 1; /* Make buttons take equal width */
        min-width: 120px; /* Minimum width for buttons */
        margin: 0;
    }
    
    /* For custom button container class */
    .button-container-mobile {
        flex-direction: row; /* Changed from column to row */
        gap: 1rem;
        width: 100%;
    }
    
    .button-container-mobile .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 600px) {
    /* .step-indicator {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .step-indicator::before {
        display: none;
    }

    .step-circle {
        margin-bottom: 0;
        margin-right: 0;
    } */

    .form-toast {
        position:fixed;
        top:30px;
        right:30px;
        z-index:9999;
        min-width:220px;
    }
}