.modal {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
}

.modal--center {
    align-items: center;
    justify-content: center;
}

.modal--open {
  display: flex;
}

.modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
}

.modal__content {
  position: relative;
  margin: 0 auto;
  z-index: 1001;
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(30px);
  opacity: 0;
  overflow: auto;
}

.modal--visible .modal__content {
  transform: translateY(0);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  width: 40px;
  color: white;
  z-index: 10;
  cursor: pointer;
}

@media (max-width: 767px) {
    .modal__content {
        height: 100%;
        border-radius: unset;
    }
}
