/* Exit-Intent Popup Styles */

.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.exit-popup-container {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #7c3aed;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.exit-popup-overlay.active .exit-popup-container {
  transform: scale(1) translateY(0);
}

.exit-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 5px 10px;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

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

.exit-popup-content {
  padding: 40px 30px 30px;
  text-align: center;
  color: #fff;
}

.exit-popup-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.exit-popup-content h2 {
  font-size: 28px;
  margin: 0 0 15px 0;
  color: #fff;
  line-height: 1.3;
}

.exit-popup-content > p {
  font-size: 16px;
  color: #b8b8d1;
  margin: 0 0 25px 0;
  line-height: 1.6;
}

.exit-popup-benefits {
  display: flex;
  justify-content: space-around;
  margin: 25px 0;
  gap: 15px;
  flex-wrap: wrap;
}

.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
}

.benefit-icon {
  font-size: 32px;
  display: block;
}

.benefit span:last-child {
  font-size: 13px;
  color: #b8b8d1;
  text-align: center;
}

.exit-popup-form {
  margin: 25px 0 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#exit-popup-email {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #7c3aed;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 16px;
  color: #fff;
  transition: all 0.3s ease;
}

#exit-popup-email::placeholder {
  color: #888;
}

#exit-popup-email:focus {
  outline: none;
  border-color: #a78bfa;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.exit-popup-submit {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.exit-popup-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.exit-popup-submit:active {
  transform: translateY(0);
}

.exit-popup-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.exit-popup-privacy {
  font-size: 12px;
  color: #888;
  margin: 15px 0 0 0;
  line-height: 1.4;
}

/* Success state */
.exit-popup-success {
  padding: 20px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.exit-popup-success h2 {
  color: #10b981;
  margin-bottom: 15px;
}

.exit-popup-success-btn {
  margin-top: 20px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.exit-popup-success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .exit-popup-container {
    max-width: 95%;
    border-radius: 12px;
  }

  .exit-popup-content {
    padding: 35px 20px 25px;
  }

  .exit-popup-content h2 {
    font-size: 24px;
  }

  .exit-popup-content > p {
    font-size: 15px;
  }

  .exit-popup-benefits {
    flex-direction: column;
    gap: 15px;
  }

  .benefit {
    flex-direction: row;
    justify-content: center;
    min-width: auto;
  }

  .benefit-icon {
    font-size: 28px;
  }

  .benefit span:last-child {
    font-size: 14px;
  }

  #exit-popup-email,
  .exit-popup-submit {
    padding: 12px 16px;
    font-size: 15px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .exit-popup-overlay,
  .exit-popup-container,
  .exit-popup-close,
  .exit-popup-submit,
  .exit-popup-icon {
    animation: none;
    transition: none;
  }
}
