.modal {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  overflow: hidden;
}

.modal.active {
  display: flex !important;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
}

.popup-img {
  width: 140px;
  height: auto;
  margin: 0 auto 15px auto;
  display: block;
}

.popup-package {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: var(--main-color--);
  font-size: 18px;
}

.modal-content h2 {
  font-size: 22px;
  color: #272829;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 19px;
  color: #555;
  margin-bottom: 15px;
}

#closePopup {
  background: var(--main-color--);
  color: white;
  font-size: 16px;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* Fade-in animatie */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .modal-content {
    width: 90%;
  }

  .popup-img {
    width: 150px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
  }

  #closePopup {
    font-size: 14px;
    padding: 8px 15px;
  }
}
