/* ── ZenEngagés popup — capture email ── */
.zg-popup-wrap {
  position: fixed; inset: 0; z-index: 99999;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
}
.zg-popup-wrap.zg-show { opacity: 1; pointer-events: auto; }

.zg-popup-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(20,17,13,.85), rgba(0,0,0,.92));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.zg-popup {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -48%) scale(.96);
  width: calc(100% - 32px); max-width: 480px;
  background: linear-gradient(180deg, #2e2820, #221d16);
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 18px;
  padding: 38px 32px 28px;
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    0 0 100px rgba(212,175,55,.28),
    inset 0 1px 0 rgba(255,255,255,.08);
  color: #f6ecd5;
  text-align: center;
  transition: transform .45s cubic-bezier(.2, .9, .25, 1.05);
  overflow: hidden;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.zg-show .zg-popup { transform: translate(-50%, -50%) scale(1); }

.zg-popup-glow {
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 200%; height: 100%;
  background: radial-gradient(ellipse at center top, rgba(212,175,55,.32), transparent 60%);
  pointer-events: none;
}

.zg-popup-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; border: 1px solid rgba(255,255,255,.08);
  color: #b9aa90; font-size: 20px; line-height: 1;
  border-radius: 50%; cursor: pointer;
  transition: color .2s, border-color .2s;
  z-index: 2;
}
.zg-popup-close:hover { color: #d4af37; border-color: #d4af37; }

.zg-popup-emblem {
  font-family: 'DM Serif Display', Georgia, serif;
  color: #d4af37;
  font-size: 28px;
  margin-bottom: 4px;
  position: relative; z-index: 1;
  text-shadow: 0 0 24px rgba(212,175,55,.4);
}

.zg-popup-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: normal;
  font-size: 28px;
  margin: 0 0 14px;
  color: #d4af37;
  letter-spacing: .005em;
  position: relative; z-index: 1;
}

.zg-popup-lead {
  font-size: 15px; line-height: 1.55;
  color: #f0e9dc;
  margin: 0 0 12px;
  font-style: italic;
  position: relative; z-index: 1;
}

.zg-popup-body {
  font-size: 14px; line-height: 1.6;
  color: #d4c4a8;
  margin: 0 0 24px;
  position: relative; z-index: 1;
}

.zg-popup-form {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}

.zg-popup-form input {
  width: 100%;
  padding: 13px 16px;
  background: #1a1510;
  border: 1px solid #4a3f2c;
  border-radius: 10px;
  color: #f6ecd5;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.zg-popup-form input::placeholder { color: #9a8a6a; }
.zg-popup-form input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,.2);
}

.zg-popup-btn {
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #e8c14a, #b8941d);
  color: #1a1611;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .015em;
  cursor: pointer;
  transition: transform .15s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.zg-popup-btn::before {
  content: '';
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transition: left .65s;
}
.zg-popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(212,175,55,.35);
}
.zg-popup-btn:hover::before { left: 120%; }
.zg-popup-btn:disabled { opacity: .65; cursor: progress; }

.zg-popup-foot {
  font-size: 11.5px;
  color: #9a8a6a;
  margin: 0;
  letter-spacing: .04em;
  line-height: 1.5;
  position: relative; z-index: 1;
}

.zg-popup-err {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(229,115,115,.1);
  border: 1px solid rgba(229,115,115,.3);
  border-radius: 8px;
  color: #e57373;
  font-size: 13px;
  position: relative; z-index: 1;
}

.zg-popup-success {
  position: relative; z-index: 1;
  padding: 12px 0 8px;
  animation: zgFadeIn .5s ease;
}
@keyframes zgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.zg-success-mark {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d4af37, #b8941d);
  display: flex; align-items: center; justify-content: center;
  color: #1a1611; font-size: 32px; font-weight: bold;
  box-shadow: 0 0 30px rgba(212,175,55,.5);
  animation: zgPop .6s cubic-bezier(.2, .9, .25, 1.5);
}
@keyframes zgPop {
  0% { transform: scale(.4); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.zg-popup-success h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: normal; font-size: 22px;
  color: #d4af37; margin: 0 0 6px;
}
.zg-popup-success p {
  color: #b9aa90; font-size: 14px; margin: 0;
  font-style: italic;
}

/* MOBILE */
@media (max-width: 520px) {
  .zg-popup {
    padding: 30px 22px 22px;
    width: calc(100% - 24px);
    border-radius: 16px;
  }
  .zg-popup-emblem { font-size: 24px; }
  .zg-popup-title { font-size: 23px; }
  .zg-popup-lead { font-size: 14px; }
  .zg-popup-body { font-size: 13px; margin-bottom: 18px; }
  .zg-popup-form input { padding: 12px 14px; font-size: 14px; }
  .zg-popup-btn { padding: 13px; font-size: 14px; }
  .zg-popup-foot { font-size: 10.5px; }
}
@media (max-height: 640px) {
  .zg-popup { padding: 22px 24px 18px; }
  .zg-popup-emblem { font-size: 22px; margin-bottom: 0; }
  .zg-popup-title { font-size: 22px; margin-bottom: 8px; }
  .zg-popup-body { margin-bottom: 14px; }
}
