/* ── HISS "Win a free class" popup — 2026-10-20 ──────────────────────────
   Homepage-only promo popup. Appears once, 7s after page load, and is
   suppressed forever after (localStorage flag set the moment it's shown,
   in index-popup.js) — so a repeat visit, or navigating back to the
   homepage from another page, never shows it again, whether or not the
   visitor actually closed it.
     --hiss-blue   #0936b4
     --hiss-red    #b31812
     --hiss-yellow #ffcd45
   Font is Raleway (already loaded site-wide). */

.hiss-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38, 38, 38, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: 'Raleway', sans-serif;
}

.hiss-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.hiss-popup-overlay[hidden] {
  display: flex; /* keep the flex centering ready; JS toggles via is-visible/hidden together */
}

.hiss-popup-card {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.9) translateY(10px);
  transition: transform 0.3s ease;
  border-top: 8px solid #ffcd45;
}

.hiss-popup-overlay.is-visible .hiss-popup-card {
  transform: scale(1) translateY(0);
}

.hiss-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #b31812;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  z-index: 2;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hiss-popup-close:hover,
.hiss-popup-close:focus {
  background: #8f120e;
  transform: scale(1.08);
}

.hiss-popup-image-wrap {
  position: relative;
  background: linear-gradient(135deg, #fff4d6 0%, #ffe9b3 100%);
  padding: 22px 20px 10px;
}

.hiss-popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  margin: 0 auto;
}

.hiss-popup-badge {
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #b31812;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 #fff, 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

@media (max-width: 575px) {
  .hiss-popup-badge {
    font-size: 1.3rem;
  }
}

.hiss-popup-body {
  padding: 18px 28px 30px;
  text-align: center;
}

.hiss-popup-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: #262626;
  margin: 0 0 22px;
}

.hiss-popup-text-sub {
  display: block;
  margin-top: 16px;
}

.hiss-popup-btn {
  display: inline-block;
  background: #0936b4;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 36px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(9, 54, 180, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hiss-popup-btn:hover {
  background: #b31812;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 575px) {
  .hiss-popup-text {
    font-size: 1.05rem;
  }
  .hiss-popup-body {
    padding: 16px 20px 26px;
  }
}
