/* =====================================================================
   Cara menyampaikan (kejutan) baru: Buka Amplop · Pecahkan Balon · Lampion Terbang · Hitung Mundur · mode "nyalakan lilin"
   Plus pemilih jenis ucapan di form. Dimuat setelah card.css (kartu) dan style.css (form).
   ===================================================================== */
/* ---------- form: jenis ucapan dan lencana rekomendasi ---------- */
.acara-pilih { margin-bottom: 1.25rem; } .acara-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.acara-chip { position: relative; display: inline-flex; cursor: pointer; } .acara-chip input { position: absolute; opacity: 0; inset: 0; }
.acara-chip span { display: inline-block; padding: .5rem .9rem; border: 2px solid var(--border); border-radius: 99px; background: var(--card); font-weight: 700; font-size: .88rem; transition: border-color .15s, background .15s, color .15s; }
.acara-chip:has(input:checked) span, .acara-chip.on span { border-color: var(--primary); background: var(--badge); color: var(--primary-dark, var(--primary)); } .acara-chip:has(input:focus-visible) span { outline: 3px solid var(--primary); outline-offset: 2px; }
.kc-rek { display: inline-block; align-self: flex-start; margin: .35rem 0 .1rem; padding: .15rem .55rem; border-radius: 99px; background: #E6F6EC; color: #1E7A45; font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.kej-card .kc-rek { margin-left: .75rem; margin-right: .75rem; }
.kej-modus { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 .5rem; } .kej-modus label { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border: 2px solid var(--border); border-radius: 12px; background: var(--card); cursor: pointer; font-weight: 700; font-size: .9rem; } .kej-modus label:has(input:checked) { border-color: var(--primary); background: var(--badge); }
/* ---------- kartu: lilin "nyalakan" ---------- */
.candle.mati .flame { animation: none; opacity: 0; transform: scale(.1); } .candle.mati .stick { opacity: .9; } .candle.menyala .flame { opacity: 1; transform: none; }
/* ---------- Buka Amplop ---------- */
.amp { display: grid; place-items: center; padding: 3.2rem 0 1rem; perspective: 900px; }
.amp-btn { position: relative; display: block; width: min(78vw, 17rem); aspect-ratio: 1.5; padding: 0; border: 0; background: none; cursor: pointer; --a: #F6E8CF; --b: #E4CC9E; --s: #B5651D; transform-style: preserve-3d; animation: ampGoyang 3s ease-in-out infinite; }
.amp-merah .amp-btn { --a: #E65A5A; --b: #B92B2B; --s: #F5C842; } .amp-hijau .amp-btn { --a: #54A878; --b: #2F7A50; --s: #F5C842; } .amp-emas .amp-btn { --a: #F4D67F; --b: #D4A63C; --s: #B33A3A; }
@keyframes ampGoyang { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1.4deg) translateY(-3px); } } .amp-btn.buka { animation: none; }
.amp-depan { position: absolute; inset: 0; z-index: 3; border-radius: 10px; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 22px 30px -14px rgba(0, 0, 0, .5); overflow: hidden; }
.amp-depan::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent 49.4%, rgba(0, 0, 0, .14) 49.8% 50.2%, transparent 50.6%), linear-gradient(to top left, transparent 49.4%, rgba(0, 0, 0, .14) 49.8% 50.2%, transparent 50.6%); clip-path: polygon(0 100%, 50% 38%, 100% 100%); }
.amp-tutup { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-origin: 50% 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(180deg, var(--b), var(--a)); transition: transform .85s cubic-bezier(.4, 0, .2, 1) .3s, z-index 0s linear .7s; border-radius: 10px 10px 0 0; }
.amp-btn.buka .amp-tutup { transform: rotateX(180deg); z-index: 1; }
.amp-surat { position: absolute; left: 7%; right: 7%; top: 9%; height: 82%; z-index: 2; display: grid; align-content: center; gap: .55rem; padding: 0 1.2rem; background: #FFFDF6; border-radius: 6px; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .35); transition: transform 1.1s cubic-bezier(.3, 1.2, .4, 1) 1s; } .amp-surat i { display: block; height: 7px; border-radius: 4px; background: #E8DCC4; } .amp-surat i:nth-child(2) { width: 82%; } .amp-surat i:nth-child(3) { width: 58%; }
.amp-btn.buka .amp-surat { transform: translateY(-58%); }
.amp-segel { position: absolute; left: 50%; top: 58%; z-index: 6; width: 3.2rem; height: 3.2rem; margin: -1.6rem 0 0 -1.6rem; color: var(--s); filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .45)); transition: transform .5s ease, opacity .45s ease; } .amp-segel svg { display: block; width: 100%; height: 100%; }
.amp-btn.buka .amp-segel { transform: scale(1.7) rotate(24deg); opacity: 0; }
/* ---------- Pecahkan Balon ---------- */
.bln { position: relative; width: 100%; max-width: 24rem; height: 20rem; margin: .6rem auto 0; }
.bln-b { position: absolute; bottom: .6rem; width: 22%; max-width: 88px; padding: 0; border: 0; background: none; cursor: pointer; animation: blnAyun var(--w, 3.4s) ease-in-out infinite alternate; } .bln-b svg { display: block; width: 100%; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .22)); }
@keyframes blnAyun { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-48px) rotate(3deg); } }
.bln-b.pecah { animation: blnPecah .26s ease forwards; pointer-events: none; } @keyframes blnPecah { to { transform: scale(1.7); opacity: 0; } }
.bln-ucap { position: absolute; bottom: 34%; max-width: 10rem; padding: .5rem .9rem; border-radius: 16px; background: #fff; color: #3A2A4A; font-weight: 800; font-size: .92rem; line-height: 1.3; text-align: center; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .4); pointer-events: none; animation: blnUcap 2.4s ease forwards; transform: translateX(-50%); }
@keyframes blnUcap { 0% { opacity: 0; transform: translate(-50%, 12px) scale(.8); } 14% { opacity: 1; transform: translate(-50%, 0) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -44px); } }
/* ---------- Lampion Terbang ---------- */
.lmp { position: relative; width: 100%; height: 22rem; max-width: 24rem; margin: .8rem auto 0; overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, #0B1030, #261B54 62%, #6B2A5A); box-shadow: inset 0 0 40px #0008, 0 20px 30px -18px #000; }
.lmp-bintang { position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1.6px), radial-gradient(#fff 1px, transparent 1.6px); background-size: 46px 52px, 71px 63px; background-position: 0 0, 22px 31px; opacity: .7; }
.lmp-l { position: absolute; bottom: 1.6rem; width: 19%; max-width: 76px; margin-left: -9.5%; padding: 0; border: 0; background: none; cursor: pointer; animation: lmpAyun 3s ease-in-out infinite alternate; animation-delay: var(--d); transition: transform 5.2s ease-in, opacity 5.2s ease-in; }
@keyframes lmpAyun { from { margin-bottom: 0; } to { margin-bottom: 8px; } }
.lmp-badan { display: block; width: 100%; aspect-ratio: .82; border-radius: 42% 42% 30% 30% / 38% 38% 62% 62%; background: linear-gradient(180deg, #5E4E4E, #3C3030); border: 2px solid #ffffff26; transition: background .7s ease, box-shadow .7s ease; }
.lmp-api { position: absolute; left: 50%; bottom: 16%; width: 30%; height: 34%; margin-left: -15%; border-radius: 50%; background: radial-gradient(circle, #FFF3B0, #FF9A3D 70%); filter: blur(2px); opacity: 0; transition: opacity .7s ease; z-index: 1; }
.lmp-l.nyala .lmp-badan { background: linear-gradient(180deg, #FFD27A, #FF8A3D); box-shadow: 0 0 22px 6px #FF9A3DAA, 0 0 60px 14px #FF9A3D55; } .lmp-l.nyala .lmp-api { opacity: 1; }
.lmp-l em { position: absolute; left: 50%; top: 112%; width: 8.5rem; transform: translateX(-50%); font-style: normal; font-size: .78rem; line-height: 1.3; color: #FFE9C0; text-align: center; opacity: 0; transition: opacity .7s ease; text-shadow: 0 1px 4px #000; pointer-events: none; } .lmp-l.nyala em { opacity: 1; }
.lmp-l.terbang { transform: translateY(-17rem) scale(.7); opacity: .2; pointer-events: none; }
/* ---------- Hitung Mundur ---------- */
.hit { padding: 1.2rem 0 .4rem; text-align: center; }
.hit-angka { min-height: 1.1em; font: 800 clamp(5rem, 30vw, 8.5rem)/1 'Fredoka', 'Plus Jakarta Sans', sans-serif; color: var(--tacc, var(--accent, #E8527A)); text-shadow: 0 10px 26px rgba(0, 0, 0, .22); } .hit-angka.denyut { animation: hitDenyut .55s ease; } @keyframes hitDenyut { 0% { transform: scale(1.4); opacity: .35; } 100% { transform: scale(1); opacity: 1; } }
.hit .cbtn { margin-top: 1.4rem; }
.hit-jam { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; } .hit-jam div { min-width: 4.2rem; padding: .8rem .45rem; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(3px); } .hit-jam b { display: block; font: 800 1.9rem/1 'Fredoka', 'Plus Jakarta Sans', sans-serif; font-variant-numeric: tabular-nums; } .hit-jam small { display: block; margin-top: .3rem; font-size: .6rem; letter-spacing: .16em; font-weight: 700; opacity: .8; }
.hit-target { margin: 1rem 0 0; font-size: .95rem; opacity: .92; } .hit-status { min-height: 1.4rem; margin: .6rem 0 0; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .amp-btn, .bln-b, .lmp-l { animation: none !important; } .amp-tutup, .amp-surat, .amp-segel, .lmp-l, .lmp-badan { transition-duration: .01s !important; transition-delay: 0s !important; } .bln-ucap { animation-duration: 1.6s; } }

/* ---------- langkah Desain: kartu ringkas, rekomendasi, saringan gaya, tombol lanjut menempel ---------- */
.opt-grid.ringkas { gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .opt-grid.ringkas { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .opt-grid.ringkas { grid-template-columns: repeat(4, 1fr); } }
.opt-grid.ringkas .opt-card { padding: .4rem; gap: .35rem; } .opt-grid.ringkas .opt-card label { gap: .35rem; }
.opt-grid.ringkas .opt-card .design-thumb.scene-wrap.ponsel-wrap { aspect-ratio: 1 / .86; } .opt-grid.ringkas .opt-card .design-thumb { aspect-ratio: 1 / .8; }
.opt-grid.ringkas .badge-anim, .opt-grid.ringkas .tombol-main { display: none; }
.opt-grid.ringkas .oc-name { font-size: .84rem; line-height: 1.25; padding: 0 .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opt-grid.ringkas .btn-sm { min-height: 34px; padding: 0 .5rem; font-size: .78rem; } .opt-grid.ringkas .kc-rek { margin: 0 .15rem; font-size: .62rem; }
.rek-judul { margin: 1.1rem 0 .5rem; font-size: 1.02rem; color: var(--primary-deep, var(--primary)); } .opt-grid.rek { margin-bottom: .4rem; }
.gaya-bar { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .9rem; } .gaya-bar .chip { min-height: 36px; padding: 0 .8rem; font-size: .8rem; } .gaya-bar .chip.on { background: var(--badge); border-color: var(--primary); color: var(--primary-deep, var(--primary)); }
.desain-alat { margin: .2rem 0 .4rem; }
.form-nav.lekat { position: sticky; bottom: 0; z-index: 20; flex-wrap: wrap; margin: 1rem -.6rem 0; padding: .6rem .6rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-top: 1px solid var(--border); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .35); }
.lekat-info { flex-basis: 100%; margin: 0 0 .1rem; font-size: .88rem; color: var(--muted, #6B5B66); } .lekat-info strong { color: var(--text, #261C24); }

.acara-ringkas { margin: .2rem 0 .7rem; } .acara-ringkas label { display: block; margin-bottom: .3rem; font-weight: 700; } .acara-ringkas select { width: 100%; max-width: 24rem; }

.paket-info { display: block; margin: 0 0 .8rem; padding: .5rem .75rem; border-radius: 12px; background: #E6F6EC; color: #1E5F3A; font-size: .86rem; line-height: 1.4; } .paket-info .icon { display: inline-block; width: 1em; height: 1em; margin-right: .35rem; vertical-align: -.14em; }

.link-ubah { margin-left: .25rem; padding: 0; border: 0; background: none; color: var(--primary-deep, var(--primary)); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* ---------- Storyboard paket Special ---------- */
.sb-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; } .sb-hitung { margin: 0; font-size: .92rem; }
.sb-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; } .sb-slide { padding: 1rem; } .sb-slide label { display: block; margin: .7rem 0 .25rem; font-weight: 700; font-size: .88rem; }
.sb-kepala { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; } .sb-no { padding: .2rem .7rem; border-radius: 99px; background: var(--primary); color: #fff; font-weight: 800; font-size: .82rem; } .sb-label { color: var(--primary-deep, var(--primary)); font-style: normal; font-weight: 700; font-size: .82rem; }
.sb-alat { margin-left: auto; display: inline-flex; gap: .3rem; } .sb-alatbtn { min-width: 40px; min-height: 40px; border: 2px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font-weight: 800; cursor: pointer; } .sb-alatbtn:disabled { opacity: .35; cursor: default; } .sb-alatbtn:focus-visible, .sb-thumb:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.sb-judulfoto { margin: .8rem 0 .3rem; font-weight: 700; font-size: .88rem; } .sb-foto { display: flex; flex-wrap: wrap; gap: .4rem; }
.sb-thumb { position: relative; width: 4rem; height: 4rem; padding: 0; overflow: hidden; border: 3px solid var(--border); border-radius: 10px; background: var(--card); cursor: pointer; } .sb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; } .sb-thumb b { position: absolute; left: 2px; bottom: 2px; min-width: 1.2rem; padding: 0 .25rem; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .68rem; text-align: center; }
.sb-thumb.sb-on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232, 82, 122, .25); } .sb-thumb.sb-on::after { content: "✓"; position: absolute; right: 2px; top: 2px; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 800; }
.sb-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; } .sb-admin li { padding: .7rem .8rem; border-radius: 10px; background: rgba(127, 127, 127, .08); } .sb-admin p { margin: .25rem 0 0; } .sb-a-kepala { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.bayar-info { margin: .8rem 0; text-align: left; } .bayar-info .icon { width: 1em; height: 1em; vertical-align: -.12em; } .bayar-langkah { margin: .4rem 0 0; padding-left: 1.2rem; line-height: 1.55; } .bayar-langkah li { margin: .25rem 0; }

.bayar-langkah { list-style: decimal; } .bayar-info strong .icon { display: inline-block; margin-right: .3rem; }
/* langkah terakhir: tombol Bayar Sekarang lebih lebar, jadi di HP diberi baris sendiri agar tombol tidak saling menimpa */
@media (max-width: 480px) { .form-nav.akhir { flex-wrap: wrap; } .form-nav.akhir .btn-primary { flex: 1 1 100%; order: -1; } .form-nav.akhir .btn { white-space: normal; text-align: center; } }

/* harga coret (promo) */
.harga-coret { color: var(--muted, #8a7a82); font-weight: 700; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #e8403f; margin-right: .3rem; }
.coret-baris { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: 1.05rem; }
.coret-baris + .price { margin-top: .15rem; }
.hemat-chip { display: inline-block; background: #fde7ec; color: #c92f55; font-weight: 800; font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; letter-spacing: .01em; }
.pp-price .harga-coret { font-size: .78rem; display: block; margin: 0 0 .1rem; }
.total-box .harga-coret { font-size: .9rem; margin-right: .5rem; }
.hemat-info { margin: .35rem 0 0; font-size: .86rem; color: #1e7a45; font-weight: 700; text-align: right; }
.inv-harga .harga-coret { font-size: .9rem; }
