#proceed {
  background-color: gray;
  cursor: not-allowed;
}

#proceed.enabled {
  background-color: green;
  cursor: pointer;
}

.registration-container {
  max-width: 1000px;
  margin: 2rem auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}



body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  min-height: 100vh;
}

/* Colorful gradient banner */
.gradient-banner {
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg,
      #002171 0%,
      #4a0072 25%,
      #b71c1c 50%,
      #e65100 75%,
      #ffc107 100%);
}

/* Main container */
.main-container {
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Registration container */
.registration-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  background-color: white;
  border-radius: 8px;
  overflow: clip;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Left side with sticky full-viewport banner (adapts cleanly to short & tall forms) */
.id-card-section {
  width: 40%;
  position: relative;
  background: linear-gradient(90deg, #0b1f4b 25%, #16326d 50%, #0b1f4b 75%);
  background-size: 200% 100%;
  animation: pidol-skeleton-shimmer 1.6s ease-in-out infinite;
}

/* Inline skeleton shimmer for lazy-loaded dropdowns (cities / barangays) */
.form-control.skeleton-input {
  color: transparent !important;
  background: linear-gradient(90deg, #e6ebf5 25%, #f3f6fc 50%, #e6ebf5 75%) !important;
  background-size: 200% 100% !important;
  animation: pidol-skeleton-shimmer 1.2s ease-in-out infinite;
  border-color: #d1d9e6 !important;
}

@keyframes pidol-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.banner-picture {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
}

/* Special condition for Form 1 (Contact Information):
   Cut banner cleanly below the Postal ID card, center the card in the viewport,
   and push the Next button to the bottom of the form panel. */
.registration-container:has(#contact-info-section.active) .banner-picture {
  position: static;
  height: 660px;
  min-height: 540px;
  max-height: calc(100vh - 4rem);
}

.registration-container:has(#contact-info-section.active) .form-section,
.registration-container:has(#contact-info-section.active) .form-card,
.registration-container:has(#contact-info-section.active) #registration-form,
.registration-container:has(#contact-info-section.active) .form-content,
.registration-container:has(#contact-info-section.active) #new-account-content,
.registration-container:has(#contact-info-section.active) #form-sections,
.registration-container:has(#contact-info-section.active) #contact-info-section.form-step.active,
.registration-container:has(#contact-info-section.active) #contact-info-section > #contact-info-section {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.registration-container:has(#contact-info-section.active) #contact-info-section > #contact-info-section > .row:last-child {
  margin-top: auto;
  padding-top: 1.5rem;
}

.banner-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* Right side with form */
.form-section {
  width: 60%;
  position: relative;
}

/* Red line at top */
.red-top-line {
  height: 5px;
  background-color: #cc0000;
  width: 100%;
}

.white-top-line {
  height: 5px;
  background-color: #ebe5e5;
  width: 100%;
}

/* Form header - updated to match design */
.form-header {
  background-color: #002171;
  color: white;
  padding: 1.5rem;
}

.form-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-text {
  text-align: center;
  flex: 1;
}

.form-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.form-header p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #ffc107;
}

.header-logo {
  width: 60px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.left-logo {
  width: 85px;
}

.right-logo {
  width: 75px;
}


/* Account tabs - updated to match design */
.account-tabs {
  display: flex;
  width: 100%;
}

.account-tab {
  flex: 1;
  padding: 0.75rem;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.account-tab.active {
  background-color: #002171;
  color: white;
}

.account-tab:not(.active) {
  background-color: #e0e5ec;
  /* Light gray for inactive tab */
  color: #666;
}

/* Step indicator */
.step-indicator {
  padding: 1.25rem 1.5rem 0.5rem;
  border-bottom: 1px solid #eee;
}

.step-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.step-label {
  color: #888;
  font-weight: normal;
}

.progress {
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 4px;
  background-color: #002171;
  border-radius: 2px;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  transition: width 0.3s ease-in-out;
}

/* Form content with background image */
.form-content {
  position: relative;
  padding: 1.5rem;

}

.form-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image: url("/images/logo.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat; */
  opacity: 0.1;
  z-index: 0;
}

/* Form elements */
.form-step {
  display: none;
  position: relative;
  z-index: 1;
}

.form-step.active {
  display: block;
}

.section-title {
  color: #002171;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 0.9rem;
}

.small-label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #666;
}

.form-control {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.625rem;
  width: 100%;
  transition: border-color 0.3s;
  height: 40px;
  font-size: 0.86rem;
  background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  border-color: #5f5fc4;
  box-shadow: 0 0 0 0.2rem rgba(0, 33, 113, 0.1);
  outline: none;
  background-color: white;
}

.form-control.is-invalid {
  border-color: #d32f2f;
}

.invalid-feedback {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* Buttons */
.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  position: relative;
  z-index: 1;
}

.btn {
  padding: 0.625rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #002171;
  color: white;
}

.btn-primary:hover {
  background-color: #0039cb;
}

.btn-outline-secondary {
  background-color: #002171;
  color: white;
}

.btn-outline-secondary:hover {
  background-color: #0039cb;
}

/* Next button with arrow */
.next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
}

.next-btn i {
  margin-left: 0.5rem;
  font-size: 0.8rem;
}

/* Session timer */
.session-timer {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 1000;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

/* ================================
   Terms and Conditions Overlay
================================== */
.terms-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.overlay-content {
  background-color: white;
  border-radius: 10px;
  border-top: 5px solid #002171;
  width: calc(100% - 2rem);
  max-width: 600px;
  max-height: 88vh;
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 32px rgba(0, 33, 113, 0.22);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.overlay-content h3 {
  color: #002171;
  margin-bottom: 0.75rem;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
}

#terms-container {
  height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.25rem;
  margin: 0.75rem 0;
  background-color: #f9f9f9;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  width: 100%;
  box-sizing: border-box;
}

.terms-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.checkbox-container label {
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

#accept-terms {
  padding: 0.75rem 1rem;
  background-color: #ccc;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

#accept-terms.enabled {
  background-color: #002171;
  color: white;
  cursor: pointer;
}

#accept-terms.enabled:hover {
  background-color: #0039cb;
}

/* ================================
   Responsive Design
================================== */

@media (max-width: 600px) {
  .overlay-content {
    width: calc(100% - 1.5rem);
    max-height: 88dvh;
    padding: 1.25rem 1rem;
  }

  .overlay-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  #terms-container {
    height: auto;
    min-height: 180px;
    max-height: 44dvh;
    width: 100%;
    padding: 0.9rem;
    font-size: 0.85rem;
  }

  .terms-actions {
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .checkbox-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .checkbox-container label {
    font-size: 0.85rem;
  }

  #accept-terms {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  #application-overlay .overlay-content,
  #branch-overlay .overlay-content,
  .otp-modal .otp-modal-content,
  .otp-modal .input-modal-content {
    width: calc(100% - 1.5rem);
    padding: 1.5rem 1.15rem;
  }

  .otp-options {
    gap: 12px;
    flex-wrap: wrap;
  }

  .otp-option {
    padding: 10px 18px;
  }

  .otp-input-group {
    gap: 6px;
  }

  .otp-digit {
    width: 38px;
    height: 46px;
    font-size: 22px;
  }
}

/* Additional styles for account tabs */
.account-content {
  display: none;
  position: relative;
  z-index: 1;
}

.account-content.active {
  display: block;
}


/* Existing account form styling */
.existing-account-form {
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* Style the PRN input field */
#postal-reference-number {
  height: 42px;
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 0.625rem;
  width: 100%;
  font-size: 1rem;
}

/* Style the login button to match the image */
.btn-login {
  background-color: #cc0000;
  /* Red color matching the PhilPost brand */
  color: white;
  padding: 0.75rem;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  height: 42px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1rem;
}

.btn-login:hover {
  background-color: #b30000;
  color: white;
}

/* Make account tabs more visible and match the design */
.account-tabs {
  display: flex;
  width: 100%;
  border-radius: 0;
}

.account-tab {
  flex: 1;
  padding: 0.75rem;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.3px;
  font-size: 1rem;
}

.account-tab.active {
  background-color: #002171;
  /* Dark blue for active tab */
  color: white;
}

.account-tab:not(.active) {
  background-color: #e0e5ec;
  /* Light gray for inactive tab */
  color: #666;
}

#existing-account-tab.active {
  background-color: #cc0000;
  /* Red for existing account tab when active */
}

/* Form label styling */
.form-label {
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Responsive adjustments for the existing account form */
@media (max-width: 768px) {
  .existing-account-form {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .existing-account-form {
    padding: 1rem 0.75rem;
  }
}

/* Responsive adjustments for the overlay */
@media (max-width: 768px) {
  .overlay-content {
    width: calc(100% - 2rem);
    padding: 1.5rem;
  }

  #terms-container {
    width: 100%;
    max-height: 45dvh;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .overlay-content {
    width: calc(100% - 1.5rem);
    padding: 1.25rem 1rem;
    max-height: 88dvh;
  }

  #terms-container {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 44dvh;
    padding: 0.9rem;
  }

  .terms-actions {
    gap: 0.75rem;
  }
}

/* Responsive adjustments */
/* Large devices (desktops) */
@media (max-width: 1200px) {
  .main-container {
    padding: 1.5rem;
  }

  .registration-container {
    max-width: 100%;
  }
}

/* Medium devices (tablets) */
@media (max-width: 992px) {
  .registration-container {
    flex-direction: column;
  }

  .id-card-section {
    width: 100%;
    height: auto;
    background: none;
  }

  .banner-picture,
  .registration-container:has(#contact-info-section.active) .banner-picture {
    position: static;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .form-section {
    width: 100%;
  }

  .form-header h1 {
    font-size: 1.5rem;
  }
}

/* Small devices (landscape phones) */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }

  .id-card-section {
    width: 100%;
    height: auto;
    display: block;
  }

  .form-header {
    padding: 1rem;
  }

  .form-content {
    padding: 1rem;
  }

  .step-indicator {
    padding: 1rem 1rem 0.5rem;
  }
}

/* Extra small devices (phones) */
@media (max-width: 576px) {
  .main-container {
    padding: 0.5rem;
    align-items: flex-start;
  }

  .id-card-section {
    width: 100%;
    height: auto;
    display: block;
  }

  .form-header-content {
    gap: 8px;
  }

  .left-logo {
    width: 56px;
  }

  .right-logo {
    width: 50px;
  }

  .form-header h1 {
    font-size: 1.15rem;
  }

  .form-header p {
    font-size: 0.78rem;
  }

  .form-content {
    padding: 0.75rem;
  }

  .step-indicator {
    padding: 0.75rem 0.75rem 0.5rem;
  }

  .form-buttons {
    gap: 10px;
    flex-wrap: wrap;
  }

  /* Make form elements more touch-friendly on mobile */
  .form-control {
    height: 44px;
    font-size: 16px;
  }

  .btn {
    padding: 0.625rem 1rem;
  }
}

/* Review Page */

/* Core Section Styling */

.form-header-review {
  background-color: #002171;
  color: white;
  padding: 1.5rem;
}



.modal-content-review {
  background-color: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 960px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  margin: auto;
}

.review-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Section Title */
.review-section h2.label-title {
  color: #002171;
  font-size: 1.4em;
  margin-bottom: 20px;
  border-bottom: 2px solid #b71c1c;
  padding-bottom: 6px;
  font-weight: 600;
}

/* Row Layout */
.review-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Label Styling */
.review-label {
  font-weight: 600;
  width: 220px;
  color: #333;
  text-align: left;
  font-size: 0.95em;
}

/* Value Styling */
.review-value {
  flex: 1;
  text-align: left;
  word-break: break-word;
  white-space: normal;
  padding-left: 10px;
  color: #444;
  font-size: 0.95em;
}

/* Empty Value Styling */
.review-value.empty-value {
  color: #999;
  font-style: italic;
}

/* Buttons Container */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Unified Button Styles */
button {
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Primary Button */
#generate-btn {
  background-color: #002171;
  color: #fff;
}

#generate-btn:hover {
  background-color: #0039cb;
  transform: translateY(-1px);
}

/* Secondary Button */
#close-review-modal {
  background-color: #e0e0e0;
  color: #333;
}

#close-review-modal:hover {
  background-color: #bdbdbd;
  transform: translateY(-1px);
}

.form-header-content-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.header-logo-review {
  height: auto;
  max-height: 75px;
  max-width: 120px;
  object-fit: contain;
}

.header-text h1 {
  margin: 0;
  font-size: 1.8em;
  color: #ffffff;
}

.header-text p {
  margin: 4px 0 0;
  color: #dfd7d7;
  font-size: 0.95em;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .review-row {
    flex-direction: column;
  }

  .review-label {
    width: 100%;
    margin-bottom: 4px;
  }

  .form-actions {
    flex-direction: column;
    gap: 12px;
  }

  .modal-content-review {
    width: 100%;
    max-width: none;
    margin: 20px auto;
    padding: 10px;
  }

  .header-logo-review {
    max-height: 52px;
    max-width: 64px;
  }

  .header-text h1 {
    font-size: 1.2rem;
  }

  .form-header-content-review {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: center;
  }
}







.indent {
  margin-left: 20px;
  margin-top: 5px;
}

.form-label {
  margin: 10px 0px 10px 0px;
}

.form-label-bold {
  margin-bottom: 10px;
  font-weight: bold;

}

.center-checkbox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.center-checkbox .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  /* space between checkbox and label */
  padding-left: 20px;
  /* indent from the left */
}

.preferred-mailing-options {
  display: flex;
  flex-direction: row;
  gap: 30px;
  /* space between checkboxes */
  padding-left: 20px;
  /* optional indent */
  align-items: center;
  margin-bottom: 11px;
  font-size: medium;
}

@media (max-width: 576px) {
  .preferred-mailing-options {
    flex-direction: column;
    gap: 10px;
  }
}



.center-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #002171;
  /* Replace with your desired color */
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  overflow-y: auto;
  padding: 2rem;
}

.modal-content {
  background: #fff;
  margin: auto;
  max-width: 900px;
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #d32f2f;
}

.label-title {
  margin-bottom: 10px;
}



/*# Application Overlay Styles */

#application-overlay {
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  /* Overlay background */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#application-overlay .overlay-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#application-overlay h3.title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

#application-overlay .section {
  /* margin-bottom: 20px; */
}

#application-overlay .question {
  font-size: 18px;
  margin-bottom: 10px;
}

#application-overlay .question-options {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

#application-overlay .button {
  padding: 10px 20px;
  background-color: #002171;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
  text-align: center;
}

#application-overlay .button:hover {
  background-color: #0039cb;
}

#application-overlay .button.option-btn {
  width: 48%;
}

/* ✅ Mobile responsiveness */
@media (max-width: 600px) {
  #application-overlay .question-options {
    flex-direction: column;
    align-items: center;
  }

  #application-overlay .button.option-btn {
    width: 80%;
  }

  #application-overlay .button i {
    font-size: 16px;
  }
}


#application-overlay .input-field {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  /* margin-top: 8px; */
}

#application-overlay .label {
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

/* #application-overlay #back-btn, */
#application-overlay #back-btn-new {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  background-color: #f1f1f1;
  color: #007bff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

/* #application-overlay #back-btn:hover, */
#application-overlay #back-btn-new:hover {
  background-color: #e0e0e0;
}

/* Hide elements by default */
#application-overlay #existing-application-section,
#application-overlay #new-application-form {
  display: none;
}


/*# Application Overlay Styles End*/



/* /public/css/branch-overlay.css */
/* Scoped using #branch-overlay */
#branch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#branch-overlay .overlay-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

#branch-overlay .title {
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
}

#branch-overlay .form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

#branch-overlay .form-control {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-top: 2px;
}

#branch-overlay .button-area {
  margin-top: 20px;
  text-align: right;
}

#branch-overlay .btn {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background-color: #002171;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#branch-overlay .btn:hover {
  background-color: #0039cb;
}


.form-actions button {
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.form-actions button:hover {
  background-color: #0056b3;
}

/* for otp-modal */

.otp-modal {
  display: none;
  /* set to flex to for testing */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}


.otp-modal .otp-modal-content,
.otp-modal .input-modal-content {
  position: relative;
  background-color: #ffffff;
  padding: 2rem 2.25rem;
  border-radius: 10px;
  border-top: 5px solid #002171;
  box-shadow: 0 12px 32px rgba(0, 33, 113, 0.22);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 92%;
  max-width: 440px;
}


.otp-modal .otp-modal-header {
  font-size: 1.35rem;
  font-weight: 700;
  color: #002171;
  margin: 0.25rem 0;
}


.otp-modal .close-btn,
.otp-modal .enter-otp-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #64748b;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}


.otp-modal .close-btn:hover,
.otp-modal .enter-otp-close-btn:hover {
  color: #002171;
}


.otp-modal h2 {
  color: #002171;
  font-weight: 700;
  margin: 0;
}


.otp-modal .message {
  max-width: 380px;
  text-align: center;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.4;
}


.otp-image {
  max-width: 180px;
  height: auto;
  object-fit: contain;
}


.otp-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 6px 0;
}


.otp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #d1d9e6;
  border-radius: 50px;
  padding: 12px 24px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 33, 113, 0.06);
}


.otp-option img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}


.otp-option span {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}


.otp-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 33, 113, 0.12);
  border-color: #002171;
  background-color: #f4f7fd;
}


.otp-option:hover span {
  color: #002171;
}


.otp-option.active {
  border-color: #002171;
  background-color: #eef3fc;
  box-shadow: 0 6px 14px rgba(0, 33, 113, 0.14);
}


.otp-option.active span {
  color: #002171;
}


.send-otp-btn {
  background-color: #002171;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  width: 100%;
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}


.send-otp-btn:hover {
  background-color: #003594;
  transform: translateY(-1px);
}


.send-otp-btn:active {
  background-color: #001854;
  transform: translateY(0);
}

.send-otp-btn:disabled {
  background-color: #94a3b8;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

/* Set by gateButton() in utilities/fetch.js while a request is in flight */
button[data-busy="1"] {
  cursor: progress;
  opacity: 0.7;
}

/* Searchable Select Dropdown */
.ss-wrapper {
  position: relative;
  width: 100%;
}

.ss-native-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ss-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
}

.ss-trigger:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.85;
}

.ss-wrapper.ss-open .ss-trigger,
.ss-trigger:focus {
  border-color: #002171;
  box-shadow: 0 0 0 3px rgba(0, 33, 113, 0.14);
  outline: none;
}

.ss-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-label.ss-placeholder {
  color: #777;
}

.ss-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #002171;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.ss-wrapper.ss-open .ss-arrow {
  transform: rotate(180deg);
}

.ss-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 33, 113, 0.16);
  z-index: 10050;
  overflow: hidden;
}

.ss-search-wrap {
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ss-search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.ss-search:focus {
  border-color: #002171;
  box-shadow: 0 0 0 2px rgba(0, 33, 113, 0.12);
}

.ss-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
}

.ss-option {
  padding: 9px 12px;
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.ss-option:hover,
.ss-option.ss-highlighted {
  background-color: #eef3fc;
  color: #002171;
}

.ss-option.ss-selected {
  background-color: #002171;
  color: #ffffff;
  font-weight: 600;
}

.ss-empty {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}



.resend-btn {
  background: none;
  border: none;
  text-decoration: underline;
  color: #004aad;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  margin-top: 8px;
}


.resend-btn:hover {
  color: #002171;
}



.otp-input-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 14px 0;
}


.otp-digit {
  width: 44px;
  height: 52px;
  font-size: 26px;
  font-weight: 700;
  color: #002171;
  text-align: center;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background-color: #f8fafc;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}


.otp-digit:focus {
  border-color: #002171;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 33, 113, 0.15);
}


.otp-digit::-webkit-inner-spin-button,
.otp-digit::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.app-button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.app-button-container button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}


/* Mobile responsiveness */
@media (max-width: 600px) {
    .app-button-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .app-button-container button {
        width: 80%;
        font-size: 18px;
    }
}


.search-btn {
  border-radius: 4px;
  padding: 10px 35px;
  background-color: #002171;
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s
}

.search-btn:hover {
  background-color: #0039cb;
}

.goback-btn {
  border-radius: 4px;
  padding: 10px 35px;
  background-color: #e9e9e9;
  color: #333333;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s
}

.goback-btn:hover {
  background-color: #c3c3c3;
}

select:invalid {
  color: gray;
}

/* Ensure normal options have a normal text color */
select option {
  color: black;
}

.branch-address {
  margin-top: 5px;
  margin-left: 7px;
  font-weight: normal;
  color: #4b4242;
}

i:not(.fa-arrow-right):not(.fa-arrow-left):not(.fa-solid):not(.fas) {
  /* font-size: small; */
  font-size: 0.78em;
}

i:not(.fa-arrow-right):not(.fa-arrow-left):not(.fa-solid):not(.fas)::before {
  content: "(";
}

i:not(.fa-arrow-right):not(.fa-arrow-left):not(.fa-solid):not(.fas)::after {
  content: ")";
}