/* ============================================
   EXIT INTENT & IDLE TIMER POPUP
   ============================================ */

.exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.exit-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.exit-popup-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  z-index: 1;
}

.exit-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #999999;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 50%;
}

.exit-popup-close:hover {
  color: #1a1a1a;
  background: #f5f5f5;
}

.exit-popup-title {
  font-family: 'Crimson Text', serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: #000000;
  margin: 0 0 12px 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.exit-popup-description {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  margin: 0 0 28px 0;
  font-weight: 300;
}

.exit-popup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exit-popup-form .form-group {
  margin: 0;
}

.exit-popup-form input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 300;
  color: #1a1a1a;
  background: #ffffff;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.exit-popup-form input:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.exit-popup-form input::placeholder {
  color: #999999;
  font-weight: 300;
}

.exit-popup-submit {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  background: #1a1a1a;
  border: 1.5px solid #1a1a1a;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: 4px;
}

.exit-popup-submit:hover {
  background: #000000;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

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

.exit-popup-message {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  margin-top: 8px;
  animation: slideDown 0.3s ease;
}

.exit-popup-message.success {
  background: linear-gradient(to right, #e8f5e9, #ffffff);
  color: #2e7d32;
  border-left: 3px solid #4caf50;
}

.exit-popup-message.error {
  background: linear-gradient(to right, #fff5f5, #ffffff);
  color: #d32f2f;
  border-left: 3px solid #f44336;
}

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

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

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .exit-popup-content {
    padding: 32px 24px;
    max-width: 100%;
  }

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

  .exit-popup-description {
    font-size: 15px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .exit-popup {
    padding: 16px;
  }

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

  .exit-popup-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .exit-popup-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .exit-popup-form input {
    padding: 12px 16px;
    font-size: 14px;
  }

  .exit-popup-submit {
    padding: 12px 28px;
    font-size: 15px;
    width: 100%;
    align-self: stretch;
  }
}

