/* Exit Intent Popup Modal */
.exit-intent-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.exit-intent-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.exit-intent-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.4s ease;
  border: 3px solid var(--green-800, #006847);
}

.exit-intent-modal-header {
  padding: 24px 24px 16px;
  text-align: center;
  border-bottom: 2px solid rgba(0, 104, 71, 0.1);
  position: relative;
}

.exit-intent-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink, #1a1a1a);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.exit-intent-close:hover {
  background: rgba(0, 104, 71, 0.1);
  color: var(--green-800, #006847);
}

.exit-intent-modal-title {
  font-size: clamp(24px, 2.5vw, 28px);
  color: var(--green-800, #006847);
  margin: 0 0 12px 0;
  font-weight: 800;
}

.exit-intent-modal-subtitle {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink, #1a1a1a);
  margin: 0;
  line-height: 1.5;
}

.exit-intent-modal-body {
  padding: 24px;
}

.exit-intent-form-container {
  background: #fff;
  border: 2px solid var(--green-800, #006847);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 104, 71, 0.1);
}

.exit-intent-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
}

@media (min-width: 640px) {
  .exit-intent-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.exit-intent-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exit-intent-form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin: 0;
}

.exit-intent-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--green-100, #E6F7F0);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fff;
  box-sizing: border-box;
}

.exit-intent-form-input:focus {
  outline: none;
  border-color: var(--green-800, #006847);
  box-shadow: 0 0 0 3px rgba(0, 104, 71, 0.1);
}

.exit-intent-form-submit-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.exit-intent-form-submit {
  background: linear-gradient(135deg, var(--green-800, #006847) 0%, var(--green-700, #1A7D5A) 100%);
  color: #fff;
  border: 2px solid var(--green-800, #006847);
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 104, 71, 0.2);
  width: 100%;
  max-width: 300px;
}

.exit-intent-form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 104, 71, 0.3);
}

.exit-intent-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.exit-intent-form-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  display: none;
}

.exit-intent-form-message.success {
  background: rgba(0, 104, 71, 0.1);
  color: var(--green-800, #006847);
  border: 1px solid var(--green-800, #006847);
}

.exit-intent-form-message.error {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid #dc2626;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .exit-intent-modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }
  
  .exit-intent-modal-header {
    padding: 20px 20px 12px;
  }
  
  .exit-intent-modal-body {
    padding: 20px;
  }
  
  .exit-intent-form-container {
    padding: 20px;
  }
}

