/* Ruang Waris — landing page
   Coordinates mirror the Figma frame 997:821 (360 x 799).
   The whole canvas is scaled to fit the viewport by script.js. */

:root {
  --cream:        #f2dfcb;
  --cream-bar:    #fbf1e8;
  --cream-card:   #fbf1e6;
  --cream-ticket: #f2dfc5;
  --cream-coupon: #f3e2ce;
  --olive:        #535330;
  --olive-line:   #4c4c2a;
  --olive-text:   #50502d;
  --olive-text-2: #51512d;
  --olive-text-3: #4e4e2d;
  --olive-text-4: #4f4e2d;
  --brown-logo:   #483217;
  --gold:         #b5841d;
  --gold-title:   #be8130;
  --brown-badge:  #a86d2b;
  --brown-count:  #3d2810;
  --brown-sub:    #442c0f;
  --brown-body:   #735834;
  --brown-price:  #3f280e;
  --orange:       #ff6200;
  --cream-sub:    #f6e9d8;
  --ink:          #3f2f1c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The whole page scrolls normally (no inner scroll container). min-height
   keeps the cream background filling the screen even when content is
   shorter than the viewport; dvh tracks mobile browser chrome show/hide. */
.app {
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--cream);
}

.stage {
  margin: 0 auto;
  overflow: hidden;
  transition: height 0.25s ease;
}

/* Scrolling content: the Figma frame minus its 60px bottom bar, plus the
   custom FAQ and registration-form sections appended after the promo card.
   Height transitions because script.js shrinks/grows it (in step with the
   FAQ accordion) to keep the registration card's gap consistent. */
.canvas {
  position: relative;
  width: 360px;
  height: 1937px;
  background: var(--cream);
  overflow: hidden;
  transform-origin: top left;
  transition: height 0.25s ease;
}

/* Sticky bottom bar. position:sticky (not fixed) so it stays within the
   normal page-scroll flow instead of needing its own scroll container. */
.bottombar {
  position: sticky;
  bottom: 0;
  background: var(--cream-bar);
  padding-bottom: env(safe-area-inset-bottom);
}
.bar-stage {
  margin: 0 auto;
  overflow: hidden;
}
.bar-canvas {
  position: relative;
  width: 360px;
  height: 60px;
  transform-origin: top left;
}

/* zero-specificity reset so per-element margins below still win */
:where(.canvas p, .bar-canvas p) { margin: 0; }
:where(.canvas img, .bar-canvas img) { display: block; }

/* ---------- hero banner (logo, judul, kartu event, kartu promo) ----------
   Blok alir biasa di dalam kanvas: lebar mengikuti kanvas 360px dengan
   padding 16px, tinggi menyesuaikan isi. script.js merantai posisi section
   berikutnya dari tinggi blok ini. */
.hero {
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  padding: 16px;
}
.hero__logo {
  width: 100px;
  height: auto;
  margin: 0 auto 22px;
}
.hero__title {
  margin: 0 0 12px;
  text-align: center;
  font-family: 'Literata', serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: -1.2px;
  color: var(--olive-text);
}
.hero__title em { font-style: normal; color: var(--orange); }

/* Ornamen pemisah: garis — belah ketupat oranye — garis */
.hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 12px;
}
.hero__ornament i {
  width: 26px;
  height: 0;
  border-top: 1.5px solid var(--orange);
  opacity: 0.55;
}
.hero__ornament b {
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: rotate(45deg);
}

.hero__sub {
  margin: 0 0 22px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: var(--olive-text-2);
}

/* ---------- kartu event ---------- */
.event {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 22px;
}
.event__photo {
  flex-shrink: 0;
  width: 152px;
  height: auto;
  align-self: flex-start;
}

.event__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 11px;
}
.event__kicker {
  margin: 0;
  font-family: 'Literata', serif;
  font-weight: 900;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--olive-text);
}
.event__sparkle {
  display: inline-block;
  margin-left: 5px;
  vertical-align: 2px;
  line-height: 0;
  color: var(--orange);
}
.event__sparkle svg { display: inline-block; width: 13px; height: 13px; }

.event__pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  background: var(--orange);
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: #fff;
}
.event__pill svg { flex-shrink: 0; width: 14px; height: 14px; overflow: visible; }

/* Pulse ikon "INTERACTIVE": titik tengah berdenyut, busur dalam lalu busur
   luar menyala menyusul, memberi kesan sinyal yang memancar keluar.
   Siklusnya 1.8s dengan jeda diam di ujung supaya tidak mengganggu mata. */
.pill-dot {
  transform-origin: 12px 12px;
  animation: pill-dot 1.8s ease-in-out infinite;
}
.pill-wave {
  transform-origin: 12px 12px;
  animation: pill-wave 1.8s ease-out infinite;
}
.pill-wave--in  { animation-delay: 0.12s; }
.pill-wave--out { animation-delay: 0.3s; }

@keyframes pill-dot {
  0%, 55%, 100% { transform: scale(1);    opacity: 1; }
  22%           { transform: scale(1.45); opacity: 0.85; }
}
@keyframes pill-wave {
  0%   { transform: scale(0.72); opacity: 0.25; }
  30%  { transform: scale(1);    opacity: 1; }
  62%  { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(0.72); opacity: 0.25; }
}

/* Hormati preferensi sistem: pengguna yang meminta gerak minimal cukup
   melihat ikon statis, tanpa animasi berulang. */
@media (prefers-reduced-motion: reduce) {
  .pill-dot, .pill-wave { animation: none; }
}

.event__divider {
  width: 100%;
  margin: 3px 0;
  border-top: 1.5px dashed rgba(83, 83, 48, 0.4);
}

.event__zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.2px;
  color: #2d6fd8;
}
.event__zoom svg { flex-shrink: 0; width: 21px; height: 21px; }

.event__schedule {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}
.event__date,
.event__time {
  display: flex;
  align-items: center;
  gap: 7px;
}
.event__date svg,
.event__time svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--brown-badge); }
.event__date {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: -0.1px;
  color: var(--olive-text);
}
.event__time {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--olive-text-2);
}

/* ---------- kartu promo tiket gratis ---------- */
.promo {
  background: var(--olive);
  border: 1px solid var(--olive-line);
  border-radius: 14px;
  overflow: hidden;
}
.promo__top { padding: 13px 16px 14px; }
.promo__title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  white-space: nowrap;
  color: var(--cream);
}
.promo__body {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: -0.2px;
  color: rgba(242, 223, 203, 0.9);
}
.promo__redeem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: var(--cream-coupon);
  border-top: 1px solid var(--olive-line);
  text-decoration: none;
}
.promo__redeem-icon { flex-shrink: 0; width: 40px; height: 40px; }
.promo__redeem-text { flex: 1; min-width: 0; }
.promo__redeem-title {
  display: block;
  margin-bottom: 3px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: -0.3px;
  color: var(--brown-body);
}
.promo__redeem-desc {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--brown-body);
}
.promo__redeem-arrow { flex-shrink: 0; width: 32px; height: 32px; }

/* ---------- 997:876 price (bar-relative: 751 - 739) ---------- */
.price {
  position: absolute;
  left: 16px;
  top: 12px;
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.price__label {
  font-weight: 400;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: -0.22px;
  color: var(--brown-body);
}
.price__value {
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.6px;
  color: var(--brown-price);
  white-space: nowrap;
}

/* ---------- 997:966 CTA (bar-relative: 747 - 739) ---------- */
.cta {
  position: absolute;
  left: 134px;
  top: 8px;
  width: 209px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px;
  background: var(--orange);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.15s ease;
}
.cta span {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.28px;
  color: #fff;
  white-space: nowrap;
}
.cta:hover { background: #e65800; }
.cta:active { background: #cc4e00; }

/* ---------- Benefits / "Apa yang Akan Kamu Dapatkan?" (custom) ----------
   Absolutely positioned card with normal-flow content inside (auto height),
   sitting between the promo coupon and the FAQ. script.js keeps the sections
   after it spaced by a fixed gap regardless of this card's measured height. */
.benefits {
  position: absolute;
  left: 16px;
  top: 745px; /* fallback: script.js merantainya di bawah .hero */
  width: 328px;
  transition: top 0.25s ease;
  background: var(--cream-card);
  border-radius: 20px;
  padding: 22px 16px 18px;
}
.benefits__header { margin-bottom: 16px; }
.benefits__title {
  margin: 0;
  font-family: 'Literata', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.4px;
}
.benefits__title-line1 { display: block; color: var(--olive-text); }
.benefits__title-line2 { display: block; color: var(--brown-badge); }
.benefits__rule {
  display: block;
  width: 26px;
  height: 3px;
  margin: 9px 0 10px;
  border-radius: 2px;
  background: var(--brown-badge);
}
.benefits__subtitle {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

.benefits__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  background: var(--cream-ticket);
  border-radius: 12px;
}
.benefit__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit__icon svg { width: 20px; height: 20px; display: block; }
.benefit__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 11px;
  border-left: 1px solid rgba(76, 76, 42, 0.16);
}
.benefit__title {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: var(--olive);
}
.benefit__desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- FAQ (custom, not from Figma) ----------
   Same pattern as .benefits: a single absolutely positioned card whose
   internal content lays out with normal flow (auto height), placed after
   the benefits card. Only `top` is coordinated with the section above it.
   Bedanya, tinggi card ini berubah saat accordion dibuka/ditutup, jadi
   script.js mengukur ulang dan menggeser .regform setiap kali di-toggle. */
.faq {
  position: absolute;
  left: 16px;
  top: 745px; /* fallback: script.js merantainya di bawah .benefits */
  width: 328px;
  background: var(--cream-card);
  border-radius: 20px;
  padding: 22px 16px 18px;
  transition: top 0.25s ease;
}
.faq__header { margin-bottom: 16px; }
.faq__title {
  margin: 0 0 8px;
  font-family: 'Literata', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.4px;
}
.faq__title-line1 { display: block; color: var(--olive-text); }
.faq__title-line2 { display: block; color: var(--gold-title); }
.faq__subtitle {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* collapsible panel: CSS-grid trick, no JS height math */
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq__panel.is-open { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; }

.faq__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: var(--cream-sub);
  border-radius: 12px;
  padding: 12px 12px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.faq__toggle--group {
  background: var(--cream-ticket);
  padding: 12px 14px;
}
.faq__toggle-label {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}
.faq__toggle--group .faq__toggle-label {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brown-body);
}

.faq__icon-circle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}
.faq__icon-circle--accent { background: var(--olive); }

.faq__chevron {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--ink);
  transition: transform 0.25s ease;
}
.faq__toggle[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }

.faq__group > .faq__panel > .faq__panel-inner {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 8px;
}
.faq__item .faq__toggle { background: var(--cream-sub); }
.faq__answer {
  margin: 0;
  padding: 12px 14px 14px;
  background: var(--cream-card);
  border: 1px solid rgba(76, 76, 42, 0.12);
  border-top: none;
  border-radius: 0 0 12px 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink);
}
.faq__item .faq__toggle[aria-expanded="true"] { border-radius: 12px 12px 0 0; }

/* ---------- Form Pendaftaran (custom, not from Figma) ----------
   Same pattern as .faq: a single absolutely positioned card whose internal
   content lays out with normal flow (auto height), placed after the FAQ
   section. `top` is kept in sync with the FAQ's actual height by script.js
   and transitions so it slides smoothly as the accordion opens/closes. */
.regform {
  position: absolute;
  left: 16px;
  top: 1354px;
  width: 328px;
  transition: top 0.25s ease;
}
.regform__card {
  background: var(--cream-card);
  border-radius: 20px;
  padding: 20px 16px 22px;
}
.regform__header { margin-bottom: 16px; }
.regform__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.14px;
  color: var(--ink);
}
.regform__subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--brown-body);
}
.regform__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.regform__input {
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid rgba(76, 76, 42, 0.15);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
}
.regform__input::placeholder { color: #9c8f7a; }
.regform__input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }

.regform__gender {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(76, 76, 42, 0.15);
  border-radius: 10px;
}
.regform__gender-label {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: #9c8f7a;
}
.regform__gender-options { display: flex; gap: 22px; }
.regform__radio {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.regform__radio input { accent-color: var(--orange); width: 15px; height: 15px; margin: 0; }

.regform__note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #3568c9;
}
.regform__note-icon { flex-shrink: 0; font-size: 12px; line-height: 1.5; }

.regform__phone {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(76, 76, 42, 0.15);
  border-radius: 10px;
  overflow: hidden;
}
.regform__phone-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-right: 1px solid rgba(76, 76, 42, 0.15);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.regform__flag { font-size: 15px; }
.regform__chevron { width: 12px; height: 12px; color: #9c8f7a; }
.regform__phone-input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
}
.regform__phone-input::placeholder { color: #9c8f7a; }
.regform__phone-input:focus { outline: none; }

.regform__submit {
  margin-top: 4px;
  width: 100%;
  padding: 14px;
  background: var(--orange);
  border: 0;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.regform__submit:hover { background: #e65800; }
.regform__submit:active { background: #cc4e00; }

.regform__help {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--brown-body);
}
.regform__help-link { color: #3568c9; font-weight: 600; text-decoration: underline; }

/* ---------- kartu pembayaran (di bawah kartu data peserta) ---------- */
.payment { margin-top: 20px; }
.payment__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(76, 76, 42, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.payment__option input { position: absolute; opacity: 0; pointer-events: none; }
.payment__option:has(input:checked) { border-color: var(--orange); }
.payment__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eddcc6;
  color: var(--ink);
}
.payment__icon svg { width: 22px; height: 22px; }
.payment__text { flex: 1; min-width: 0; }
.payment__name {
  display: block;
  margin-bottom: 3px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.payment__desc {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--brown-body);
}
.payment__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #7c7f3e;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.4px;
  color: #fff;
  vertical-align: middle;
}
.payment__dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.8px solid #b9ab94;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.payment__option:has(input:checked) .payment__dot {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 3.5px #fff, inset 0 0 0 20px var(--orange);
}

/* ---------- kartu kupon bentuk tiket ---------- */
.coupon {
  margin-top: 12px;
  background: linear-gradient(135deg, #f4802e 0%, #c62a1e 100%);
  border-radius: 14px;
  overflow: hidden; /* memotong separuh notch yang bocor ke luar kartu */
}
.coupon__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px 13px;
}
.coupon__info { flex: 1; min-width: 0; }
.coupon__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.2px;
  color: #fff;
}
.coupon__desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

/* Baris notch + garis putus-putus, murni dari flow layout: notch kiri/kanan
   memakai margin negatif sebesar separuh diameternya untuk "menembus" tepi
   kartu, lalu overflow:hidden di .coupon memotong separuhnya. Hasilnya
   presisi di tepi kartu tanpa perlu tahu tinggi konten di atasnya lebih
   dulu (tidak butuh JS/absolute positioning seperti komentar sebelumnya). */
.coupon__divider-row {
  display: flex;
  align-items: center;
}
.coupon__notch {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream-card); /* menyatu dengan latar kartu induk (.payment) */
}
.coupon__notch--left { margin-left: -9px; }
.coupon__notch--right { margin-left: auto; margin-right: -9px; }
.coupon__divider-line {
  flex: 1;
  height: 0;
  margin: 0 8px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.55);
}

/* Satu baris: hitung mundur di kiri, tombol di kanan, supaya kartu tidak
   terlalu tinggi. Kotak angka & tombol dikecilkan sedikit dari versi dua
   baris supaya keduanya tetap muat berdampingan di kartu sesempit ini. */
.coupon__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 15px;
}
/* Hitung mundur: kotak krem dengan angka bold berwarna (senada gaya digital
   timer), dipisah titik dua antar satuan. */
.coupon__countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.cd-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.cd-box {
  min-width: 27px;
  padding: 6px 4px;
  background: var(--cream-card);
  border-radius: 7px;
  text-align: center;
}
.cd-num {
  display: block;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1;
  letter-spacing: -0.2px;
  color: #c62a1e;
  font-variant-numeric: tabular-nums;
}
/* Keterangan satuan: kecil & tipis, tidak bersaing dengan angka. */
.cd-label {
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.7);
}
.cd-sep {
  align-self: flex-start;
  margin-top: 6px; /* menyejajarkan dengan tengah kotak angka, bukan grup+label */
  font-weight: 800;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.coupon__btn {
  flex-shrink: 0;
  padding: 10px 18px;
  background: #fff;
  border: 0;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  color: #c62a1e;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.coupon__btn:hover { background: #dfe8fc; }
.coupon__btn:active { background: #cdd9f7; }
/* Tombol setelah kupon terpakai: abu-abu transparan di atas gradasi biru,
   supaya jelas sudah tidak bisa diklik lagi dan tidak menarik perhatian. */
.coupon.is-applied .coupon__btn {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  cursor: default;
  pointer-events: none;
}

/* ---------- rincian transaksi ---------- */
.summary {
  margin-top: 12px;
  padding: 14px 14px 6px;
  background: #fff;
  border: 1px solid rgba(76, 76, 42, 0.12);
  border-radius: 14px;
}
.summary__title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px dashed rgba(115, 88, 52, 0.3);
}
.summary__row--total { border-bottom: 0; }
/* `display: flex` di atas mengalahkan atribut `hidden`, jadi ditegaskan lagi. */
.summary__row[hidden] { display: none; }
.summary__label {
  font-size: 11.5px;
  color: var(--brown-body);
}
.summary__value {
  font-size: 11.5px;
  color: var(--ink);
}
.summary__value--strike {
  color: var(--orange);
  text-decoration: line-through;
}
/* Harga tiket dicoret begitu kupon gratis diterapkan. */
.summary__value.is-void {
  text-decoration: line-through;
  color: var(--brown-body);
  opacity: 0.75;
}
.summary__row--total .summary__label {
  font-weight: 700;
  color: var(--ink);
}
.summary__value--total {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.summary__value--total.is-free { color: #0b7a4b; }

/* ---------- catatan keamanan ---------- */
.secure {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  background: rgba(83, 83, 48, 0.06);
  border-radius: 12px;
}
.secure__icon {
  flex-shrink: 0;
  display: flex;
  color: var(--ink);
}
.secure__icon svg { width: 24px; height: 24px; }
.secure__text { flex: 1; min-width: 0; }
.secure__title {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);
}
.secure__desc {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  color: var(--brown-body);
}

.payment__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  background: var(--orange);
  border: 0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.payment__submit svg { width: 18px; height: 18px; }
.payment__submit:hover { background: #e65800; }
.payment__submit:active { background: #cc4e00; }

/* Sticky bar disembunyikan saat form pendaftaran sudah terlihat,
   supaya CTA-nya tidak duplikat dengan tombol "Lanjutkan". */
.bottombar {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.bottombar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.payment__wa {
  display: grid;
  grid-template-columns: 30px 1px 1fr;
  column-gap: 12px;
  row-gap: 6px;
  margin-top: 14px;
  padding: 12px;
  background: #e4e6d4;
  border-radius: 12px;
  text-decoration: none;
}
.payment__wa-icon {
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}
.payment__wa-icon img { width: 30px; height: 30px; }
/* Garis pemisah tipis antara ikon dan blok teks, membentang penuh sejajar
   kedua baris (judul+deskripsi di atas, nomor WA di bawah). */
.payment__wa-divider {
  grid-row: 1 / 3;
  align-self: stretch;
  width: 1px;
  background: rgba(76, 76, 42, 0.18);
}
.payment__wa-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.payment__wa-title {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
}
.payment__wa-desc {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--brown-body);
}
.payment__wa-number {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
}
.payment__wa-number svg { width: 15px; height: 15px; color: var(--ink); }

/* ---------- modal konfirmasi pesanan ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 20, 0.55);
}
.modal__panel {
  position: relative;
  width: min(92vw, 400px);
  max-height: 88vh;
  margin: 6vh auto;
  overflow-y: auto;
  padding: 28px 22px 24px;
  background: var(--cream); /* sama dengan latar halaman utama */
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 76, 42, 0.08);
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}
.modal__close svg { width: 16px; height: 16px; }
.modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: #fbdfc9;
  border-radius: 50%;
  color: var(--orange);
}
.modal__icon svg { width: 30px; height: 30px; }
.modal__title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.modal__subtitle {
  margin: 0 0 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--brown-body);
}
.modal__section { margin-bottom: 16px; }
.modal__section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.modal__section-title svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--orange); }
.modal__box {
  padding: 2px 14px;
  background: #fff;
  border-radius: 12px;
}
.modal__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(76, 76, 42, 0.1);
  font-size: 13.5px;
}
.modal__row:last-child { border-bottom: 0; }
/* `display: flex` di atas mengalahkan atribut `hidden`, jadi ditegaskan lagi. */
.modal__row[hidden] { display: none; }
.modal__label {
  flex: 0 0 40%;
  color: var(--brown-body);
}
.modal__value {
  flex: 1;
  font-weight: 700;
  color: var(--ink);
}
.modal__value::before { content: ": "; font-weight: 400; color: var(--brown-body); }
.modal__row--discount .modal__label--green,
.modal__value--green { color: #0b7a4b; }
.modal__row--discount .modal__value::before { color: #0b7a4b; }
.modal__divider {
  margin: 2px 0;
  border-top: 1.5px dashed rgba(76, 76, 42, 0.25);
}
.modal__row--total {
  padding-top: 12px;
  border-bottom: 0;
}
.modal__row--total .modal__value::before { content: ""; }
.modal__label--total { font-weight: 700; color: var(--ink); }
.modal__value--total {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.modal__value--total.is-free { color: #0b7a4b; }

.modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 16px;
  background: var(--orange);
  border: 0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.modal__submit svg { width: 19px; height: 19px; }
.modal__submit:hover { background: #e65800; }
.modal__submit:active { background: #cc4e00; }
