/* [DIHAPUS] Trik "body{visibility:visible}" di baris pertama file ini SUDAH TIDAK DIPAKAI LAGI --
   ternyata inilah sumber bug "isi undangan sekilas kelihatan tanpa gaya" di koneksi lambat: browser
   bisa menerapkan baris PALING ATAS file CSS eksternal ini sebelum SISA file (ukuran font, dst) selesai
   diproses. Kunci FOUC sekarang HANYA dibuka lewat event "load" pada tag <link> stylesheet ini di
   functions.php (digitaluxs_render_template_by_slug) -- lihat komentar di sana. */

/* Font Google dipindah ke <link> lewat functions.php (lebih cepat, lihat digitaluxs_render_template_by_slug) */

.pastel-undangan {
    --pastel-blush: #FDF3F1;
    --pastel-rose-soft: #F6DFE0;
    --pastel-plum: #5B3A45;
    --pastel-rose: #D97A98;
    --pastel-rose-deep: #B4485F;
    --pastel-line: #F0C9CE;

    font-family: 'Quicksand', sans-serif;
    color: var(--pastel-plum);
    background: var(--pastel-blush);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}
.pastel-undangan * { box-sizing: border-box; }

.pastel-eyebrow {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--pastel-rose);
    margin-bottom: 12px;
}

.pastel-amp {
    font-family: 'Parisienne', cursive;
    color: var(--pastel-rose);
    font-size: 1.3em;
    margin: 0 8px;
}

.pastel-divider {
    display: block;
    text-align: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.pastel-bunga-atas { display: block; font-size: 28px; margin-bottom: 10px; }

/* Kelopak jatuh (signature element) */
.pastel-kelopak-wrap {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
}
.pastel-kelopak {
    position: absolute;
    top: -30px;
    animation-name: pastel-jatuh;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
    opacity: 0.9;
}
@keyframes pastel-jatuh {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.9; }
    100% { transform: translateY(100vh) rotate(340deg); opacity: 0; }
}

/* ===================== SAMPUL ===================== */
.pastel-cover {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 15%, rgba(217, 122, 152, 0.15), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(240, 201, 206, 0.35), transparent 50%),
        var(--pastel-blush);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.pastel-cover.pastel-cover-tertutup {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* [BARU] Lapisan 1: hitam transparan menutupi seluruh foto cover */
.pastel-cover-lapis-hitam {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}
/* [BARU] Lapisan 2: kotak putih transparan, tinggi penuh mengikuti tinggi sampul, lebar mengikuti kolom konten */
.pastel-cover-lapis-putih {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    max-width: 90%;
    background: rgba(255,255,255,0.78);
    z-index: 2;
}
.pastel-cover-frame {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 50px 34px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(217, 122, 152, 0.18);
    max-width: 380px;
    margin: 20px;
}
.pastel-cover-names {
    font-family: 'Parisienne', cursive;
    font-weight: 400;
    font-size: 40px;
    margin: 0 0 18px 0;
    line-height: 1.3;
}
/* [BARU] Kartu hitung mundur di sampul — latar terang solid supaya kebaca di atas foto apapun */
.pastel-cover-countdown {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 22px 0;
}
.pastel-cover-cd-box { text-align: center; min-width: 42px; }
.pastel-cover-cd-angka { display: block; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 21px; color: var(--pastel-rose-deep); line-height: 1.2; }
.pastel-cover-cd-label { display: block; font-family: 'Quicksand', sans-serif; font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--pastel-plum); opacity: 0.65; }

/* [BARU] "Kepada Yth." di sampul — kontras sudah ditangani panel putih di belakangnya, cukup teks biasa */
.pastel-cover-tamu-kartu {
    margin: 0 0 24px 0;
}
.pastel-cover-tamu-label { margin: 0 0 10px 0; font-size: 12px; color: var(--pastel-plum); opacity: 0.75; }
.pastel-cover-tamu-nama-kotak {
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    min-height: 28px;
    margin: 0 0 10px 0;
    font-family: 'Parisienne', cursive;
    font-weight: 400;
    font-size: 19px;
    color: var(--pastel-rose-deep);
    box-shadow: 0 6px 16px rgba(217,122,152,0.16);
}
.pastel-cover-tamu-catatan { margin: 0; font-size: 10px; font-style: italic; color: var(--pastel-plum); opacity: 0.55; }

.pastel-btn-buka {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: var(--pastel-rose);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(217, 122, 152, 0.35);
    transition: transform 0.2s, background 0.2s;
}
.pastel-btn-buka:hover { background: var(--pastel-rose-deep); transform: translateY(-2px); }

/* ===================== ISI ===================== */
.pastel-isi { max-width: 640px; margin: 0 auto; padding: 0 24px; }

.pastel-hero { text-align: center; padding: 45px 0 25px 0; }
.pastel-hero-names {
    font-family: 'Parisienne', cursive;
    font-weight: 400;
    font-size: 48px;
    margin: 0 0 12px 0;
    line-height: 1.35;
}
.pastel-hero-tanggal {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--pastel-rose-deep);
}

.pastel-countdown { display: flex; justify-content: center; gap: 12px; padding-bottom: 30px; }
.pastel-cd-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(217, 122, 152, 0.14);
    padding: 14px 12px;
    min-width: 66px;
    text-align: center;
}
.pastel-cd-angka {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--pastel-rose-deep);
}
.pastel-cd-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.65;
}

.pastel-section { text-align: center; padding: 28px 0; border-top: 1px dashed var(--pastel-line); }
.pastel-judul {
    font-family: 'Parisienne', cursive;
    font-weight: 400;
    font-size: 30px;
    margin: 0 0 20px 0;
    color: var(--pastel-rose-deep);
}
.pastel-cerita-teks { font-size: 15px; opacity: 0.9; max-width: 480px; margin: 0 auto; }
.pastel-pengantar-teks { font-family: 'Quicksand', sans-serif; font-weight: 500; font-size: 15px; line-height: 1.8; opacity: 0.85; max-width: 480px; margin: 0 auto; }
.pastel-kutipan-ayat-teks { font-family: 'Quicksand', sans-serif; font-weight: 500; font-style: italic; font-size: 14px; line-height: 1.9; opacity: 0.8; max-width: 460px; margin: 0 auto; color: var(--pastel-rose-deep); }

.pastel-lokasi-nama { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.pastel-btn-outline {
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--pastel-rose-deep);
    border: 1.5px solid var(--pastel-rose);
    border-radius: 30px;
    padding: 11px 26px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.pastel-btn-outline:hover { background: var(--pastel-rose); color: #fff; }

.pastel-galeri-grid { column-count: 2; column-gap: 10px; }
.pastel-galeri-item { break-inside: avoid; margin-bottom: 10px; border-radius: 14px; overflow: hidden; }
.pastel-galeri-item img { width: 100%; height: auto; display: block; transition: transform 0.4s; }
.pastel-galeri-item:hover img { transform: scale(1.05); }

.pastel-form-rsvp { max-width: 380px; margin: 0 auto; text-align: left; }
.pastel-form-group { margin-bottom: 16px; }
.pastel-form-group label {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--pastel-plum);
}
.pastel-form-group input,
.pastel-form-group select,
.pastel-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--pastel-line);
    border-radius: 12px;
    background: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    color: var(--pastel-plum);
}
.pastel-form-group input:focus,
.pastel-form-group select:focus,
.pastel-form-group textarea:focus {
    outline: none;
    border-color: var(--pastel-rose);
}
.pastel-btn-submit { width: 100%; margin-top: 6px; }
.pastel-rsvp-pesan { display: none; text-align: center; font-size: 13px; margin-top: 14px; font-weight: 600; }

.pastel-penutup { text-align: center; padding: 30px 0 45px 0; border-top: 1px dashed var(--pastel-line); }
.pastel-penutup-teks { max-width: 420px; margin: 0 auto 20px auto; font-size: 15px; opacity: 0.85; }
.pastel-penutup-nama { font-family: 'Parisienne', cursive; font-size: 26px; color: var(--pastel-rose-deep); }

.pastel-musik-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 6px 16px rgba(217, 122, 152, 0.25);
    font-size: 18px;
    cursor: pointer;
    animation: pastel-putar 4s linear infinite paused;
}
.pastel-musik-toggle.pastel-musik-aktif { animation-play-state: running; }

@keyframes pastel-putar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* [BARU] Foto Unggulan */
.pastel-foto-unggulan { padding: 0 24px 28px 24px; max-width: 640px; margin: 0 auto; }
.pastel-foto-unggulan img { width: 100%; border-radius: 20px; display: block; box-shadow: 0 15px 35px rgba(217,122,152,0.25); }

/* [BARU] Section Mempelai */
.pastel-mempelai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: center; }
.pastel-mempelai-foto { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(217,122,152,0.25); margin: 0 auto 14px auto; display: block; }
.pastel-mempelai-nama { font-family: 'Parisienne', cursive; font-weight: 400; font-size: 24px; margin: 0 0 4px 0; color: var(--pastel-rose-deep); }
.pastel-mempelai-lengkap { font-size: 13px; opacity: 0.75; margin: 0 0 10px 0; }
.pastel-mempelai-ortu { font-size: 12px; opacity: 0.8; line-height: 1.6; }

/* [BARU] Blok Akad / Resepsi / Pengajian, dipisah garis tipis */
.pastel-acara-blok { margin-bottom: 26px; }
.pastel-acara-blok:last-of-type { margin-bottom: 0; }
.pastel-acara-label { font-family: 'Quicksand', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pastel-rose); margin-bottom: 8px; }
.pastel-acara-waktu { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pastel-acara-pemisah { border: none; border-top: 1px solid rgba(217,122,152,0.25); margin: 22px 0; }

/* [BARU] Kado Digital — daftar per baris (bank | nomor | pemilik + tombol salin), bukan kotak/grid */
.pastel-kado-list { text-align: left; }
.pastel-kado-baris {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(217,122,152,0.18);
}
.pastel-kado-baris:last-child { border-bottom: none; }
.pastel-kado-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-width: 0; }
.pastel-kado-bank { font-family: 'Parisienne', cursive; font-weight: 400; font-size: 19px; color: var(--pastel-rose-deep); }
.pastel-kado-nomor { font-size: 14px; font-weight: 700; letter-spacing: 0.3px; }
.pastel-kado-pemilik { font-size: 12px; opacity: 0.65; }
.pastel-kado-salin { font-size: 11px; padding: 8px 16px; flex-shrink: 0; }

/* [BARU] Riwayat Ucapan & Doa — daftar scrollable, kira-kira 7 baris terlihat sebelum harus discroll */
.pastel-riwayat-scroll {
    max-height: 480px;
    overflow-y: auto;
    text-align: left;
    padding-right: 6px;
}
.pastel-riwayat-baris { padding: 14px 4px; border-bottom: 1px solid rgba(217,122,152,0.18); }
.pastel-riwayat-baris:last-child { border-bottom: none; }
.pastel-riwayat-atas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pastel-riwayat-nama { font-size: 14px; color: var(--pastel-plum); }
.pastel-riwayat-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.pastel-riwayat-hadir { background: rgba(34,197,94,0.15); color: #15803d; }
.pastel-riwayat-ragu { background: rgba(245,158,11,0.15); color: #b45309; }
.pastel-riwayat-tidak { background: rgba(239,68,68,0.12); color: #b91c1c; }
.pastel-riwayat-ucapan { margin: 0; font-size: 13px; color: var(--pastel-plum); opacity: 0.85; line-height: 1.6; }

@media (max-width: 480px) {
    .pastel-cover-names { font-size: 32px; }
    .pastel-hero-names { font-size: 38px; }
    .pastel-cd-box { min-width: 56px; padding: 10px 6px; }
    .pastel-mempelai-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .pastel-cover, .pastel-galeri-item img, .pastel-musik-toggle, .pastel-kelopak { transition: none; animation: none; }
}