/* popup-fixes.css — global popup + btn-green styles to ensure mobile support */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 250ms ease;
  padding: 24px;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  width: 100%;
  max-width: 1100px;
  background-color: rgba(12,12,12,0.95);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.popup-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.popup-img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: cover;
  border-radius: 10px;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 10px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.popup-close:is(:hover, :focus) { color: #FF474C; border-color: #FF474C; }

/* Green button variant available globally */
.btn-green {
  --green: #2ea44f;
  --green-dark: #23863e;
  background-color: var(--green) !important;
  border-color: var(--green) !important;
  color: #fff !important;
}

.btn-green::before { background-color: var(--green-dark) !important; }

/* Make sure buttons in hero wrap cleanly on small screens */
.primary-btn-flex { gap: 12px; }

@media (max-width: 480px) {
  .popup { padding: 12px; border-radius: 10px; }
  .popup-close { top: 8px; right: 8px; font-size: 1.6rem; }
  .btn { padding: 10px 28px; }
  .popup-img { max-height: 50vh; }
}
