.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  display: flex;
  flex-direction: row;
  background: #7B5250;
  padding: 2rem;
  border-radius: 40px;
  position: relative;
  width: 1000px;
  height: 560px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-content-split {
  width: 50%; 
  padding: 0 15px;
}

.popup-title {
  font-size: 48px;
  font-size: 48px;
  line-height: 48px;
  font-family: 'Antarctica', sans-serif;
  font-weight: 400;
  margin-bottom: 50px;
  padding-right: 50px;
}

.popup-text {
  font-size: 18px;
  line-height: 22px;
  font-family: 'Antarctica', sans-serif;
  font-weight: 300;
  margin-bottom: 20px;
  padding-right: 50px;
}

.mailto-link {
  text-decoration: underline;
}

.popup-image {
  height: 100%;
}

.footer-logo {
  position: absolute;
  width: 140px;
  bottom: 2rem;
  left: 2rem;
}

.popup-close {
  position: absolute;
  top: 25px;
  right: 25px;
  cursor: pointer;
  line-height: 0;
}

.popup-close img {
  width: 20px;
  height: 20px;
}

.popup-overlay.active {
  display: flex;
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
  .popup-content {
    flex-direction: column;
    width: 90%;
    max-width: 600px;
    height: auto;
    padding: 2rem;
    padding-top: 3.5rem;
  }

  .popup-content-split {
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .popup-title {
    margin: auto;
    width: 75%;
    font-size: 40px;
    line-height: 40px;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .popup-text {
    font-size: 16px;
    line-height: 20px;
    padding-right: 0;
    margin-bottom: 15px;
  }

  .popup-image {
    margin: auto;
    max-width: 250px;
    height: auto;
    margin-top: 20px;
    order: -1; /* Move image to the top */
  }

  .footer-logo {
    position: static;
    margin: 20px auto 0;
    display: block;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .popup-content {
    width: 95%;
    padding: 1.5rem;
    height: auto;
  }

  .popup-image {
    max-width: 150px;
  }

  .popup-title {
    font-size: 28px;
    line-height: 32px;
    padding-top: 1rem;
  }

  .popup-text {
    font-size: 16px;
    line-height: 20px;
  }

  .popup-close img {
    width: 15px;
    height: 15px;
  }

  .footer-logo {
    width: 120px;
  }
}
