/* exit-intent.css — Popup overlay styles. Dark amber theme matching NiteDesk. */

#nd-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

#nd-exit-overlay.nd-visible {
  opacity: 1;
  pointer-events: auto;
}

#nd-exit-popup {
  background: #0f0e0c;
  border: 1px solid rgba(180, 83, 9, 0.5);
  border-radius: 16px;
  padding: 36px 32px 32px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(180, 83, 9, 0.15);
  transform: translateY(-8px);
  transition: transform 0.25s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#nd-exit-overlay.nd-visible #nd-exit-popup {
  transform: translateY(0);
}

#nd-exit-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #6b6050;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

#nd-exit-close:hover {
  color: #e8e0d0;
  background: rgba(255, 255, 255, 0.07);
}

.nd-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(180, 83, 9, 0.15);
  border: 1px solid rgba(180, 83, 9, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

#nd-exit-popup h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.nd-popup-desc {
  font-size: 14px;
  color: #a89880;
  line-height: 1.6;
  margin-bottom: 22px;
}

.nd-popup-desc strong {
  color: #e8e0d0;
}

#nd-exit-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#nd-exit-email {
  width: 100%;
  background: #1a1714;
  border: 1px solid #3a3028;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

#nd-exit-email::placeholder {
  color: #5a5040;
}

#nd-exit-email:focus {
  border-color: #b45309;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

#nd-exit-email.nd-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

#nd-exit-submit {
  width: 100%;
  background: #b45309;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  font-family: inherit;
  letter-spacing: 0.01em;
}

#nd-exit-submit:hover:not(:disabled) {
  background: #92400e;
}

#nd-exit-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nd-popup-fine {
  font-size: 12px;
  color: #4a4030;
  text-align: center;
  margin-top: 10px;
}

/* Success state */
#nd-exit-success {
  text-align: center;
  padding: 12px 0;
}

.nd-success-icon {
  width: 52px;
  height: 52px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid rgba(34, 197, 94, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #22c55e;
  margin: 0 auto 16px;
}

#nd-exit-success p {
  font-size: 15px;
  color: #c8b898;
  margin-bottom: 8px;
  line-height: 1.5;
}

#nd-exit-success p strong {
  color: #fff;
  font-size: 17px;
}

#nd-exit-success a {
  color: #f59e0b;
  text-decoration: none;
}

#nd-exit-success a:hover {
  text-decoration: underline;
}

@media (max-width: 500px) {
  #nd-exit-popup {
    padding: 28px 20px 24px;
  }

  #nd-exit-popup h2 {
    font-size: 19px;
  }
}
