/**
 * Component: Exit Intent Popup
 * Design: High-end dark glassmorphism.
 */

.hzn-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hzn-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hzn-popup__wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: #000;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
  padding: 60px;
  color: #fff;
}

/* Glow effects */
.hzn-popup__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.hzn-popup__glow--1 {
  top: -10%;
  left: -10%;
  background: var(--color-accent);
}

.hzn-popup__glow--2 {
  bottom: -10%;
  right: -10%;
  background: #f160a1;
}

.hzn-popup__close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.hzn-popup__close:hover {
  color: #fff;
}

.hzn-popup__content {
  position: relative;
  z-index: 2;
}

.hzn-popup__header {
  margin-bottom: 30px;
}

.hzn-popup__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.hzn-popup__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Mockup elements */
.hzn-popup__mockup-field {
  margin-bottom: 16px;
}

.hzn-popup__fake-textarea,
.hzn-popup__fake-input {
  background: rgba(100, 100, 100, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.4);
  padding: 16px 20px;
  font-size: 0.9rem;
}

.hzn-popup__fake-textarea {
  min-height: 120px;
}

.hzn-popup__fake-input {
  border-radius: 99px;
  padding: 12px 24px;
}

.hzn-popup__mockup-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 30px;
}

.hzn-popup__disclaimer {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.hzn-popup__button {
  background-color: var(--color-primary) !important;
  border: none !important;
  color: #fff !important;
  padding: 12px 40px !important;
  border-radius: 8px !important;
}

.hzn-popup__body {
  position: relative;
}

.hzn-popup__brand {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0.9;
  z-index: 5;
  pointer-events: none;
}

.hzn-popup__logo {
  width: clamp(120px, 15vw, 180px);
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hzn-popup__wrapper {
    padding: 30px;
    border-radius: 24px;
  }

  .hzn-popup__mockup-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .hzn-popup__brand {
    position: static;
    margin-top: 30px;
    align-items: flex-start;
  }
}
