/* ========================================
   RCSD POPUP (Exit Intent / Scroll-based)
======================================== */

.rcsd-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99998;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.rcsd-popup-content {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideUp 0.3s ease;
  text-align: center;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.rcsd-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rcsd-popup-close:hover {
  color: #333;
}

.rcsd-popup-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #0F2D4E;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.rcsd-popup-content p {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 30px 0;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

.rcsd-popup-btn {
  display: inline-block;
  background: linear-gradient(135deg, #B89051 0%, #A67E44 100%);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.rcsd-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(184, 144, 81, 0.3);
}

.rcsd-popup-btn:active {
  transform: translateY(0);
}

.rcsd-popup-subtext {
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .rcsd-popup-content {
    padding: 40px 25px;
    max-width: calc(100% - 40px);
  }

  .rcsd-popup-content h3 {
    font-size: 1.4rem;
  }

  .rcsd-popup-content p {
    font-size: 0.9rem;
  }

  .rcsd-popup-btn {
    font-size: 0.85rem;
    padding: 12px 30px;
  }
}
