.popup-overlay {
  align-items: center;
  animation: fadeIn .3s ease;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, .75);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  padding: 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9998;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-close {
  align-items: center;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 36px;
  width: 36px;
  font-size: 34px;
  height: 46px;
  width: 46px;
  justify-content: center;
  position: absolute;
  right: 25px;
  top: 25px;
  transition: transform .2s ease;
  z-index: 10;
}

.popup-close:hover {
  transform: rotate(90deg);
}

/*.popup-luxury {
  animation: slideUp .5s cubic-bezier(.16, 1, .3, 1);
  background: white;
  border-radius: 4px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .15);
  color: #1a1a1a;
  max-width: 550px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}*/

.popup-luxury {
    background: white;
    color: #1a1a1a;
    max-width: 550px;
    width: 100%;
    padding: 0;
    position: relative;
    border-radius: 4px;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 90vh;  /* ADD THIS */
}

.popup-luxury::before {
  background: linear-gradient(90deg, #c9a961 0%, #e8d4a0 50%, #c9a961 100%);
  content: '';
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

/*.popup-luxury-content {
  padding: 60px 55px;
}*/

.popup-luxury-content {
    padding: 60px 55px;
    overflow-y: auto;  /* ADD THIS */
    max-height: 90vh;  /* ADD THIS */
}

.popup-luxury-label {
  color: #c9a961;
  font-family: 'Outfit', sans-serif;
  font-size: .688rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.popup-luxury h2 {
  color: #1a1a1a;
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}

.popup-luxury p {
  color: #666;
  font-family: 'Outfit', sans-serif;
  font-size: .938rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 35px;
}

.popup-luxury-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.popup-luxury input {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  flex: 1;
  font-family: 'Outfit', sans-serif;
  font-size: .938rem;
  font-weight: 300;
  outline: none;
  padding: 16px 20px;
  transition: all .3s ease;
}

.popup-luxury input:focus {
  background: white;
  border-color: #c9a961;
}

.popup-luxury button[type='submit'] {
  background: #1a1a1a;
  border: none;
  color: white;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  padding: 16px 40px;
  text-transform: uppercase;
  transition: background .3s ease;
}

.popup-luxury button[type='submit']:hover {
  background: #333;
}

.popup-luxury-disclaimer {
  color: #999;
  font-family: 'Outfit', sans-serif;
  font-size: .688rem;
  font-weight: 300;
}

@media (max-width: 768px) {
  .popup-luxury-content {
    padding: 45px 35px;
  }

  .popup-luxury h2 {
    font-size: 1.6rem;
  }

  .popup-luxury-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .popup-luxury-content {
    padding: 40px 25px;
  }
}
