/* ── Overlay ──────────────────────────────────────────────────── */
#gf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#gf-overlay.is-open {
  display: flex;
}

/* ── Modal box ───────────────────────────────────────────────── */
#gf-modal {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 2rem 1.75rem;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  animation: gf-slide-in 0.22s ease;
}

@keyframes gf-slide-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ── Close button ─────────────────────────────────────────────── */
.gf-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0 0.2rem;
  transition: color 0.15s;
}
.gf-close:hover { color: #222; }

/* ── Bell icon ────────────────────────────────────────────────── */
.gf-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff3e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.gf-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: #e67e22;
}

/* ── Headings / text ──────────────────────────────────────────── */
#gf-title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.gf-intro {
  margin: 0 0 1.25rem;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Form fields ──────────────────────────────────────────────── */
.gf-field {
  margin-bottom: 1rem;
}
.gf-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #333;
}
.gf-required { color: #c0392b; }

.gf-field input[type="email"],
.gf-field input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 7px;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gf-field input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.18);
}

.gf-field-hint {
  display: block;
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.3rem;
}

/* ── Honeypot (invisible to humans, visible to bots) ─────────── */
.gf-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

/* ── Submit button ────────────────────────────────────────────── */
.gf-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* ── Messages ─────────────────────────────────────────────────── */
.gf-message {
  margin-top: 0.9rem;
  padding: 0.6rem 0.85rem;
  border-radius: 7px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
}
.gf-message:not(:empty) { display: block; }

.gf-message--success {
  background: #eafaf1;
  color: #1e8449;
  border: 1px solid #a9dfbf;
}
.gf-message--error {
  background: #fdedec;
  color: #922b21;
  border: 1px solid #f1948a;
}

/* ── Guest follow button (mirrors the Flag link styling) ─────── */
.guest-follow-trigger {
  cursor: pointer;
}

/* ── Celebration success state ────────────────────────────────── */
.gf-celebrate {
  text-align: center;
  padding: 2.5rem 1.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gf-celebrate__emoji {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 1.1rem;
  display: block;
  animation: gf-emoji-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.gf-celebrate__title {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(130deg, #3b0764 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.55rem;
  animation: gf-slide-up 0.35s 0.18s both;
}

.gf-celebrate__sub {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 0 1.5rem;
  animation: gf-fade-in 0.4s 0.38s both;
}

.gf-celebrate__close {
  animation: gf-fade-in 0.4s 0.6s both;
}

@keyframes gf-emoji-pop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  55%  { transform: scale(1.22) rotate(8deg); opacity: 1; }
  78%  { transform: scale(0.93) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes gf-slide-up {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@keyframes gf-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
