/* 
  EXIT INTENT POPUP STYLES (from edmond-concrete)
  Modern, attention-grabbing popup with smooth animations
*/

/* Popup Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.popup-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

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

/* Popup Content */
.popup-content {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  text-align: center;
}

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

/* Close Button */
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
  padding: 0.5rem;
  line-height: 1;
  border-radius: 50%;
}

.popup-close:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

.popup-close svg {
  display: block;
}

/* Popup Text */
.popup-content h3 {
  margin-bottom: 1rem;
  color: var(--primary, #FB080E);
  font-size: 1.8rem;
  font-weight: 700;
}

.popup-content p {
  margin-bottom: 2rem;
  color: var(--text-light, #575760);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Form Styles */
#exit-intent-form .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

#exit-intent-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text, #222);
  font-size: 0.95rem;
}

#exit-intent-form label i {
  color: var(--primary, #FB080E);
}

#exit-intent-form input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-300, #dee2e6);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

#exit-intent-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--primary, #FB080E);
  box-shadow: 0 0 0 3px rgba(251, 8, 14, 0.1);
}

#exit-intent-form .button {
  width: 100%;
  background: var(--primary, #FB080E);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

#exit-intent-form .button:hover {
  background: #D9070C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 8, 14, 0.3);
}

#exit-intent-form .button:active {
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .popup-content {
    padding: 2rem 1.5rem;
    max-width: 95%;
  }

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

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .popup-overlay,
  .popup-content,
  .popup-close,
  #exit-intent-form .button {
    animation: none;
    transition: none;
  }
}


