﻿/* ============================================================
   EXIT-INTENT POPUP — 10% OFF Lead Magnet
   ============================================================ */

/* ===== OVERLAY ===== */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.exit-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ===== MODAL ===== */
.exit-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.6);
  transform: translateY(30px) scale(.96);
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(201,169,97,.25);
}
.exit-overlay.open .exit-modal {
  transform: translateY(0) scale(1);
}

/* ===== CLOSE ===== */
.exit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .25s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.exit-close:hover {
  background: rgba(255,255,255,.25);
  transform: rotate(90deg);
}

/* ===== HEADER (dark hero) ===== */
.exit-head {
  position: relative;
  padding: 40px 40px 30px;
  background: linear-gradient(135deg, #0d1117 0%, #1a2230 100%);
  text-align: center;
  overflow: hidden;
}
.exit-head::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,169,97,.22), transparent 65%);
  pointer-events: none;
}
.exit-head::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(201,169,97,.15), transparent 65%);
  pointer-events: none;
}
.exit-head > * { position: relative; z-index: 2; }

.exit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(201,169,97,.15);
  border: 1px solid rgba(201,169,97,.5);
  color: #e8d5a0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.exit-badge i {
  font-size: 12px;
  animation: exitPulse 1.5s ease-in-out infinite;
}
@keyframes exitPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.exit-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.exit-head h3 em {
  font-style: italic;
  font-weight: 500;
  color: #e8d5a0;
}
.exit-head p {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  margin: 0;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== COUPON ===== */
.exit-coupon {
  margin: 26px auto 0;
  padding: 20px 24px;
  max-width: 380px;
  background: rgba(201,169,97,.1);
  border: 2px dashed rgba(201,169,97,.6);
  border-radius: 14px;
  position: relative;
}
.exit-coupon-label {
  display: block;
  font-size: 11px;
  color: #e8d5a0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
}
.exit-coupon-code {
  font-family: 'Courier New', monospace;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(201,169,97,.5);
}
.exit-coupon-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
}

/* ===== BODY (form) ===== */
.exit-body {
  padding: 30px 40px 34px;
}
.exit-body h4 {
  font-size: 14.5px;
  color: #1f2937;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
  letter-spacing: .1px;
}

.exit-field {
  margin-bottom: 12px;
}
.exit-field-wrap {
  position: relative;
}
.exit-field-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #c9a961;
  font-size: 14px;
  pointer-events: none;
}
.exit-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  transition: all .22s ease;
  box-sizing: border-box;
}
.exit-input:focus {
  outline: none;
  border-color: #c9a961;
  box-shadow: 0 0 0 4px rgba(201,169,97,.14);
}
.exit-input::placeholder { color: #9ca3af; }

.exit-submit {
  width: 100%;
  padding: 15px 22px;
  margin-top: 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all .28s ease;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.exit-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37,211,102,.5);
}
.exit-submit i { font-size: 17px; }

.exit-skip {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.exit-skip:hover { color: #1f2937; }

.exit-trust {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f1f3;
  flex-wrap: wrap;
}
.exit-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
}
.exit-trust i { color: #c9a961; font-size: 11px; }

/* ===== BODY LOCK ===== */
body.exit-locked {
  overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 560px) {
  .exit-overlay { padding: 14px; align-items: flex-start; }
  .exit-modal { border-radius: 20px; margin-top: 24px; }
  .exit-head { padding: 32px 24px 24px; }
  .exit-head h3 { font-size: 24px; }
  .exit-head p { font-size: 13.5px; }
  .exit-coupon { padding: 16px 18px; margin-top: 20px; }
  .exit-coupon-code { font-size: 24px; letter-spacing: 4px; }
  .exit-body { padding: 24px 24px 26px; }
  .exit-body h4 { font-size: 13.5px; margin-bottom: 14px; }
  .exit-input { padding: 13px 14px 13px 40px; font-size: 14px; }
  .exit-submit { padding: 14px 18px; font-size: 14px; }
  .exit-trust { gap: 12px; }
  .exit-trust span { font-size: 11px; }
}