@import url('https://fonts.googleapis.com/css2?family=Inria+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html{
    box-sizing: border-box;
    overflow-x: clip;
    scroll-behavior: smooth;
    scrollbar-color: var(--primary-color) var(--base-color);
    scrollbar-width: thin;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inria Sans", "Calibri";
  background: #f8f8f8;
  overflow-x: clip;
}

section{
    height: 100dvh;
}

button, a{
    cursor: pointer !important;
    text-decoration: none;
    border: none;
    outline: none;
}

/* =========================== */
/* PAGE INDICATOR FIXED (KIRI BAWAH) */
/* =========================== */
.page-indicator {
  position: fixed;
  bottom: 2.5rem;
  left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 999;
  color: #fff;
  font-weight: 500;
  transition: color 0.4s ease, opacity 0.4s ease;
}

.page-indicator .page-current {
  font-size: 1.2rem;
  font-weight: 600;
}

.page-indicator .page-total {
  font-size: 1rem;
  opacity: 0.7;
}

/* Progress bar */
.progress-bar {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0; /* ⬅️ Harus ada nilai awal */
  background: #fff;
  border-radius: 3px;
}

/* Dark mode (background putih) */
.page-indicator.dark {
  color: #111;
}

.page-indicator.dark .progress-bar {
  background: rgba(0, 0, 0, 0.15);
}

.page-indicator.dark .progress-fill {
  background: #111;
}

.logo-footer{
    max-width: 550px;
}

@media (max-width: 613px) {
    .logo-footer{
        max-width: 436px;
    }
}

@media (max-width: 468px) {
    .logo-footer{
        max-width: 347px;
    }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}

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

.popup-content {
  background: #fff;
  padding: 0 0 20px;
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform: scale(.9);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.popup-overlay.show .popup-content {
  transform: scale(1);
  opacity: 1;
}

.promo-img {
  width: 100%;
  display: block;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0 15px;
  margin-top: 12px;
}

.btn-cancel {
  flex: 1;
  background: #ddd;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel:hover {
  background: #c7c7c7;
}

.cta-wa {
  flex: 1;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-resolution: 115dpi) and (max-resolution: 140dpi) {
    .page-indicator {
        font-size: .5rem !important;
    }
}
