/* Base Typography & Font */
body {
  font-family: 'Inter', sans-serif;
}

.step-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.step-box {
  flex: 1 1 0%;
  text-align: center;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out;
}

.step-active {
  background-color: #198754 !important;
  color: #fff !important;
}

.step-inactive {
  background-color: #ffffff !important;
  color: #6c757d;
}

/* -------------------------------------------
  Form Section Styling
--------------------------------------------- */
.form-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Form Subtitle */
.form-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.form-subtitle span {
  font-weight: 400;
}

.form-subtitle .text-muted {
  color: #6c757d !important;
  font-size: 0.95rem;
}

/* Custom Input Field */
.custom-input {
  font-size: 1.2rem;
  text-align: center;
}

/* -------------------------------------------
  Input Placeholder Styling
--------------------------------------------- */
::placeholder {
  color: #adb5bd !important;
  opacity: .05;
}

input::-webkit-input-placeholder {
  color: #adb5bd !important;
}

input::-moz-placeholder {
  color: #adb5bd !important;
}

input:-ms-input-placeholder {
  color: #adb5bd !important;
}

input:-moz-placeholder {
  color: #adb5bd !important;
}

/* -------------------------------------------
  Mobile Adjustments
--------------------------------------------- */
/*
@media (max-width: 576px) {
  .step-box {
    flex: 0 0 auto;
    min-width: 120px;
    font-size: 0.7rem;
    padding: 0.25rem 1rem;
    border-radius: 0 !important;
  }

  .step-box:first-child,
  .step-box:last-child {
    border-radius: 0 !important;
  }

  .step2-balance span,
  .balance-box span {
    font-size: 0.9rem !important;
  }

  .contact-info-table td,
  .contact-info-table th {
    font-size: 0.85rem !important;
  }
}


@media (max-width: 576px) {
  .form-section {
    padding: 1rem !important;
  }
}
*/

/* -------------------------------------------
  Balance Box & Contact Table Enhancements
--------------------------------------------- */
.balance-box {
  background-color: #ffffff;
  border-radius: 0.5rem;
}

.contact-info-table th,
.contact-info-table td {
  vertical-align: top;
}


/* -------------------------------------------
  Mobile Step Navigation (Previously in HTML)
--------------------------------------------- 
/*
.mobile-step-nav {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.mobile-step-nav .list-group {
  flex-wrap: nowrap;
}

.mobile-step-nav .list-group-item {
  display: inline-block;
  min-width: 20%;
  vertical-align: top;
}
*/
/* -------------------------------------------
  Step 4: Make Payment – Component Styling
--------------------------------------------- */

.modal-content {
  max-height: 75vh;
  overflow-y: auto;
}

.modal-header {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 10;
  border-bottom: 1px solid #dee2e6;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  background-color: white;
  z-index: 10;
  border-top: 1px solid #dee2e6;
}


@media (max-width: 576px) {
  .form-control,
  .form-label,
  .form-check-label {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.95rem;
  }

  .form-section {
    padding: 1rem !important;
  }
}
.error-text {
  color: #dc3545;
  font-size: 0.9rem;
  display: none;
}

/* Hide specific labels on mobile (Step 4 only) */
@media (max-width: 576px) {
  .space-hide-mobile {
    display: none !important;
  }
}

/* -------------------------------------------
  Step 5: Receipt Styling
--------------------------------------------- */

.receipt-icon {
  font-size: 1.5rem;
  color: #198754;
  margin-right: 0.5rem;
}

.alert-pink {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 5px;
}

.info-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
}

.info-value {
  font-size: 1rem;
  font-weight: 500;
}

.btn-icon {
  margin-right: 0.5rem;
}

.modal-body label {
  font-weight: 500;
  margin-top: 1rem;
}


/* -------------------------------------------
  Typography Adjustments for Mobile
--------------------------------------------- */

@media (max-width: 576px) {
  body {
    font-size: 0.925rem; /* Slightly smaller base font */
  }

  .form-control,
  .form-label,
  .btn,
  .info-value,
  .info-title,
  .list-group-item,
  .modal-body,
  .modal-footer,
  .modal-title {
    font-size: 0.875rem !important;
  }

  .step-box {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .receipt-icon {
    font-size: 1.25rem;
  }

  .btn-icon {
    font-size: 0.8rem;
  }

  .modal-content {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .receipt-actions .btn {
    flex: 1 1 45%; /* Make them take up about half the width */
    min-width: 120px;
  }

  .text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }
}

/* below is for the find account section on index.php */
	#FindAcct {
		text-align: center ;
	}

/* Style for custom red checkbox when invalid */
.form-check-input.invalid {
border: 2px solid red !important;
box-shadow: 0 0 0 0.1rem rgba(255, 0, 0, 0.25);
}
/* Style for red error message */
#errorText {
display: none;
color: red;
font-weight: 500;
font-size: 0.9rem;
margin-top: 0.5rem;
}

/* Make receipt icon green */
.receipt-icon {
font-size: 1.5rem;
color: #198754; /* Bootstrap green */
margin-right: 0.5rem;
}
/* Restore pink alert box background */
.alert-pink {
background-color: #f8d7da;
color: #721c24;
padding: 0.75rem 1.25rem;
border-radius: 0.25rem;
border: 1px solid #f5c6cb;
}