/* ============================================================
   TEMA "MELODI NATAL DI HUTAN CERIA"
   Lapisan tema anak-anak bernuansa hutan. Dimuat SETELAH style.css
   sehingga hanya menimpa tampilan, tidak mengubah struktur/logika.
   Nonaktifkan dengan menghapus <link> theme-hutan.css di header.php
   ============================================================ */

:root,
[data-bs-theme="dark"] {
  /* palet diambil dari slide tema */
  --hutan-sky-1: #eafaf1;
  --hutan-sky-2: #d4f0e2;
  --hutan-leaf: #6cb33f;
  --hutan-leaf-dark: #3f8a2b;
  --hutan-leaf-deep: #2c6b23;
  --hutan-wood: #e08a2e;
  --hutan-wood-2: #d0762a;
  --hutan-wood-dark: #8b4a20;
  --hutan-bark: #7a3f1d;
  --hutan-sun: #fdbe2c;
  --hutan-berry: #e4572e;

  --brand: #3f8a2b;
  --brand2: #6cb33f;
  --ink: #2f2416;
  --muted: #6f6350;
  --surface: #fffdf7;
  --soft: #f3f9ee;
  --line: #d9e7cc;
  --shadow: 0 26px 60px rgba(63, 138, 43, .18);
}

/* ---------- Latar: langit, awan, matahari, garis pohon ---------- */
body {
  color: var(--ink);
  font-family: "Nunito", "DM Sans", sans-serif;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.22) 40%, rgba(238,248,230,.55)),
    url("/assets/images/theme/jungle-scene.webp") center top / cover no-repeat,
    linear-gradient(180deg, var(--hutan-sky-1) 0%, var(--hutan-sky-2) 46%, #eef8e6 100%);
  background-attachment: scroll, fixed, fixed;
  min-height: 100vh;
}

/* layar kecil: pakai versi ringan, fokus ke bagian bawah (hewan & pagar) */
@media (max-width: 767.98px) {
  body {
    background:
      linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.3) 45%, rgba(238,248,230,.6)),
      url("/assets/images/theme/jungle-scene-sm.webp") center 12% / 190% auto no-repeat,
      linear-gradient(180deg, var(--hutan-sky-1) 0%, var(--hutan-sky-2) 46%, #eef8e6 100%);
    background-attachment: scroll, fixed, fixed;
  }
}

/* PENTING: jangan beri z-index pada <main>.
   Modal Bootstrap berada di dalam <main>, sedangkan .modal-backdrop
   ditempelkan Bootstrap ke <body>. Kalau <main> punya z-index, ia membuat
   stacking context sendiri sehingga backdrop (z-index 1050) menutupi modal —
   akibatnya modal tidak bisa diklik maupun di-scroll. */
.public-nav, .public-footer { position: relative; }

/* Monyet versi awal dengan ayunan pendulum halus. Wadahnya tetap dapat
   diseret horizontal tanpa mengganggu scroll vertikal halaman. */
.hanging-monkey {
  position: fixed;
  z-index: 1080;
  top: -14px;
  left: calc(50% + min(36vw, 500px));
  width: clamp(108px, 8.5vw, 132px);
  aspect-ratio: 5 / 6;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 8px rgba(62, 48, 25, .2));
  transition: left .35s ease, width .35s ease;
  will-change: left;
}
.hanging-monkey:focus-visible { outline: 3px solid var(--hutan-sun); outline-offset: 3px; border-radius: 28px; }
.hanging-monkey.is-dragging { cursor: grabbing; transition: width .35s ease; }
.hanging-monkey img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 2%;
  animation: monkey-gentle-swing 4.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes monkey-gentle-swing {
  0%, 100% { transform: rotate(-4.5deg) translateX(-2px); }
  50% { transform: rotate(4.5deg) translateX(2px); }
}
@media (max-width: 767.98px) {
  .hanging-monkey {
    top: -10px;
    left: 50%;
    width: clamp(76px, 21vw, 88px);
    filter: drop-shadow(0 6px 5px rgba(62, 48, 25, .17));
  }
  body:has(.modal.show) .hanging-monkey {
    left: calc(100% - 46px);
    width: clamp(74px, 20vw, 84px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hanging-monkey img { animation: none; }
}

h1, h2, h3, h4, h5, h6,
.public-brand strong,
.submit-button,
.pass-qr strong {
  font-family: "Fredoka", "Baloo 2", "Manrope", sans-serif;
  letter-spacing: -.01em;
}

/* ---------- Navbar ---------- */
.public-brand span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  border-radius: 50%;
  border: 3px solid var(--hutan-leaf);
  background: #fff;
  box-shadow: 0 6px 0 rgba(63, 138, 43, .25);
}
.public-brand span img { display: block; width: 100%; height: 100%; max-width: 100%; flex: none; object-fit: contain; object-position: center; transform: none; }
.public-brand strong { color: var(--hutan-leaf-deep); font-weight: 600; }
.theme-button {
  border: 2px solid var(--hutan-leaf);
  border-radius: 50%;
  color: var(--hutan-leaf-deep);
  background: #fff;
  box-shadow: 0 4px 0 rgba(63, 138, 43, .25);
}

/* ---------- Kartu utama ---------- */
.registration-shell,
.booking-pass,
.success-shell .bot-help {
  backdrop-filter: blur(2px);
  border: 3px solid var(--hutan-leaf);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 18px 0 rgba(63, 138, 43, .18), var(--shadow);
}

/* ---------- Hero: papan kayu bergantung ---------- */
.event-hero {
  color: #fff;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 26px),
    radial-gradient(ellipse at 22% 30%, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(160deg, var(--hutan-wood) 0%, var(--hutan-wood-2) 55%, #c06a24 100%);
  border-right: 8px solid var(--hutan-bark);
  text-shadow: 0 2px 0 rgba(122, 63, 29, .35);
}
.event-hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 3px dashed rgba(255, 255, 255, .35);
  border-radius: 22px;
  pointer-events: none;
}
.event-hero::after {
  /* dedaunan di pojok bawah papan */
  content: "";
  width: 100%;
  height: 90px;
  border: 0;
  border-radius: 0;
  right: 0;
  bottom: -14px;
  opacity: .85;
  background:
    radial-gradient(circle at 8% 100%, var(--hutan-leaf-deep) 0 46px, transparent 48px),
    radial-gradient(circle at 26% 100%, var(--hutan-leaf) 0 38px, transparent 40px),
    radial-gradient(circle at 46% 100%, var(--hutan-leaf-dark) 0 44px, transparent 46px),
    radial-gradient(circle at 66% 100%, var(--hutan-leaf) 0 36px, transparent 38px),
    radial-gradient(circle at 88% 100%, var(--hutan-leaf-deep) 0 42px, transparent 44px);
}

.eyebrow {
  padding: 8px 16px;
  display: inline-flex;
  border-radius: 999px;
  background: var(--hutan-sun);
  color: #6b4407;
  text-shadow: none;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(122, 63, 29, .3);
}
.eyebrow span { background: #6b4407; }

.event-hero h1 {
  margin-top: 0;
  font-weight: 600;
  line-height: 1.08;
  white-space: pre-line;
}
.event-hero h1.hero-copy {
  max-width: 100%;
  margin: 6px auto 18px;
  padding: 0;
  background: none;
  box-shadow: none;
  color: #fff8e4;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
  white-space: normal;
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 6px auto 18px;
  text-align: center;
}
.hero-copy::before { content: none; }
.event-details > div {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 2px solid rgba(255, 255, 255, .22);
}
.event-details i {
  border-radius: 50%;
  background: var(--hutan-sun);
  color: #6b4407;
  text-shadow: none;
}
.event-details small { color: rgba(255, 255, 255, .8); font-weight: 700; }

.quota-card {
  border: 3px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
  background: rgba(255, 255, 255, .2);
}
.quota-icon { border-radius: 50%; background: var(--hutan-sun); color: #6b4407; }
.quota-card .progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.quota-card .progress-bar { background: linear-gradient(90deg, #b6e06a, var(--hutan-sun)); }

.hero-note { color: rgba(255, 255, 255, .88); font-weight: 600; }

/* ---------- Panel formulir ---------- */
.form-panel { background: var(--surface); }

/* Mobile: formulir menutupi latar hutan di body, jadi card-nya
   membawa scene yang sama (kanopi, hewan, semak, pagar) di dalam panel. */
@media (max-width: 991.98px) {
  .form-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, var(--hutan-sky-1) 0%, var(--hutan-sky-2) 48%, #eef8e6 100%);
    padding-bottom: 88px;
  }
  .form-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    /* Langsung di bawah papan kayu hero, di kepala formulir. */
    top: 0;
    height: 220px;
    z-index: 0;
    pointer-events: none;
    transform: scaleX(-1);
    opacity: .26;
    background:
      linear-gradient(180deg, rgba(234, 250, 241, .28) 0%, rgba(234, 250, 241, .14) 40%, rgba(234, 250, 241, .55) 100%),
      url("/assets/images/theme/jungle-scene-sm.webp") center 5% / 200% auto no-repeat;
  }
  .form-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 250px;
    z-index: 0;
    pointer-events: none;
    opacity: .42;
    background:
      linear-gradient(0deg, rgba(238, 248, 230, .08) 0%, rgba(234, 250, 241, .22) 42%, rgba(234, 250, 241, .88) 100%),
      url("/assets/images/theme/jungle-scene-sm.webp") center 96% / 205% auto no-repeat;
  }
  .form-panel > * { position: relative; z-index: 1; }
  .form-control,
  .form-select {
    background-color: rgba(255, 255, 255, .92);
  }
  .child-card {
    background: linear-gradient(180deg, rgba(251, 255, 245, .92), rgba(243, 249, 238, .88));
  }
  .consent-box {
    background: rgba(243, 249, 238, .88);
  }
}
.form-heading > span { color: var(--hutan-berry); font-weight: 800; }
.form-heading h2 { color: var(--hutan-leaf-deep); font-weight: 600; }
.form-heading h2::after {
  content: " 🌿";
  font-size: .9em;
}

.form-label { color: var(--hutan-leaf-deep); font-weight: 800; }
.form-label em { color: var(--hutan-berry); }

.form-control, .form-select {
  border: 2px solid var(--line);
  border-radius: 16px;
  background-color: #fff;
  font-weight: 600;
}
.form-control:focus, .form-select:focus {
  border-color: var(--hutan-leaf);
  box-shadow: 0 0 0 .25rem rgba(108, 179, 63, .2);
}
.form-control::placeholder { color: #a9a08e; font-weight: 500; }

/* kartu data anak seperti papan kayu kecil */
.child-card {
  border: 3px dashed var(--hutan-leaf);
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfff5, var(--soft));
  box-shadow: 0 8px 0 rgba(63, 138, 43, .12);
}
.child-card-head .child-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--hutan-sun);
  color: #6b4407;
  font-family: "Fredoka", sans-serif;
  box-shadow: 0 4px 0 rgba(122, 63, 29, .28);
}
.child-card-head strong { color: var(--hutan-leaf-deep); }

.companion-note {
  border: 2px solid #f3d999;
  border-radius: 14px;
  background: #fff6dd;
  color: #8a5a00;
  font-weight: 700;
}

.consent-box {
  border: 3px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}
.consent-box .btn-link { color: var(--hutan-berry); font-weight: 800; }
.form-check-input:checked { background-color: var(--hutan-leaf); border-color: var(--hutan-leaf); }

/* tombol utama ala tombol mainan */
.submit-button,
.btn-primary {
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #7cc44b, var(--hutan-leaf-dark));
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 7px 0 #2c6b23;
  transition: transform .08s ease, box-shadow .08s ease;
}
.submit-button:hover, .btn-primary:hover { background: linear-gradient(180deg, #86cf54, #34771f); }
.submit-button:active, .btn-primary:active { transform: translateY(4px); box-shadow: 0 3px 0 #2c6b23; }
.submit-button:disabled { box-shadow: 0 7px 0 #2c6b23; opacity: .7; }

/* ---------- Modal informasi ---------- */
.modal-content {
  border: 4px solid var(--hutan-leaf);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
}
.info-modal {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .9) 0%, rgba(243, 249, 238, .86) 48%, rgba(234, 250, 241, .82) 100%),
    url("/assets/images/theme/jungle-scene-sm.webp") center 8% / 165% auto no-repeat,
    var(--hutan-sky-1);
}
.info-modal::before,
.info-modal::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
}
.info-modal::before {
  top: 0;
  height: 160px;
  opacity: .42;
  background: url("/assets/images/theme/jungle-scene-sm.webp") center 4% / 175% auto no-repeat;
}
.info-modal::after {
  bottom: 0;
  height: 150px;
  opacity: .4;
  background:
    radial-gradient(circle at 10% 100%, var(--hutan-leaf-deep) 0 42px, transparent 44px),
    radial-gradient(circle at 28% 100%, var(--hutan-leaf) 0 36px, transparent 38px),
    radial-gradient(circle at 52% 100%, var(--hutan-leaf-dark) 0 44px, transparent 46px),
    radial-gradient(circle at 74% 100%, var(--hutan-leaf) 0 34px, transparent 36px),
    radial-gradient(circle at 92% 100%, var(--hutan-leaf-deep) 0 40px, transparent 42px),
    url("/assets/images/theme/jungle-scene-sm.webp") center 96% / 180% auto no-repeat;
}
.info-modal > * { position: relative; z-index: 1; }
.info-modal .modal-header {
  background:
    linear-gradient(160deg, rgba(224, 138, 46, .92) 0%, rgba(208, 118, 42, .92) 55%, rgba(192, 106, 36, .94) 100%);
}
.info-modal .modal-body,
.info-modal .modal-footer {
  background: transparent;
}
.info-modal .modal-footer {
  background: rgba(243, 249, 238, .88);
}
.modal-header {
  border-bottom: 3px solid var(--line);
  background: linear-gradient(160deg, var(--hutan-wood), var(--hutan-wood-2));
  color: #fff;
}
.modal-header .text-primary { color: #fff8e4 !important; }
.modal-kicker {
  display: block;
  color: #fff8e4;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}
.modal-header .modal-title {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: pre-line;
}
.modal-footer { border-top: 3px solid var(--line); background: var(--soft); }
.info-list > div { align-items: flex-start; }
.info-list > div > i {
  border-radius: 50%;
  color: #fff;
  background: var(--hutan-leaf);
}
.info-card-panel {
  margin-top: 7px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.info-highlight {
  position: relative;
  overflow: visible;
  margin-top: 18px;
  padding: 16px !important;
  border: 3px solid rgba(253, 190, 44, .55) !important;
  border-radius: 20px;
  background: #fff8e4 !important;
  box-shadow: 0 8px 0 rgba(224, 138, 46, .16);
}
.info-highlight > i { background: var(--hutan-sun) !important; color: #6b4407 !important; }
.info-highlight .info-card-panel {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(224, 138, 46, .28);
  padding-right: 58px;
}
.info-highlight-salamander {
  position: absolute;
  top: 50%;
  right: -30px;
  width: 92px;
  height: auto;
  max-height: calc(100% - 8px);
  object-fit: contain;
  object-position: center right;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 5px 3px rgba(62, 48, 25, .2));
  transform: translateY(-50%) scaleX(-1) rotate(-4deg);
  transform-origin: center;
}
.bracelet-grid > div, .terms-panel {
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}
.bracelet-guide h3, .terms-panel h3 { color: var(--hutan-leaf-deep); }

/* ---------- Halaman ditutup ---------- */
.closed-state > div {
  border-radius: 50%;
  color: #fff;
  background: var(--hutan-leaf);
  box-shadow: 0 6px 0 rgba(63, 138, 43, .3);
}
.closed-state h2 { color: var(--hutan-leaf-deep); }

/* ---------- Halaman sukses ---------- */
.success-check {
  border-radius: 50%;
  background: linear-gradient(180deg, #7cc44b, var(--hutan-leaf-dark));
  box-shadow: 0 8px 0 #2c6b23;
}
.success-intro > span { color: var(--hutan-berry); font-weight: 800; }
.success-intro h1 { color: var(--hutan-leaf-deep); font-weight: 600; }
.pass-top {
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 24px),
    linear-gradient(160deg, var(--hutan-wood), var(--hutan-wood-2));
  border-bottom: 5px solid var(--hutan-bark);
}
.pass-logo { border-radius: 50%; border: 3px solid var(--hutan-sun); }
.pass-status {
  border: 2px solid rgba(255, 255, 255, .45);
  background: var(--hutan-sun);
  color: #6b4407;
}
.pass-qr img { padding: 10px; border: 3px dashed var(--hutan-leaf); border-radius: 18px; background: #fff; }
.pass-qr strong { color: var(--hutan-leaf-deep); }
.child-avatar { border-radius: 50%; color: #fff; background: var(--hutan-leaf); }
.companion-badge { background: #fff6dd; border: 2px solid #f3d999; }
.pass-footer { background: var(--soft); }
.btn-whatsapp { border-radius: 999px; box-shadow: 0 6px 0 #14653a; font-weight: 700; }
.btn-whatsapp:active { transform: translateY(3px); box-shadow: 0 3px 0 #14653a; }
.bot-help > i { border-radius: 50%; }

.booking-result { border: 3px dashed var(--hutan-leaf); border-radius: 18px; background: #fff8e4; }
.booking-result strong { color: var(--hutan-leaf-deep); }

/* ---------- Footer ---------- */
.public-footer { color: var(--hutan-leaf-deep); font-weight: 700; }
.public-footer .partner-credit,
.public-footer .partner-credit a {
  color: #fff;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.public-footer .partner-credit a:hover { color: #fff; opacity: 1; }

/* ---------- Penyesuaian layar kecil ---------- */
@media (max-width: 991.98px) {
  .event-hero { border-right: 0; border-bottom: 8px solid var(--hutan-bark); }
  .event-hero::after { display: none; }
}
@media (max-width: 575.98px) {
  .registration-shell, .booking-pass { border-radius: 24px; box-shadow: 0 12px 0 rgba(63, 138, 43, .16); }
  body::after { height: 64px; }
  .info-highlight { margin-top: 22px; padding: 14px !important; }
  .info-highlight .info-card-panel { padding-right: 46px; }
  .info-highlight-salamander { width: 76px; top: 50%; right: -26px; max-height: calc(100% - 8px); }
}


/* ---------- Modal persetujuan ---------- */
.modal-backdrop.show { background: #1f2b16; opacity: .62; }
.modal-content { position: relative; }

.btn-primary:disabled,
.submit-button:disabled {
  background: #d6ddcd;
  color: #86927a;
  box-shadow: 0 6px 0 #bfc9b3;
  cursor: not-allowed;
  opacity: 1;
}

/* footer: meteran baca tipis di tepi atas, teks kiri, tombol kanan */
.consent-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  flex-wrap: nowrap;
}
.read-meter {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #e4eedb;
}
.read-meter > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #b6e06a, var(--hutan-sun));
  transition: width .15s linear;
}
.read-label {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}
.read-label.is-done { color: var(--hutan-leaf-dark); }
.read-label.is-done::before { content: "✓ "; font-weight: 800; }
.consent-footer .btn-primary { flex: none; padding: 11px 22px; }

/* Tombol panah melayang di dalam modal.
   Dok-nya sticky di dasar area scroll dengan tinggi nol, jadi tombol tidak
   menambah ruang dan posisinya selalu tepat di atas footer — berapa pun
   tinggi footer saat teksnya membungkus di layar sempit. */
.info-list > .scroll-next-dock {
  position: sticky;
  bottom: 4px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0;
  height: 0;
  margin: 0;
  padding: 0 4px 0 0;
  border-bottom: 0;
  pointer-events: none;
}
.scroll-next {
  position: relative;
  bottom: 52px;
  pointer-events: auto;
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--hutan-leaf-dark);
  box-shadow: 0 8px 20px rgba(44, 107, 35, .35);
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.scroll-next.is-visible { opacity: 1; visibility: visible; transform: translateY(0); animation: hutan-nudge 1.8s ease-in-out infinite; }
.scroll-next:hover { background: var(--hutan-leaf-deep); }
/* Bootstrap Icons menggeser glyph turun lewat vertical-align pada ::before,
   sehingga chevron terlihat tidak center di dalam lingkaran. Dinolkan di sini
   dan ikonnya dijadikan blok setinggi 1em agar benar-benar di tengah. */
.scroll-next i { display: block; line-height: 1; }
.scroll-next i::before { display: block; vertical-align: 0; line-height: 1; }
@keyframes hutan-nudge { 0%,100% { transform: translateY(0) } 50% { transform: translateY(5px) } }
@media (prefers-reduced-motion: reduce) { .scroll-next.is-visible { animation: none } }

.scroll-hint { color: var(--hutan-leaf-dark); font-weight: 700; }

@media (max-width: 575.98px) {
  .consent-footer { flex-wrap: wrap; padding: 14px 16px; }
  .read-label { flex: 1 0 100%; }
  .consent-footer .btn-primary { width: 100%; }
  .scroll-next { bottom: 48px; width: 42px; height: 42px; }
}

/* ============================================================
   HALAMAN SUKSES - kartu booking + panel WhatsApp
   ============================================================ */
.booking-card-figure {
  margin: 26px 0 0;
  padding: 10px;
  border: 3px solid var(--hutan-leaf);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 14px 0 rgba(63, 138, 43, .16), var(--shadow);
  overflow: hidden;
}
.booking-card-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.booking-card-open:focus-visible {
  outline: 3px solid var(--hutan-leaf-deep);
  outline-offset: 3px;
}
.booking-card-figure img {
  display: block;
  width: 100%;
  height: auto;
  /* Rasio dikunci supaya ruang gambar sudah dipesan sebelum file selesai
     diunduh — halaman tidak melompat saat sinyal lemah. */
  aspect-ratio: 1600 / 1000;
  border-radius: 18px;
  background: rgba(0, 0, 0, .04);
}

.card-zoom-dialog { width: min(1100px, calc(100% - 24px)); max-width: none; margin: 12px auto; }
.card-zoom-modal { overflow: hidden; border: 0; border-radius: 18px; background: #1c2418; }
.card-zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #243024;
}
.card-zoom-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font-size: 1.15rem;
}
.card-zoom-btn:hover { background: rgba(255, 255, 255, .22); }
.card-zoom-download { margin-left: auto; }
.card-zoom-toolbar .btn-close { filter: invert(1); opacity: .85; }
.card-zoom-stage {
  max-height: min(78vh, 820px);
  overflow: auto;
  background: #111;
}
.card-zoom-stage img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center top;
}
.form-heading p { margin: 0 0 18px; }
.success-actions { margin-top: 20px; }
.success-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.success-actions .btn i { display: grid; place-items: center; margin: 0 !important; line-height: 1; }
.success-actions .btn i::before,
.exchange-info-icon i::before,
.wa-icon i::before { display: block; vertical-align: 0; line-height: 1; }
.success-actions .btn-outline-primary {
  border: 3px solid var(--hutan-leaf);
  border-radius: 999px;
  color: var(--hutan-leaf-deep);
  background: #fff;
  font-weight: 700;
  padding: 10px 22px;
}
.success-actions .btn-outline-primary:hover { background: var(--soft); color: var(--hutan-leaf-deep); }

.exchange-info {
  position: relative;
  overflow: hidden;
  display: block;
  margin-top: 26px;
  padding: 22px 24px;
  border: 3px solid #f0cf72;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff9df, #fff1bd);
  box-shadow: 0 9px 0 rgba(224, 138, 46, .13);
}
.exchange-info-head { display: flex; align-items: center; gap: 16px; }
.exchange-info::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border: 20px solid rgba(253, 190, 44, .18);
  border-radius: 50%;
}
.exchange-info-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, var(--hutan-wood), var(--hutan-wood-2));
  box-shadow: 0 5px 0 var(--hutan-wood-dark);
  font-size: 1.25rem;
}
.exchange-info > div { position: relative; z-index: 1; min-width: 0; }
.exchange-info small { color: var(--hutan-berry); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.exchange-info h2 { margin: 3px 0 6px; color: var(--hutan-wood-dark); font-size: 1.2rem; font-weight: 600; }
.exchange-info-copy { width: 100%; margin-top: 12px; color: #62451e; font-size: .92rem; font-weight: 700; line-height: 1.65; }
.exchange-info-copy p { width: 100%; margin: 0 0 .55rem; }
.info-list > div.info-row-wide { display: block; }
.info-row-head { display: flex; align-items: center; gap: 14px; }
.info-row-head > i { width: 38px; height: 38px; display: grid; place-items: center; flex: none; }
.exchange-info-copy p:last-child { margin-bottom: 0; }
.exchange-info-copy ul, .exchange-info-copy ol { margin: .3rem 0 0; padding-left: 1.2rem; }
.info-list-copy { flex: 1 1 auto; min-width: 0; }
.info-list-copy > strong { display: block; color: var(--ink); line-height: 1.35; }
.info-row-head > i {
  border-radius: 50%;
  color: #fff;
  background: var(--hutan-leaf);
}
.rich-event-copy {
  display: block;
  width: 100%;
  margin-top: 10px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.info-list .rich-event-copy strong,
.info-list .rich-event-copy em,
.info-list .rich-event-copy span { display: inline; margin: 0; }
.rich-event-copy p {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  box-sizing: border-box;
}
.rich-event-copy ul, .rich-event-copy ol { margin: .3rem 0 0; padding-left: 1.1rem; }

@media (max-width: 575.98px) {
  .info-list > div { gap: 11px; padding: 14px 0; }
  .info-list > div > i { width: 36px; height: 36px; }
  .rich-event-copy { grid-template-columns: 1fr; font-size: .84rem; line-height: 1.5; }
}

.peserta-list {
  margin-top: 26px;
  padding: 22px 24px;
  border: 3px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.peserta-list h3 { margin: 0 0 14px; color: var(--hutan-leaf-deep); font-size: 1.05rem; }
.peserta-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 2px dashed var(--line);
}
.peserta-list > div:first-of-type { border-top: 0; }
.peserta-list p { flex: 1; margin: 0; }
.peserta-list strong, .peserta-list small { display: block; }
.peserta-list small { color: var(--muted); font-size: .8rem; }

.wa-down {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 28px auto 24px;
  max-width: 720px;
  padding: 16px 18px;
  border: 2px solid #f0c36a;
  border-radius: 18px;
  background: #fff8e8;
  color: #6b4407;
  text-align: left;
}
.wa-down i { flex: none; font-size: 1.3rem; margin-top: 2px; }
.wa-down strong, .wa-down p { display: block; margin: 0; }
.wa-down p { margin-top: 4px; font-size: .92rem; line-height: 1.5; }
.wa-down-inline {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4d6;
  color: #6b4407;
  font-weight: 700;
  font-size: .9rem;
}

.wa-panel {
  margin-top: 26px;
  padding: 24px;
  border: 3px solid #bfe6cd;
  border-radius: 24px;
  background: linear-gradient(180deg, #f4fff8, #eafaf1);
}
.wa-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.wa-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  flex: none;
  color: #fff;
  border-radius: 50%;
  background: #1fae65;
  box-shadow: 0 5px 0 #14653a;
  font-size: 1.3rem;
}
.wa-head strong { display: block; color: var(--hutan-leaf-deep); font-size: 1.02rem; }
.wa-head small { color: var(--muted); }

.wa-steps { margin: 0 0 14px; padding-left: 20px; color: var(--ink); font-size: .92rem; line-height: 1.85; }
.wa-steps li { padding-left: 4px; }
.wa-steps li::marker { color: var(--hutan-leaf-dark); font-weight: 800; }

.wa-number, .wa-message {
  display: inline-block;
  margin-top: 4px;
  padding: 5px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .02em;
}
.wa-number { color: #6b4407; background: var(--hutan-sun); box-shadow: 0 3px 0 rgba(122,63,29,.28) }
.wa-message { color: #fff; background: var(--hutan-leaf-dark); font-family: inherit; }

.wa-warning {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 2px solid #f3d999;
  border-radius: 16px;
  background: #fff8e4;
  color: #7a5300;
  font-size: .86rem;
  line-height: 1.6;
}
.wa-warning i { flex: none; margin-top: 2px; }
.wa-panel .btn-whatsapp { width: 100%; padding: 13px; font-size: 1rem; }

.success-back { margin-top: 22px; text-align: center; }
.success-back a { color: var(--hutan-leaf-deep); font-weight: 800; text-decoration: none; }
.success-back a:hover { text-decoration: underline; }

/* ============================================================
   MOBILE - hero diringkas agar form cepat terlihat
   ============================================================ */
@media (max-width: 991.98px) {
  .event-hero { padding: 24px 20px 28px; }
  .event-hero::before { inset: 10px; border-radius: 18px; }
  .event-hero h1 { margin: 0 0 8px; font-size: clamp(1.65rem, 6.5vw, 2.3rem); line-height: 1.08; }
  .event-hero h1.hero-copy { margin: 2px auto 14px; max-width: 100%; }
  .hero-copy { padding: 10px 16px; }
  .eyebrow { padding: 6px 13px; font-size: .64rem; }
  .modal-kicker { font-size: 1rem; }
  .modal-header .modal-title { font-size: 1.28rem; }

  /* tanggal & waktu berdampingan, lokasi satu baris penuh di bawahnya
     karena nama lokasi bisa panjang */
  .event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 16px 0;
  }
  .event-details > div {
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 16px;
    min-width: 0;
  }
  .event-details > div:nth-child(3) { grid-column: 1 / -1; }
  .event-details i {
    display: grid;
    width: 26px; height: 26px;
    font-size: .78rem;
  }
  .event-details > div > span { min-width: 0 }
  .event-details small { font-size: .6rem; line-height: 1.1 }
  .event-details strong { font-size: .82rem; line-height: 1.25; white-space: normal; overflow-wrap: anywhere }

  /* kuota jadi baris tipis */
  .quota-card { padding: 11px 13px; border-width: 2px; border-radius: 16px; }
  .quota-icon { width: 32px; height: 32px; font-size: .85rem }
  .quota-card strong, .quota-card span { font-size: .72rem }
  .quota-card .progress { height: 7px; margin-top: 6px !important }

  /* catatan privasi tidak perlu memakan layar */
  .hero-note { display: none; }

  .form-panel { padding: 26px 18px 72px; }
  .form-heading h2 { font-size: 1.5rem }
  .form-heading p { font-size: .85rem }

  .success-shell { margin-top: 8px }
  .peserta-list, .wa-panel, .exchange-info { padding: 18px 16px; border-radius: 20px }
  .booking-card-figure { padding: 7px; border-radius: 20px }
}

/* panel judul halaman sukses agar terbaca di atas ilustrasi */
.success-intro {
  padding: 26px 24px 22px;
  border: 3px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 247, .93);
  box-shadow: var(--shadow);
}
.success-intro p { margin-bottom: 0; }

/* teks peringatan WhatsApp: ikon + satu blok teks */
.wa-warning > span { flex: 1; min-width: 0; }

/* baris peserta di layar sempit */
.peserta-list > div { flex-wrap: wrap; }
.peserta-list .companion-badge { margin-left: auto; }
@media (max-width: 575.98px) {
  .exchange-info { gap: 13px; }
  .exchange-info-icon { width: 44px; height: 44px; font-size: 1.05rem; }
  .exchange-info h2 { font-size: 1.08rem; }
  .exchange-info-copy { font-size: .85rem; }
  .peserta-list .companion-badge { flex: 1 0 100%; margin-left: 46px; margin-top: 4px; }
  .success-intro { padding: 20px 18px 18px; border-radius: 20px; }
}
