/* Modal overlay backdrop styles */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-overlay .overlay-bg {
  position: absolute;
  inset: 0;
  background: #001435;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open .overlay-bg {
  opacity: 0.6;
}

/* Modal box container states and transitions */
.modal-box {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  padding: 1.5rem 2rem;
  max-width: 32rem;
  width: 100%;
  border: 1px solid #f1f5f9;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Modal views layout */
.modal-view {
  display: none;
}

.modal-view.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
