/* Leave Intent Popup Modal */
.popupModal {
  display: none;
  position: fixed;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
}

.popupModal[style*="display: block"],
.popupModal[style*="display:block"],
.popupModal.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.popupModal,
.popupModal .overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.popupModal .overlay {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  position: absolute;
  z-index: 0;
  cursor: pointer;
  animation: fadeIn 0.3s ease-out;
}

.popupModal .absolution {
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.4s ease-out;
}

/* Header with accent color */
.popupModal .absolution::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #1e88e5, #42a5f5);
}

/* Content wrapper - scoped to leaveIntent only */
#leaveIntent .absolution .row {
  padding: 40px 35px 35px;
}

/* Newsletter icon - scoped to leaveIntent only */
#leaveIntent .absolution .col-lg-12::before {
  content: '✉';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  font-size: 32px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 50%;
}

/* Typography - scoped to leaveIntent only */
#leaveIntent .absolution h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.3;
}

#leaveIntent .absolution p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 25px;
}

/* Close button */
.popupModal .absolution .closeModal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.popupModal .absolution .closeModal:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

.popupModal .absolution .closeModal svg {
  width: 14px;
  height: 14px;
}

/* Form styling - scoped to leaveIntent only */
#leaveIntent .absolution .wpforms-container {
  margin-bottom: 0;
}

#leaveIntent .absolution .wpforms-field input[type="email"],
#leaveIntent .absolution .wpforms-field input[type="text"] {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#leaveIntent .absolution .wpforms-field input:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
  outline: none;
}

#leaveIntent .absolution .wpforms-submit {
  background: linear-gradient(135deg, #1e88e5, #1976d2);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

#leaveIntent .absolution .wpforms-submit:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* 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%);
  }
}

/* Responsive */
@media (max-width: 576px) {
  .popupModal .absolution {
    width: 95%;
    border-radius: 12px;
  }

  #leaveIntent .absolution .row {
    padding: 30px 20px 25px;
  }

  #leaveIntent .absolution h2 {
    font-size: 20px;
  }

  #leaveIntent .absolution p {
    font-size: 14px;
  }

  #leaveIntent .absolution .col-lg-12::before {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}
