/* Force modal to stay centered in viewport, not page */
#termsModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;

}

#termsModal.show {
  display: flex !important;
}

#termsModal .modal-dialog {
  position: relative !important;
  margin: 0 !important;
  max-width: 90vw !important;
  width: auto !important;
}

/* Enable immediate scroll (no animation delay) for terms content */
#termsModal .modal-body {
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Ensure it stays centered on small screens too */
@media (max-width: 575.98px) {
  #termsModal .modal-dialog {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    
  }
}

/* Dark blue theme for Terms Modal */
#termsModal .modal-header.bg-primary {
  background-color: #071543 !important;
  border-bottom: 2px solid #2f0da8;
}

#termsModal .terms-content .text-primary {
  color: #071543 !important;
}

#termsModal .modal-footer .btn-primary {
  background-color: #071543 !important;
  border-color: #2f0da8 !important;
}

#termsModal .modal-footer .btn-primary:hover {
  background-color: #0a1f5c !important;
  border-color: #3d12d4 !important;
}

#termsModal .modal-footer .btn-secondary {
  background-color: #1a1a2e !important;
  border-color: #2f0da8 !important;
}

#termsModal .modal-footer .btn-secondary:hover {
  background-color: #2a2a4e !important;
}