/* Popup background */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

/* Popup box with desktop image */
.popup-image-box {
  position: relative;
  width: 90%;
  max-width: 750px;
  min-height: 475px;
  border-radius: 12px;
  overflow: hidden;
  background-image: url("/images/popup_background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Dark overlay over image */
.popup-image-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

/* Text content */
.popup-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 48px;
  max-width: 480px;
}

.popup-content h2 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.05;
}

.popup-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
}

/* Mobile popup adjustments */
@media screen and (max-width: 749px) {
  .popup-overlay {
    padding: 14px;
  }

  .popup-image-box {
    width: 100%;
    max-width: 420px;
    min-height: 400px;
    border-radius: 10px;

    /* Mobile-specific image */
    background-image: url("/images/popup_back_mobile.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .popup-content {
    padding: 60px 24px 30px;
    max-width: 100%;
  }

  .popup-content h2 {
    font-size: 30px;
    line-height: 1.05;
    margin-bottom: 12px;
  }

  .popup-content p {
    font-size: 16px;
    line-height: 1.4;
  }

  .popup-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
}