/**
 * Exit-Intent Popup Styles
 * Aquasolve Water Technology
 */

#aq-exit-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
}

#aq-exit-popup.aq-popup-visible {
  display: block;
}

.aq-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.aq-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  z-index: 1000000;
}

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

.aq-popup-close:hover {
  background: rgba(100, 116, 139, 0.1);
  color: #0a1628;
  transform: rotate(90deg);
}

.aq-popup-inner {
  padding: 48px 40px;
  text-align: center;
}

.aq-popup-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: bounce 1s ease infinite;
}

.aq-popup-inner h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: #0a1628;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.aq-popup-inner > p {
  font-size: 18px;
  color: #0a1628;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.aq-popup-inner > p strong {
  color: #0db8c8;
  font-weight: 600;
}

.aq-popup-sub {
  font-size: 14px !important;
  color: #64748b !important;
  margin-bottom: 28px !important;
}

.aq-popup-form {
  margin: 28px 0;
}

.aq-popup-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.aq-popup-input:focus {
  outline: none;
  border-color: #0db8c8;
  box-shadow: 0 0 0 3px rgba(13, 184, 200, 0.1);
}

.aq-popup-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0db8c8 0%, #0891a0 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(13, 184, 200, 0.25);
}

.aq-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 184, 200, 0.35);
}

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

.aq-popup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.aq-popup-privacy {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin-top: 20px !important;
  line-height: 1.5 !important;
}

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

.aq-popup-success .aq-popup-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: scaleIn 0.5s ease;
}

.aq-popup-success h3 {
  color: #059669;
  margin-bottom: 16px;
}

.aq-popup-success p {
  margin-bottom: 12px;
}

.aq-popup-success .aq-popup-btn {
  margin-top: 24px;
  max-width: 200px;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .aq-popup-content {
    width: 95%;
    max-width: none;
  }
  
  .aq-popup-inner {
    padding: 40px 24px;
  }
  
  .aq-popup-inner h3 {
    font-size: 24px;
  }
  
  .aq-popup-inner > p {
    font-size: 16px;
  }
  
  .aq-popup-icon {
    font-size: 40px;
  }
}
