/* Exit Intent Popup */
.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

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

.exit-popup-container {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.exit-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #9ca3af;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 100;
}

.exit-popup-close:hover {
  background: #f3f4f6;
  color: #4b5563;
}

.exit-popup-content {
  padding: 50px 40px 40px;
  text-align: center;
}

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

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

.exit-popup-content h2 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #111827;
}

.exit-popup-subtitle {
  font-size: 18px;
  color: #374151;
  margin-bottom: 30px;
  line-height: 1.6;
}

.exit-popup-subtitle strong {
  color: #2563eb;
}

/* Benefits */
.exit-popup-benefits {
  background: #f9fafb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-icon {
  color: #10b981;
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
}

/* Form */
.exit-popup-form {
  text-align: left;
}

.exit-popup-form .form-group {
  margin-bottom: 16px;
}

.exit-popup-form input,
.exit-popup-form textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.exit-popup-form input:focus,
.exit-popup-form textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group a {
  color: #2563eb;
  text-decoration: underline;
}

.exit-popup-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exit-popup-form .btn-primary {
  background: #2563eb;
  color: white;
}

.exit-popup-form .btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.exit-popup-form .btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.exit-popup-guarantee {
  text-align: center;
  margin-top: 16px;
  color: #6b7280;
}

/* Success State */
.exit-popup-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.exit-popup-success h3 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #10b981;
}

.exit-popup-success p {
  font-size: 16px;
  margin-bottom: 24px;
  color: #374151;
}

.exit-popup-success .btn {
  display: inline-block;
  padding: 12px 24px;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exit-popup-success .btn:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .exit-popup-content {
    padding: 40px 24px 24px;
  }

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

  .exit-popup-subtitle {
    font-size: 16px;
  }

  .exit-popup-icon {
    font-size: 48px;
  }

  .exit-popup-form .btn {
    font-size: 16px;
  }

  .exit-popup-container {
    max-height: 80vh;
  }

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

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

  .exit-popup-overlay {
    transition: none;
  }
}
