/* =========================
POPUP PROMO RESPONSIVE
========================= */

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
}

.promo-popup.active {
  display: flex;
}

.promo-popup-box {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: popupZoom 0.35s ease;
}

@keyframes popupZoom {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.promo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s;
}

.promo-close:hover {
  background: #ff6600;
  transform: rotate(90deg);
}

.promo-image {
  min-height: 360px;
  background: #0f172a;
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.promo-content {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-label {
  display: inline-block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff4e8;
  color: #ff6600;
  font-size: 13px;
  font-weight: 700;
}

.promo-content h2 {
  font-size: 34px;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 14px;
}

.promo-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 24px;
}

.promo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff9900, #ff6600);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(255, 153, 0, 0.32);
  transition: 0.3s;
}

.promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 153, 0, 0.42);
}

.promo-later {
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.promo-later:hover {
  border-color: #ff9900;
  color: #ff6600;
}

/* Saat popup aktif, body tidak scroll */
body.popup-open {
  overflow: hidden;
}

/* =========================
POPUP MOBILE
========================= */

@media (max-width: 768px) {
  .promo-popup {
    padding: 15px;
    align-items: center;
  }

  .promo-popup-box {
    max-width: 420px;
    grid-template-columns: 1fr;
    border-radius: 20px;
    max-height: 92vh;
    overflow-y: auto;
  }

  .promo-image {
    min-height: auto;
    height: 220px;
  }

  .promo-content {
    padding: 26px 20px 24px;
    text-align: center;
    align-items: center;
  }

  .promo-content h2 {
    font-size: 26px;
  }

  .promo-content p {
    font-size: 14px;
    line-height: 1.7;
  }

  .promo-actions {
    width: 100%;
    flex-direction: column;
  }

  .promo-cta,
  .promo-later {
    width: 100%;
  }

  .promo-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .promo-image {
    height: 190px;
  }

  .promo-content h2 {
    font-size: 23px;
  }
}