/* ---------------------------------------------------------------------
   FIX: the overlay defaults to display:none and is ONLY ever shown by
   adding the .gcpop-show class via JS. Earlier versions set
   `display: flex` directly on #gcpopOverlay, which — because an ID
   selector beats the browser's built-in [hidden] rule — overrode the
   `hidden` attribute and made the popup impossible to hide. Toggling a
   class instead of fighting the `hidden` attribute avoids that entirely.
   ------------------------------------------------------------------- */
#gcpopOverlay {
  display: none;
  position: fixed; inset: 0; z-index: 999998;
  background: rgba(20, 10, 10, 0.62);
  align-items: center; justify-content: center;
  padding: 16px;
}
#gcpopOverlay.gcpop-show {
  display: flex;
  animation: gcpopFadeIn .25s ease;
}
@keyframes gcpopFadeIn { from { opacity: 0; } to { opacity: 1; } }

#gcpopModal {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px 26px;
  max-width: 420px;
  width: 100%;
  font-family: 'Poppins', -apple-system, sans-serif;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: gcpopPopIn .3s cubic-bezier(.2,.9,.25,1.1);
}
@keyframes gcpopPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

#gcpopClose {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: none; font-size: 22px; line-height: 1;
  color: #93A29B; cursor: pointer; padding: 6px; z-index: 2;
}
#gcpopClose:hover { color: #1B2420; }

.gcpop-badge {
  display: inline-block; background: #FBF1E0; color: #8A5A0E;
  font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px;
  margin: 0 0 14px;
}

#gcpopModal h3 {
  margin: 0 0 8px; font-size: 21px; font-weight: 700; color: #1B2420; line-height: 1.3;
}
.gcpop-sub {
  margin: 0 0 20px; font-size: 13.5px; color: #5B6660; line-height: 1.5;
}

#gcpopForm label {
  display: block; text-align: left; font-size: 12.5px; font-weight: 600;
  margin: 12px 0 5px; color: #1B2420;
}
#gcpopForm input {
  width: 100%; padding: 11px 13px; border: 1px solid #DCE3DF; border-radius: 8px;
  font-size: 15px; box-sizing: border-box;
}
#gcpopSubmit {
  margin-top: 18px; width: 100%; background: #B22222; color: #fff; border: none;
  border-radius: 10px; padding: 13px 16px; font-size: 15.5px; font-weight: 700; cursor: pointer;
}
#gcpopSubmit:hover:not(:disabled) { background: #8B1A1A; }
#gcpopSubmit:disabled { opacity: 0.65; cursor: default; }

.gcpop-fineprint { font-size: 11px; color: #93A29B; margin: 10px 0 0; }

#gcpopSuccess .gcpop-success-icon { font-size: 34px; margin: 4px 0 8px; }
#gcpopSuccess .gcpop-success-text { font-size: 14.5px; color: #1B2420; margin: 0 0 18px; line-height: 1.5; }
.gcpop-whatsapp-btn {
  display: inline-block; background: #25D366; color: #fff !important; text-decoration: none;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 14px;
}
.gcpop-whatsapp-btn:hover { opacity: 0.9; }

@media (max-width: 480px) {
  #gcpopModal { padding: 26px 20px 22px; }
  #gcpopModal h3 { font-size: 18.5px; }
}
