/* ==========================================================================
   Pop-up "Cara klaim voucher" — halaman masuk fokushoki.site
   Mengikuti palet undian.css. Muat setelah undian.css.
   ========================================================================== */

.faq-buka {
  margin-top: 14px;
  background: none;
  border: 0;
  padding: 6px 4px;
  color: var(--gold);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.faq-buka:hover { color: var(--gold-d); }

.faq-lapis {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20, 16, 10, .62);
  backdrop-filter: blur(3px);
  animation: faqMasuk .2s ease;
}
.faq-lapis[hidden] { display: none; }
@keyframes faqMasuk { from { opacity: 0 } to { opacity: 1 } }

.faq-kotak {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 86vh;
  max-height: 86svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 16px;
  padding: 26px 22px 22px;
  text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  animation: faqNaik .26s cubic-bezier(.2, .8, .3, 1);
}
@keyframes faqNaik { from { transform: translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }

.faq-tutup {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.faq-tutup:hover { background: #e5e7eb; color: var(--ink); }

.faq-judul {
  margin: 0 0 16px;
  padding-right: 34px;
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
}

.faq-langkah {
  margin: 0 0 22px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.faq-langkah li { margin-bottom: 10px; }
.faq-langkah li::marker { color: var(--gold); font-weight: 700; }
.faq-langkah b { color: var(--ink); }

.faq-sub {
  margin: 0 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.faq-tanya { margin-bottom: 14px; }
.faq-t {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.faq-j {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.faq-ok { margin-top: 18px; }

@media (max-width: 420px) {
  .faq-kotak { padding: 22px 18px 18px; }
  .faq-judul { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-lapis, .faq-kotak { animation: none !important; }
}

/* ---------- Tombol ikon melayang (FAQ kedua) ---------- */
.faq-bulat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font: inherit;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(146, 64, 14, .38);
  transition: transform .16s ease, background .16s ease;
}
.faq-bulat:hover {
  background: var(--gold-d);
  transform: translateY(-2px);
}
.faq-bulat:active { transform: translateY(1px); }

/* Aman dari area gestur di HP layar penuh */
@supports (padding: env(safe-area-inset-bottom)) {
  .faq-bulat { bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .faq-bulat { width: 46px; height: 46px; font-size: 22px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-bulat { transition: none; }
}

/* ---------- Halaman FAQ ---------- */
.faq-halaman {
  text-align: left;
  padding: 24px 20px 20px;
}
.faq-halaman .faq-judul { padding-right: 0; }

.faq-foto {
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.faq-kembali {
  display: block;
  margin-top: 22px;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

/* Tautan "Cara klaim voucher" di halaman masuk kini berupa <a> */
a.faq-buka {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.faq-buka:hover { color: var(--gold-d); }

/* Tombol bulat "?" kini berupa tautan ke halaman /faq */
a.faq-bulat {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ---------- Langkah bergambar di halaman FAQ ---------- */
.faq-intro {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.faq-step {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.faq-step:last-of-type { border-bottom: 0; }

.faq-step-judul {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.faq-no {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.faq-step-teks {
  margin: 0;
  padding-left: 34px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.faq-step .faq-foto { margin-top: 12px; }

/* Gambar hilang atau salah nama: tampilkan kotak abu, bukan ikon rusak */
.faq-foto {
  background: #f3f4f6;
  min-height: 40px;
  object-fit: contain;
}

@media (max-width: 420px) {
  .faq-step-teks { padding-left: 0; }
  .faq-step { margin-bottom: 22px; padding-bottom: 18px; }
}

/* Penekanan di dalam langkah, mis. "jangan diketik ulang" */
.faq-tekan {
  display: inline-block;
  margin-top: 4px;
  color: var(--gold-d);
}
