/* Popup Message Overlay */
.popup-message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Overlay back */
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  box-sizing: border-box;
}

/* Popup Message Container */
.popup-message {
  display: flex;
  flex-direction: row; /* image right, content left */
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 750px;
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Close Button */
.popup-message__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  color: #000;
  padding: 0;
  line-height: 1;
  z-index: 10;
}

.popup-message__description p{
  color:white;
}

.popup-message__close:hover {
  color: #555;
}

/* Image on the right */
.popup-message__image {
  flex: 1 1 40%;
  line-height: 0;
}

.popup-message__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content on the left */
.popup-message__content-wrapper {
  background-color: #0052cc;
  padding: 30px 40px;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 475px;
}

.popup-message__description b, strong{
  font-weight: 600 !important;
}

/* Title */
.popup-message__title {
  margin-bottom: 20px !important;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

/* Description */
.popup-message__description {
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 12px;
  text-align: center;
}

/* Call to Action */
.popup-message__cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.popup-message__cta-button {
  background-color: #fff;
  color: #0052cc;
  text-decoration: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.popup-message__cta-button:hover {
  background-color: #eee;
}

/* Responsive */
@media (max-width: 768px) {
  .popup-message {
    flex-direction: column;
    max-width: 95vw;
  }

  .popup-message__image {
    order: -1; /* image on top for mobile */
  }

  .popup-message__image img {
    max-height: 300px;
    object-fit: cover;
  }

  .popup-message-overlay {
    bottom: 10px;
    right: 10px;
  }

  .popup-message__content-wrapper {
    max-width: 100%;
    padding: 25px;
    text-align: center;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .popup-message {
    flex-direction: column;
    max-width: 80vw;
  }

  .popup-message__image {
    order: -1; /* place image on top */
    width: 100%;
    height: 50%;
  }

  .popup-message__image img {
    max-height: 300px;
    object-fit: cover;
  }

  .popup-message__content-wrapper {
    max-width: 100%;
    padding: 25px;
    text-align: center;
  }

  .popup-message__cta {
    justify-content: center;
  }

  .popup-message-overlay {
    align-items: center;
    justify-content: center;
    padding: 15px;
  }
}