/* ═══════════════════════════════════════════════════════
   EXIT-INTENT POPUP — Vezetői megbeszélés CTA
   BUSINESS-IT • 2026
   ═══════════════════════════════════════════════════════ */

/* Overlay */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.exit-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Card */
.exit-popup {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exit-popup-overlay.is-visible .exit-popup {
  transform: translateY(0) scale(1);
}

/* Close button */
.exit-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exit-popup__close:hover {
  background: #f1f5f9;
  color: #1e293b;
  transform: scale(1.1);
}

/* Top badge/banner */
.exit-popup__badge {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.exit-popup__badge-icon {
  font-size: 18px;
}

/* Body layout */
.exit-popup__body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}

/* Photo side */
.exit-popup__photo-col {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}

.exit-popup__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
  margin-bottom: 12px;
}

.exit-popup__name {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px;
  line-height: 1.3;
}

.exit-popup__role {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 6px;
  line-height: 1.3;
}

.exit-popup__experience {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #1e40af;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Content side */
.exit-popup__content {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exit-popup__title {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px;
  line-height: 1.25;
}

.exit-popup__title em {
  font-style: normal;
  color: #f36c21;
}

.exit-popup__desc {
  font-size: 14px;
  color: #475569;
  margin: 0 0 18px;
  line-height: 1.6;
}

/* Benefits list */
.exit-popup__benefits {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exit-popup__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

.exit-popup__benefits li::before {
  content: '✓';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

/* Form */
.exit-popup__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exit-popup__input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.exit-popup__input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.exit-popup__input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #fff;
}

.exit-popup__input::placeholder {
  color: #94a3b8;
}

.exit-popup__submit {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f36c21 0%, #e85d0f 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.exit-popup__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(243, 108, 33, 0.35);
}

.exit-popup__submit:active {
  transform: translateY(0);
}

.exit-popup__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.exit-popup__submit svg {
  flex-shrink: 0;
}

/* Privacy note */
.exit-popup__privacy {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin: 6px 0 0;
  line-height: 1.4;
}

.exit-popup__privacy a {
  color: #64748b;
  text-decoration: underline;
}

/* No thanks link */
.exit-popup__dismiss {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  font-family: inherit;
  transition: color 0.2s;
}

.exit-popup__dismiss:hover {
  color: #64748b;
}

/* Error/success messages */
.exit-popup__msg {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.exit-popup__msg--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.exit-popup__msg--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Honeypot field */
.exit-popup__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  tab-index: -1;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 640px) {
  .exit-popup {
    max-width: 100%;
    border-radius: 16px;
    max-height: 95vh;
    overflow-y: auto;
  }

  .exit-popup__body {
    grid-template-columns: 1fr;
  }

  .exit-popup__photo-col {
    flex-direction: row;
    gap: 16px;
    padding: 20px;
    text-align: left;
  }

  .exit-popup__avatar {
    width: 72px;
    height: 72px;
    margin-bottom: 0;
  }

  .exit-popup__photo-text {
    flex: 1;
  }

  .exit-popup__content {
    padding: 20px;
  }

  .exit-popup__title {
    font-size: 19px;
  }

  .exit-popup__input-row {
    grid-template-columns: 1fr;
  }

  .exit-popup__benefits {
    margin-bottom: 16px;
  }
}

@media (max-width: 380px) {
  .exit-popup__badge {
    font-size: 12px;
    padding: 10px 16px;
  }

  .exit-popup__title {
    font-size: 17px;
  }

  .exit-popup__desc {
    font-size: 13px;
  }
}
