/* Tema publik "Melodi Natal Cat Air".
   Dimuat setelah theme-hutan.css, hanya saat tema ini dipilih di pengaturan. */

:root,
[data-bs-theme="dark"] {
  --hutan-sky-1: #f4f8ee;
  --hutan-sky-2: #e4f0df;
  --hutan-leaf: #3d8c55;
  --hutan-leaf-dark: #2f7a48;
  --hutan-leaf-deep: #1d5a34;
  --hutan-wood: #e2b56a;
  --hutan-wood-2: #c99245;
  --hutan-wood-dark: #8a5a28;
  --hutan-bark: #6d4520;
  --hutan-sun: #e7b43a;
  --hutan-berry: #d4534a;
  --brand: #2f7a48;
  --brand2: #d4534a;
  --ink: #2c3d2a;
  --muted: #6d7a68;
  --surface: #fffdf8;
  --soft: #f3f8ee;
  --line: #d7e6cc;
  --shadow: 0 26px 64px rgba(47, 90, 40, .16);
}

body {
  background:
    radial-gradient(ellipse at 50% 28%, rgba(255, 252, 244, .34), rgba(232, 244, 224, .08) 46%, rgba(36, 74, 44, .08) 100%),
    url("/assets/images/theme/melodi-cat-air-scene.webp") center top / cover no-repeat,
    #e7f3df;
  background-attachment: scroll, fixed, scroll;
}

@media (max-width: 767.98px) {
  body {
    background:
      linear-gradient(180deg, rgba(244, 250, 236, .2), rgba(214, 232, 198, .12) 46%, rgba(198, 222, 180, .22)),
      url("/assets/images/theme/melodi-cat-air-scene-portrait.webp") center top / cover no-repeat,
      #d5e8c6;
    background-attachment: scroll, scroll, scroll;
  }
}

/* Font buku cerita. Tagline (.hero-copy / .tagline-*) tidak diubah:
   desainnya diatur sendiri di pengaturan. */
body,
.form-control,
.form-select,
.form-heading p,
.hero-note,
.event-details small,
.consent-box,
.info-card-panel,
.rich-event-copy,
.exchange-info-copy,
.wa-steps,
.success-intro p,
.peserta-list small {
  font-family: "Quicksand", "Nunito", sans-serif;
}
h1:not(.hero-copy),
h2, h3, h4, h5, h6,
.public-brand strong,
.submit-button,
.btn,
.form-label,
.modal-kicker,
.modal-title,
.eyebrow,
.child-card-head strong,
.child-card-head .child-number,
.success-intro > span,
.pass-qr strong,
.quota-card strong,
.event-details strong {
  font-family: "Baloo 2", "Fredoka", sans-serif;
  letter-spacing: .01em;
}

.hanging-monkey {
  top: 0;
  width: clamp(82px, 8vw, 112px);
  aspect-ratio: 618 / 1126;
  animation: none;
  filter: drop-shadow(0 10px 8px rgba(92, 58, 22, .2));
}
.hanging-monkey img {
  position: static;
  width: 100%;
  height: auto;
  opacity: 1;
  object-fit: contain;
  transform-origin: 22% 0%;
  animation: lion-swing 5.6s ease-in-out infinite;
}
.hanging-monkey:hover img,
.hanging-monkey:focus-visible img {
  animation-duration: 3.2s;
}
.hanging-monkey.is-cheering img {
  animation-name: monkey-swing-big;
  animation-duration: 1.8s;
}
.hanging-monkey.is-dragging img { animation-play-state: paused; }
@keyframes lion-swing {
  0%, 100% { transform: rotate(-4.5deg); }
  50% { transform: rotate(4.5deg); }
}
@keyframes monkey-swing-big {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
@media (max-width: 767.98px) {
  .hanging-monkey {
    width: clamp(64px, 18vw, 82px);
  }
  body:has(.modal.show) .hanging-monkey {
    width: clamp(56px, 15vw, 72px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hanging-monkey img { animation: none; }
}

.consent-box:has(.consent-pointer) {
  position: relative;
  padding-right: 96px;
  min-height: 132px;
}
.consent-pointer {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 6px;
  width: 92px;
  height: 122px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  transform-origin: 70% 38%;
  filter: drop-shadow(0 8px 6px rgba(92, 58, 22, .16));
  animation: none;
}
@media (max-width: 575.98px) {
  .consent-box:has(.consent-pointer) {
    padding-right: 86px;
    min-height: 124px;
  }
  .consent-pointer {
    width: 82px;
    height: 112px;
  }
}

.public-brand strong { color: var(--hutan-leaf-deep); }
.public-brand span {
  border-color: #3d8c55;
  box-shadow: 0 6px 0 rgba(36, 90, 48, .18);
}
.theme-button {
  border-color: #b7d7b4;
  color: var(--hutan-leaf-deep);
  box-shadow: 0 4px 0 rgba(36, 90, 48, .14);
}

.success-back a,
.success-back a:hover {
  color: #fff;
  text-shadow: 0 1px 2px rgba(28, 46, 32, .55);
}

.registration-shell,
.booking-pass,
.success-shell .bot-help,
.booking-card-figure,
.peserta-list,
.success-intro,
.modal-content {
  border-color: #b7d7b4;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 16px 0 rgba(47, 122, 72, .12), var(--shadow);
}

.event-hero,
.event-hero h1 {
  color: #234028;
  text-shadow: none;
}
.event-hero {
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 214, 122, .34), rgba(244, 196, 92, .28)),
    url("/assets/images/theme/melodi-cat-air-wood.jpg") center / cover no-repeat;
  box-shadow: inset 0 0 0 7px rgba(186, 132, 48, .1);
}
.event-hero::before {
  border-color: rgba(176, 122, 42, .5);
}
.event-hero::after { display: none; }
.event-details > div {
  color: #4a3418;
  background: rgba(255, 248, 228, .92);
  border-color: rgba(186, 132, 52, .32);
}
.event-details small { color: #8a6840; }
.event-details strong { color: #3a2914; }
.quota-card {
  color: #3a2914;
  border-color: rgba(186, 132, 52, .32);
  background: rgba(255, 248, 228, .92);
}
.quota-card .progress { background: rgba(186, 132, 52, .16); }
.hero-note { color: #6d5230; }
.eyebrow,
.quota-icon,
.event-details i,
.child-card-head .child-number,
.pass-status,
.wa-number {
  color: #8a3a32;
}
.quota-card .progress-bar,
.read-meter > span {
  background: linear-gradient(90deg, #f0c14a, #d4922a);
}

.form-heading h2::after { content: none; }
.form-panel { background: rgba(255, 253, 248, .96); }

@media (max-width: 991.98px) {
  .registration-shell {
    background: rgba(246, 250, 240, .28);
  }
  .form-panel {
    background: rgba(246, 250, 240, .42);
  }
  .form-panel::before,
  .form-panel::after {
    display: none;
  }
  .event-hero { border-bottom: 0; }
  .child-card {
    background: linear-gradient(180deg, rgba(255, 253, 248, .94), rgba(244, 248, 238, .9));
  }
}

.child-card,
.consent-box,
.bracelet-grid > div,
.terms-panel,
.info-card-panel,
.rich-event-copy p {
  border-color: #d7e6cc;
  background: #fffcf6;
}
.child-card {
  border-style: solid;
  border-color: #b7d7b4;
  box-shadow: 0 8px 0 rgba(47, 122, 72, .1);
}
.companion-note,
.companion-badge,
.wa-warning,
.booking-result {
  border-color: #e7c98a;
  background: #fff8e8;
  color: #6d4520;
}

.submit-button,
.btn-primary,
.success-check,
.closed-state > div {
  background: linear-gradient(180deg, #4aa264, #1d5a34);
  box-shadow: 0 7px 0 #143f24;
}
.submit-button:hover,
.btn-primary:hover {
  background: linear-gradient(180deg, #58b072, #184c2c);
}
.submit-button:active,
.btn-primary:active {
  box-shadow: 0 3px 0 #143f24;
}
.submit-button:disabled,
.btn-primary:disabled {
  background: #e4eadf;
  color: #8a9784;
  box-shadow: 0 6px 0 #d2dccb;
}
.success-check { box-shadow: 0 8px 0 #143f24; }
.form-control:focus,
.form-select:focus {
  border-color: #3d8c55;
  box-shadow: 0 0 0 .25rem rgba(61, 140, 85, .2);
}
.form-check-input:checked {
  background-color: #2f7a48;
  border-color: #2f7a48;
}

.modal-backdrop.show { background: #1c2e20; }
.modal-content { border-color: #b7d7b4; }
.info-modal {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, .94), rgba(255, 246, 230, .92) 55%, rgba(255, 243, 220, .9)),
    url("/assets/images/theme/melodi-cat-air-scene-sm.webp") center top / cover no-repeat;
}
.info-modal::before {
  opacity: .26;
  background: url("/assets/images/theme/melodi-cat-air-scene-sm.webp") center top / cover no-repeat;
}
.info-modal::after {
  opacity: .32;
  background:
    linear-gradient(0deg, rgba(255, 246, 230, .15), rgba(255, 246, 230, .82)),
    url("/assets/images/theme/melodi-cat-air-scene-sm.webp") center bottom / cover no-repeat;
}
.info-modal .modal-header,
.modal-header {
  color: #3a2914;
  background:
    linear-gradient(180deg, rgba(255, 214, 122, .2), rgba(244, 196, 92, .16)),
    url("/assets/images/theme/melodi-cat-air-wood.jpg") center 18% / cover no-repeat;
}
.modal-header .modal-title,
.modal-kicker { color: #3a2914; text-shadow: none; }
.info-modal .modal-footer,
.modal-footer {
  background: rgba(255, 252, 244, .94);
  border-top-color: #d7e6cc;
}
.read-meter { background: #e4eedc; }
.scroll-next { background: #2f7a48; }
.scroll-next:hover { background: #1d5a34; }

.info-list > div > i,
.info-row-head > i {
  background: #2f7a48;
}
.info-highlight {
  border-color: rgba(212, 83, 74, .55) !important;
  background: #fff8f4 !important;
  box-shadow: 0 8px 0 rgba(47, 122, 72, .12);
}
.info-highlight > i {
  background: #d4534a !important;
  color: #fffaf2 !important;
}
.info-highlight .info-card-panel { padding-right: 78px; }
.info-highlight-salamander {
  width: 104px;
  right: -12px;
  filter: drop-shadow(0 8px 6px rgba(47, 74, 40, .2));
  transform: translateY(-54%) rotate(-4deg);
}
@media (max-width: 575.98px) {
  .registration-shell,
  .booking-pass {
    box-shadow: 0 12px 0 rgba(47, 122, 72, .12);
  }
  .info-highlight-salamander {
    width: 78px;
    right: -10px;
  }
  .info-highlight .info-card-panel { padding-right: 54px; }
}

.pass-top {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 24px),
    linear-gradient(160deg, #3d8c55, #1d5a34);
  border-bottom-color: #143f24;
}
.pass-logo { border-color: #e7b43a; }
.pass-qr img {
  border-color: #3d8c55;
  background: #fffdf8;
}
.booking-card-figure {
  border-color: #b7d7b4;
  box-shadow: 0 14px 0 rgba(47, 122, 72, .12), var(--shadow);
}
.card-zoom-modal { background: #1c2e20; }
.card-zoom-toolbar { background: #234028; }
.card-zoom-stage { background: #142016; }
.success-actions .btn-outline-primary {
  border-color: #3d8c55;
  color: #1d5a34;
  background: #fffdf8;
}
.success-actions .btn-outline-primary:hover {
  background: #f3f8ee;
  color: #143f24;
}

.exchange-info {
  border-color: #e7c98a;
  background: linear-gradient(135deg, #fffaf0, #ffe8c4);
  box-shadow: 0 9px 0 rgba(201, 146, 69, .14);
}
.exchange-info-icon {
  background: linear-gradient(180deg, #e2b56a, #c99245);
  box-shadow: 0 5px 0 #8a5a28;
}
.exchange-info::after { border-color: rgba(231, 180, 58, .28); }
.exchange-info h2,
.exchange-info-copy { color: #6d4520; }

.peserta-list { border-color: #d7e6cc; }
.peserta-list > div { border-top-color: #d7e6cc; }
.child-avatar { background: #2f7a48; }

.wa-panel {
  border-color: #d7e7c8;
  background: linear-gradient(180deg, #fffdf8, #f3f8ee);
}
.wa-message { background: #1d5a34; }
.music-toggle {
  box-shadow: 0 12px 28px rgba(36, 74, 44, .24);
}
.music-toggle:focus-visible { outline-color: rgba(61, 140, 85, .45); }

.public-footer { color: var(--hutan-leaf-deep); }
