/* =========================================
   1. GLOBAL VARIABLES, RESET & FONT
   ========================================= */
:root {
    /* Theme Luxury Black & Gold */
    --black-deep: #0a0a0a;
    --black-soft: #1a1a1a;
    --gold-primary: #D4AF37;   /* Metallic Gold */
    --gold-bright: #F9E27E;    /* Highlight Gold */
    --gold-muted: #996515;     /* Bronze-ish Gold */
    --gold-line: linear-gradient(90deg, transparent, #D4AF37, transparent);
    --cream-light: #f5f5f5;
    --glass-black: rgba(0, 0, 0, 0.75);
    --glass-cream: rgba(255, 255, 255, 0.1);
    
    /* Font Definitions */
    --font-main: 'Cormorant Garamond', serif;
    --font-accent: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;

    /* Shadow & UI Colors */
    --white: #ffffff;
    --gray-light: #f0f0f0;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    --primary-text: #ffffff;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    height: 100%; 
    width: 100%;
    background-color: var(--black-deep); 
    color: var(--cream-light); 
    font-family: var(--font-main); 
    overflow-x: hidden; 
    line-height: 1.5;
}

/* Container HP Umum */
.phone-screen {
    width: 100%; 
    max-width: 450px; 
    margin: 0 auto; 
    min-height: 100vh; 
    background: var(--black-deep); 
    position: relative;
    overflow-y: auto; 
    overflow-x: hidden; 
    display: flex; 
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

section {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* =========================================
   2. ANIMASI UMUM & REVEAL
   ========================================= */
.anim-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-now .anim-item { opacity: 1; transform: translateY(0); }

.vintage-frame, .bride-name, .anim-drop-glow, .anim-fade-stagger {
    opacity: 0; 
    transform: translateY(50px);
    transition: all 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-now .anim-drop-glow { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.animate-now .vintage-frame { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.5s; }
.animate-now .bride-name { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }
.animate-now .anim-fade-stagger { opacity: 1; transform: translateY(0); transition-delay: 1.2s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Container Utama */
.wedding-cover {
    width: 100%;
    height: 100vh;
    background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/v1775012880/Cover_ry6krj.jpg');
    background-size: contain; /* Agar foto tidak terpotong */
    background-repeat: no-repeat;
    background-position: bottom center; /* Foto mepet bawah seperti referensi */
    background-color: #f4f4f2; /* Warna dasar krem lembut */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Nama di atas, Tamu di bawah */
    align-items: center;
    padding: 60px 0 40px 0;
    position: relative;
    overflow: hidden;
}

/* Tipografi Atas */
.content-top {
    z-index: 10;
    text-align: center;
}

.join-us {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.main-names {
    margin: 10px 0;
}

.main-names h1 {
    font-family: 'Playfair Display', serif; /* Font Serif elegan */
    font-size: 5rem; /* Sangat besar */
    line-height: 0.8; /* Tulisan bertumpuk rapat */
    margin: 0;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -2px;
}

.wedding-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 25px;
    letter-spacing: 1px;
}

/* Container Bawah (Kotak Tamu & Tombol) */
.content-bottom {
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* TAMBAHKAN INI: Menarik seluruh bagian bawah ke atas */
    margin-top: auto; 
    margin-bottom: 50px; /* Atur angka ini (misal 120px atau 150px) untuk makin naik */
}

.recipient-card {
    background: #ffffff; 
    padding: 15px 40px;
    min-width: 250px;
    text-align: center;
    /* Efek shadow halus agar terlihat melayang di atas foto */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    border-radius: 4px; /* Sedikit lengkung agar tidak kaku */
}

.dear {
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 5px;
}

.guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* =========================================
   TOMBOL OPEN - OPTIMIZED FOR IPHONE 12
   ========================================= */
.btn-open {
    /* --- JAMU KHUSUS IPHONE (Hardware Acceleration) --- */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
    position: relative; 
    z-index: 10; 

    /* --- STYLE VISUAL --- */
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    
    /* Transisi halus */
    transition: transform 0.3s ease;
}

/* Efek saat diklik */
.btn-open:active {
    /* Tambahkan translate3d lagi agar akselerasi GPU tetap aktif */
    transform: scale(0.95) translate3d(0,0,0);
}

/* =========================================
   OVERLAY GRADASI - SEAMLESS LOOK
   ========================================= */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background: 
        /* GRADASI ATAS: Halus & Menutup Teks */
        linear-gradient(to bottom, 
            #f4f4f2 0%,         
            #f4f4f2 30%,        
            rgba(244, 244, 242, 0.9) 35%, 
            rgba(244, 244, 242, 0.4) 40%, 
            transparent 45%),   
            
        /* GRADASI BAWAH */
        linear-gradient(to top, 
            rgba(255,255,255,1) 0%,   
            rgba(255,255,255,0.95) 23%, 
            transparent 30%);         
    z-index: 1;
    pointer-events: none; /* Biar jempol bisa klik tombol di bawahnya */
}

/* =========================================
   STYLE CLEAN & LEGIBLE: NGUNDUH MANTU (BLACK)
   ========================================= */

.ngunduh-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
    overflow: hidden;
}

/* Background Slider */
.slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 300%;
    height: 100%;
    z-index: 1;
    animation: slideHorizontal 18s infinite ease-in-out;
}

.slider-bg .slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Overlay Layer */
.ngunduh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 2;
    pointer-events: none; 
}

/* Main Content Container */
.ngunduh-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px; 
    padding: 30px 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    /* Kita pastikan container ini tidak mengunci opacity anak-anaknya */
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

/* Judul Lebih Bold */
.section-title-black {
    font-family: var(--font-accent), serif;
    color: #000000 !important;
    font-size: 1rem;
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1);
}

.mempelai-box {
    margin: 20px 0;
}

/* Perbaikan Nama Mempelai */
.bride-name-one-line {
    display: block;
    font-family: var(--font-main), serif; 
    color: #000000 !important;
    font-size: 2rem; 
    font-weight: 700; 
    line-height: 1.1;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

.nickname-bold {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600; 
    font-style: italic;
    margin-bottom: 10px;
}

.ampersand-black-bold {
    display: block;
    color: #000000;
    font-size: 2rem;
    font-weight: 800; 
    margin: 15px 0;
}

/* Perbaikan Keterangan Keluarga */
.role-text-black-bold {
    color: #000000 !important; 
    font-size: 0.9rem;
    font-weight: 700; 
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 1), 
        0 0 4px rgba(255, 255, 255, 1);
}

/* Animation Keyframes */
@keyframes slideHorizontal {
    0%, 25%   { transform: translateX(0); }
    33%, 58%  { transform: translateX(-33.33%); }
    66%, 91%  { transform: translateX(-66.66%); }
    100%      { transform: translateX(0); }
}



/* 3. Pastikan container utama tidak menimpa opacity anak-anaknya */
.ngunduh-content {
    opacity: 1 !important;
    /* Containernya ada, tapi isinya (data-aos) yang kita kontrol */
}
/* =========================================
   STYLE FINAL: CLEANED & FIXED
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat:wght@300;400;700;800&family=Poppins:wght@400;700;800&display=swap');

/* --- FIX: Pindahkan AOS ke luar agar tidak merusak selector lain --- */
[data-aos] {
    opacity: 0 !important;
    transition-property: opacity, transform !important;
}

[data-aos].aos-animate {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important; 
}

.countdown-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px;
    background-color: #ffffff;
}

/* BAGIAN ATAS (KOTAK PUTIH SOLID) */
.countdown-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 50%;
    background-color: #ffffff;
    z-index: 1;
}

/* FOTO BAWAH DENGAN GRADASI */
.countdown-section::after {
    content: "";
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%; 
    height: 60%;
    background: 
        linear-gradient(to bottom, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0.8) 15%, 
            rgba(255,255,255,0) 45%),
        url('https://res.cloudinary.com/dzuf3srww/image/upload/f_auto,q_auto/v1775012864/Countdown_yzamyq.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
}

.countdown-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
    margin-top: -120px; /* Sesuaikan angka ini agar pas di area putih */
}

/* QUOTES */
.quotes-container-v2 {
    margin-top: 40px; 
    padding: 0 15px;
}

.quotes-text-v2 {
    font-family: 'Times New Roman', serif; /* FIX: Nama font diperbaiki */
    font-size: 0.85rem; /* Sedikit diperbesar agar terbaca */
    color: #000000 !important;
    line-height: 1.5;
    font-style: italic;
    font-weight: 700;
}

.quotes-author-v2 {
    margin-top: 2px;
    margin-bottom: 20px;
    /* Tambahkan baris ini */
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: #000000;
    font-weight: 800;
    text-transform: uppercase;
}
/* WADAH TIMER */
.timer-wrapper-v2 {
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    padding: 25px 10px; 
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 5px 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.timer-title-v2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #000000 !important;
    margin-bottom: 20px;
    font-weight: 700;
}

.timer-display-v2 {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.timer-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000 !important;
}

.timer-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #000000 !important;
    font-weight: 700;
    letter-spacing: 2px;
}

/* =========================================
   5. HALAMAN 4: EVENT DETAILS & MAPS (FULL UPDATE)
   ========================================= */
#halaman4 {
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    overflow: hidden; 
    background-color: #000;
}

#halaman4 .bg-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }

#halaman4 .bg-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0; 
    animation: slideShow 15s infinite ease-in-out;
    /* EFEK HITAM PUTIH OTOMATIS */
    filter: grayscale(0%) brightness(1);
}

/* FOTO BARU MISNA */
#halaman4 .bg-slide:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5)), 
                      url('https://res.cloudinary.com/dzuf3srww/image/upload/w_800,f_auto,q_auto/v1775012857/Wedding1_eqkn6d.jpg');
    animation-delay: 0s;
}

#halaman4 .bg-slide:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5)), 
                      url('https://res.cloudinary.com/dzuf3srww/image/upload/w_800,f_auto,q_auto/v1775012864/Wedding3_tdbiwj.jpg');
    animation-delay: 5s;
    /* Tambahkan ini untuk menggeser posisi foto jika yang kepotong bagian atas/bawah atau samping */
    background-position: center center; 
}


/* Slide ke-3 (Menggunakan Foto 1 lagi agar animasi 15 detik tetap mulus) */
#halaman4 .bg-slide:nth-child(3) {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5)), 
                      url('https://res.cloudinary.com/dzuf3srww/image/upload/w_800,f_auto,q_auto/v1775012857/Wedding1_eqkn6d.jpg');
    animation-delay: 10s;
}

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1.15); }
    15% { opacity: 1; }
    33% { opacity: 1; transform: scale(1); }
    45% { opacity: 0; }
    100% { opacity: 0; }
}

/* WADAH PUTIH TRANSPARAN (GLASSMORPHISM) */
.card-frame {
    z-index: 2; 
    width: 85%; 
    max-width: 360px; 
    padding: 60px 20px; 
    text-align: center;
    position: relative; 
    
    /* Background Putih Transparan - Nilai disesuaikan agar muncul efek putih elegan */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(1.5px); 
    -webkit-backdrop-filter: blur(1px);
    
    /* Border Putih */
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 180px 180px 30px 30px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    animation: fadeIn 2s ease;
}

.card-frame::after {
    content: ''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 172px 172px 22px 22px; 
    pointer-events: none;
}

/* WARNA TEKS */
.header-label {
    font-family: 'calibri', serif; font-size: 0.8rem; letter-spacing: 6px;
    text-transform: uppercase; margin-bottom: 20px; 
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.main-date {
    font-family: 'poppins', serif; font-size: 7rem; font-weight: 700;
    line-height: 0.8; margin: 10px 0; 
    color: #ffffff; 
    text-shadow: 3px 3px 15px rgba(0,0,0,0.9);
}

.day {
    font-family: 'times new roman', bold; font-size: 1.5rem; letter-spacing: 4px;
    color: #ffffff; 
    text-transform: uppercase; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8); 
    display: block;
}

.month-year {
    font-family: 'Times New Roman', Times, serif; /* Tambahkan baris ini */
    font-size: 0.9rem; 
    letter-spacing: 4px; 
    color: #ffffff;
    text-transform: uppercase; 
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    display: block; 
    margin-top: 5px;
}


#halaman4 .divider {
    margin: 30px auto; width: 60%; height: 1.5px;
    background: rgba(255, 255, 255, 0.7);
}

.info-box p { 
    color: #ffffff; 
    text-shadow: 1px 1px 10px rgba(0,0,0,0.9); 
    line-height: 1.6; 
}

/* JAM */
.info-box p:nth-of-type(1) {
    font-family: 'Poppins', sans-serif; /* Tambahkan baris ini */
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}


/* MENYEMBUNYIKAN TOMBOL MAPS SESUAI PERMINTAAN */
.btn-maps {
    display: none !important;
}

/* =========================================
   CSS GALLERY: AESTHETIC MASONRY (ORIGINAL COLOR)
   ========================================= */
#halaman5 {
    background-color: #0d0d0d; /* Dasar tetap hitam agar foto lebih "pop out" */
    color: #ffffff;
    padding: 80px 0;
    min-height: 100vh;
}

.gallery-content {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Judul Estetik */
.aesthetic-header {
    text-align: center;
    margin-bottom: 60px;
}

.pre-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: #aaaaaa; 
    text-transform: uppercase;
}

.main-title {
    font-family: 'Playfair Display', serif; 
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 10px 0;
}

.elegant-line {
    width: 60px;
    height: 1.5px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 20px auto;
}

/* KONFIGURASI MASONRY GRID */
.masonry-grid {
    columns: 2; 
    column-gap: 15px; 
}

.masonry-item {
    display: inline-block; 
    width: 100%;
    margin-bottom: 15px; 
    overflow: hidden;
    border-radius: 8px; 
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background: #1a1a1a;
    transition: all 0.4s ease;
}

/* FOTO WARNA ASLI */
.masonry-item img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    
    /* EFEK HITAM PUTIH DIHAPUS SESUAI PERMINTAAN */
    filter: none; 
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Efek Hover (Tetap dipertahankan agar interaktif) */
.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.1);
}

.masonry-item:hover img {
    transform: scale(1.08); /* Sedikit zoom saat disentuh agar estetik */
}

/* Overlay Kilau Tipis */
.masonry-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.03), rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.masonry-item:hover::after {
    transform: translateX(100%);
}
/* LIGHTBOX STYLE */
.lightbox {
    display: none; /* Sembunyi secara default */
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* ============================================================ 
   JUDUL HALALAN & WRAPPING (TAMBAHAN BARU)
   ============================================================ */

/* Judul di dalam container */
.rsvp-header .elegant-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.rsvp-header .subtitle {
    font-size: 0.8rem;
    color: #dddddd;
    margin-bottom: 25px;
    font-style: italic;
}

/* Memastikan Nama dan Pesan Panjang pindah ke bawah (Wrap) */
.message-card h4, 
.message-card p {
    white-space: normal;      /* Mencegah teks ke samping */
    word-wrap: break-word;    /* Memotong kata yang terlalu panjang */
    overflow-wrap: break-word;
    display: block;           /* Memastikan elemen mengambil ruang ke bawah */
}

.message-card h4 {
    line-height: 1.4;
    margin-bottom: 5px;
}

/* ============================================================ 
   KODE ASLI KAMU (TIDAK ADA YANG DIHAPUS)
   ============================================================ */

.rsvp-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item { text-align: center; }

.stat-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.stat-item p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaaaaa;
    margin: 0;
}

/* Container Utama */
.rsvp-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 35px 20px;
    width: 90%;
    max-width: 450px;
    margin: 20px auto;
    color: #fff;
    text-align: center;
}

/* Statistik (Duplikat dari atas tetap dipertahankan sesuai kode aslimu) */
.rsvp-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}
.stat-item span { display: block; font-size: 1.4rem; font-weight: 700; color: #fff; }
.stat-item p { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: #bbb; margin: 0; }

/* Input Form */
.rsvp-form .input-group { margin-bottom: 12px; }
.rsvp-form input, .rsvp-form textarea, .rsvp-form select {
    width: 100%; padding: 12px; background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px;
    color: #fff; font-family: 'Poppins', sans-serif; font-size: 0.9rem;
}
.rsvp-form button {
    width: 100%; padding: 12px; background: #fff; color: #000;
    border: none; border-radius: 10px; font-weight: 700; cursor: pointer;
}

/* WADAH SCROLL PESAN */
.messages-scroll-box {
    width: 100%;
    max-height: 300px; /* Batas scroll */
    overflow-y: auto;
    margin-top: 20px;
    padding-right: 5px;
}

/* Scrollbar Style */
.messages-scroll-box::-webkit-scrollbar { width: 4px; }
.messages-scroll-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 10px; }

/* Card Pesan & Ikon Centang/Silang */
.message-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px; border-radius: 12px; margin-bottom: 10px;
    border-left: 4px solid #fff; text-align: left;
}
.message-card h4 { margin: 0; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.icon-hadir { color: #2ecc71; font-weight: bold; } /* Hijau ✔ */
.icon-tidak { color: #e74c3c; font-weight: bold; } /* Merah ✘ */
.message-card p { margin: 5px 0 #42445A; font-size: 0.85rem; color: #eee; font-style: italic; }

/* ============================================================ 
   COMPACT & ELEGANT: HALAMAN 7 - WEDDING GIFT
   ============================================================ */

#halaman7 {
    padding: 40px 20px !important; /* Kurangi padding atas bawah */
    background: #ffffff !important;
    min-height: auto !important; /* Hapus paksaan tinggi layar penuh */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#halaman7 .phone-screen {
    width: 100%;
    max-width: 380px; /* Perkecil sedikit lebar maksimal */
    margin: 0 auto;
    text-align: center;
}

/* Header Ringkas */
#halaman7 .header {/* --- 5. NAMA PEMILIK REKENING --- */
#halaman7 .acc-name {
    font-family: 'Poppins', sans-serif !important; /* Tambahkan ini */
    color: #888888 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important; /* Agar terlihat lebih formal/rapi */
    letter-spacing: 2px !important; /* Memberi kesan elegan dan luas */
    margin-bottom: 20px !important;
}

    margin-bottom: 25px; /* Jarak lebih rapat */
}

#halaman7 .subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    color: #999 !important;
    margin-bottom: 5px;
}

#halaman7 .title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; /* Perkecil ukuran font judul */
    color: #1a1a1a !important;
    margin-bottom: 10px;
}

#halaman7 .desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #666 !important;
    max-width: 280px;
    margin: 0 auto;
}

/* Kartu Ringkas */
.gift-card {
    background: #ffffff !important;
    border: 1px solid #f2f2f2 !important;
    border-radius: 20px !important; /* Sedikit lebih kecil radiusnya */
    padding: 25px 20px !important; /* Kurangi padding dalam kartu */
    margin-bottom: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

/* Logo Bank Kecil */
.bank-logo {
    height: 30px !important; /* Perkecil logo */
    margin-bottom: 15px !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Info Rekening Padat */
.acc-num {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: #1a1a1a !important;
    margin-bottom: 3px !important;
}

.acc-name {
    font-size: 1rem !important;
    color: #aaa !important;
    margin-bottom: 15px !important;
}

/* Tombol Salin Minimalis */
.btn-copy {
    padding: 8px 25px !important; /* Lebih ramping */
    font-size: 0.75rem !important;
    background: #1a1a1a !important;
    border-radius: 50px !important;
}

/* Footer Rapat */
#halaman7 .footer {
    margin-top: 30px; /* Kurangi jarak footer */
}

#halaman7 .thanks {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a !important;
    margin-bottom: 5px;
}

#halaman7 .names {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #bbb !important;
}

/* ============================================================ 
   BRUTE FORCE FIX: TOTAL WHITE & COMPACT
   ============================================================ */

/* 1. PAKSA SEMUA ELEMEN PEMBUNGKUS JADI PUTIH */
#halaman7, 
#halaman7 .phone-screen, 
#halaman7 .phone-screen * {
    background-color: transparent; /* Biarkan nurut ke parent */
}

#halaman7 {
    background: #ffffff !important; /* Paksa latar utama putih */
    padding: 30px 20px !important; /* Perkecil padding agar tidak panjang */
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#halaman7 .phone-screen {
    background: #ffffff !important;
    box-shadow: none !important; /* HAPUS BAYANGAN HITAM DI PINGGIR */
    border: none !important;
    width: 100% !important;
    max-width: 380px !important;
}

/* 2. PAKSA TEKS JADI HITAM (BIAR GAK TENGGELAM) */
#halaman7 .title, 
#halaman7 .subtitle, 
#halaman7 .desc, 
#halaman7 .thanks, 
#halaman7 .names {
    color: #1a1a1a !important; 
    text-shadow: none !important;
}

#halaman7 .title {
    font-size: 2.2rem !important;
    margin-bottom: 10px !important;
}

#halaman7 .desc {
    font-size: 0.85rem !important;
    margin-bottom: 25px !important;
}

/* 3. KARTU REKENING (DIBUAT RINGKAS) */
#halaman7 .gift-card {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 20px !important;
    padding: 25px 15px !important; /* Padding lebih kecil agar pendek */
    margin-bottom: 15px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05) !important;
    display: block !important;
}

/* --- 1. WADAH HITAM UNTUK LOGO --- */
#halaman7 .logo-wrapper {
    background: #1a1a1a !important; /* Membuat kotak hitam agar logo putih terlihat */
    width: fit-content;
    min-width: 120px;
    margin: 0 auto 15px !important;
    padding: 10px 15px !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 2. LOGO DI DALAM WADAH --- */
#halaman7 .bank-logo {
    height: 25px !important; /* Ukuran yang pas di dalam kotak */
    width: auto !important;
    display: block !important;
    filter: none !important; /* Jangan di-invert karena logo aslinya sudah putih */
    -webkit-filter: none !important;
    opacity: 1 !important;
}


/* 5. NOMOR REKENING */
#halaman7 .acc-num {
    font-family: 'Poppins', sans-serif !important; /* Tambahkan ini */
    color: #1a1a1a !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important; /* Agar angka terlihat lebih tegas dan premium */
    margin-bottom: 5px !important;
    letter-spacing: 1px !important; /* Memberi sedikit jarak antar angka agar mudah dibaca */
}

/* --- 5. NAMA PEMILIK REKENING --- */
#halaman7 .acc-name {
    font-family: 'Poppins', sans-serif !important; /* Tambahkan ini */
    color: #888888 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important; /* Agar terlihat lebih formal/rapi */
    letter-spacing: 2px !important; /* Memberi kesan elegan dan luas */
    margin-bottom: 20px !important;
}


/* 6. TOMBOL SALIN */
#halaman7 .btn-copy {
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    font-size: 0.75rem !important;
    border-radius: 50px !important;
    margin-top: 10px !important;
}

/* 7. FOOTER */
#halaman7 .footer {
    margin-top: 20px !important;
}


/* ============================================================ 
   HALAMAN 8: BRANDING HERO (WHITE & BLACK VERSION)
   ============================================================ */
#halaman8 { 
    background-color: #ffffff !important; /* Paksa Putih */
    font-family: 'Montserrat', sans-serif; 
    min-height: 100vh;
}

.hero-section { 
    height: 100vh; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
    overflow: hidden; 
    background-color: #ffffff !important; /* Paksa Putih */
}

/* Background Slider - Dibuat Grayscale & Faded agar teks hitam menonjol */
.bg-slider-hero { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 700%; 
    height: 100%; 
    display: flex; 
    z-index: 0; 
    animation: slideHeroBg 25s infinite cubic-bezier(0.4, 0, 0.2, 1); 
    pointer-events: none; 
    opacity: 0.5!important; /* Dibuat sangat tipis */
}

.bg-slider-hero .bg-slide {
    flex: 0 0 14.28%; 
    width: 14.28%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(0%) !important; /* Menghilangkan warna agar selaras */
}

@keyframes slideHeroBg {
    0%, 12%   { transform: translateX(0%); }
    14%, 26%  { transform: translateX(-14.28%); }
    28%, 40%  { transform: translateX(-28.56%); }
    42%, 54%  { transform: translateX(-42.84%); }
    56%, 68%  { transform: translateX(-57.12%); }
    70%, 82%  { transform: translateX(-71.40%); }
    84%, 96%  { transform: translateX(-85.68%); }
    98%, 100% { transform: translateX(0%); }
}

/* Overlay & Layering - Diubah dari gelap ke gradasi putih transparan */
.hero-section .overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important; 
    z-index: 1; 
    pointer-events: none; 
}

.hero-section .content-wrapper { 
    position: relative; 
    z-index: 10; 
    text-align: center; 
    color: #1a1a1a !important; /* Ganti dari cream ke Hitam */
    max-width: 450px; 
    padding: 20px; 
    pointer-events: auto; 
}

/* --- TAMBAHKAN INI DI BAWAH KODE KAMU TADI --- */
#halaman9 .slide-1 { background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/w_1200,f_auto,q_auto/v1775012880/Cover_ry6krj.jpg'); }
#halaman9 .slide-2 { background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/w_1200,f_auto,q_auto/v1775012864/Wedding3_tdbiwj.jpg'); }
#halaman9 .slide-3 { background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/w_1200,f_auto,q_auto/v1775012872/Wedding4_w97zqm.jpg'); }
#halaman9 .slide-4 { background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/w_1200,f_auto,q_auto/v1775012880/Cover_ry6krj.jpg'); }
#halaman9 .slide-5 { background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/w_1200,f_auto,q_auto/v1775012864/Wedding3_tdbiwj.jpg'); }
#halaman9 .slide-6 { background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/w_1200,f_auto,q_auto/v1775012872/Wedding4_w97zqm.jpg'); }
#halaman9 .slide-7 { background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/w_1200,f_auto,q_auto/v1775012880/Cover_ry6krj.jpg'); }

/* --- PAKSA WARNA LOGO SVG JADI HITAM --- */
#halaman9 .logo-box svg path {
    stroke: #1a1a1a !important;
}

/* Logo & Teks Utama */
.logo-box { 
    width: 90px; 
    margin: 0 auto 15px; 
    /* Filter disesuaikan agar tidak glow emas */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1)); 
}
.logo-box img { 
    width: 100%; 
    height: auto; 
    display: block; 
    filter: grayscale(1) brightness(0) !important; /* Paksa logo jadi hitam */
}

.brand-name { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.8rem; 
    letter-spacing: 4px; 
    margin-bottom: 5px; 
    font-weight: 700; 
    color: #1a1a1a !important; /* Ganti dari gold ke Hitam */
}

.brand-sub { 
    font-family: 'Poppins', sans-serif; /* Pastikan pakai font yang bersih */
    font-size: 0.65rem; /* Sedikit lebih besar agar terbaca */
    font-weight: 700; /* Dibuat TEBAL (Bold) agar tegas */
    letter-spacing: 6px; /* Spasi antar huruf lebih lebar agar mewah */
    text-transform: uppercase; 
    margin-bottom: 25px; 
    color: #1a1a1a !important; /* Ganti dari abu-abu ke HITAM PEKAT */
    display: block; /* Memastikan dia mengambil ruang sendiri */
}


.description { 
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem; /* Sedikit lebih besar agar terbaca jelas */
    line-height: 1.8; 
    font-weight: 600; /* Dibuat SEMI-BOLD agar sangat TEGAS */
    margin: 0 auto 30px; 
    color: #1a1a1a !important; /* Hitam pekat, bukan abu-abu */
    opacity: 1 !important; /* Hilangkan transparansi agar muncul 100% */
    font-style: italic; /* TETAP MIRING sesuai keinginanmu */
    max-width: 350px; 
    text-align: center;
}

/* --- Tombol Konsultasi (Black & White Edition) --- */
.cta-button {
    display: inline-block;
    padding: 14px 35px;
    /* Ganti gradasi emas menjadi Hitam Pekat */
    background: #1a1a1a !important;
    /* Ganti teks hitam ke Putih Bersih */
    color: #ffffff !important;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    /* Sedikit lebih besar agar mudah dibaca */
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
    margin-bottom: 30px;
    /* Shadow dibuat lebih halus agar terlihat premium */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.cta-button:hover {
    background: #333333 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2) !important;
}

.cta-button:active {
    transform: scale(0.95);
}

/* ============================================================
   VOUCHER (RECOLORED TO BLACK & WHITE)
   ============================================================ */
.voucher-container {
    display: inline-block;
    /* Mengubah emas transparan menjadi putih bersih */
    background: #ffffff !important;
    backdrop-filter: blur(10px);
    /* Mengubah border emas menjadi hitam dashed */
    border: 1px dashed #1a1a1a !important;
    padding: 20px 25px 15px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    width: 85%;
    max-width: 320px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

.voucher-badge {
    /* Mengubah background gold menjadi hitam pekat */
    background: #1a1a1a !important;
    /* Mengubah teks hitam menjadi putih */
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-transform: uppercase;
}

.voucher-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 5px;
    color: #666666 !important;
    /* Warna abu-abu gelap */
    opacity: 0.9;
}

.voucher-code {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    /* Mengubah gold-bright menjadi hitam pekat */
    color: #1a1a1a !important;
    letter-spacing: 2px;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.copy-hint {
    font-size: 0.8rem;
    display: block;
    color: #1a1a1a !important;
    opacity: 0.6;
    font-style: italic;
}

/* Social Links - Tetap ada, hanya ganti warna */
.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    /* Mengubah warna link dari gold ke hitam */
    color: #1a1a1a !important;
    font-size: 1.4rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: #555555 !important;
    transform: translateY(-3px);
}
/* ============================================================
   11. UI ELEMENTS (TOAST & HELPERS) - BLACK & WHITE
   ============================================================ */
#toast {
    visibility: hidden; 
    min-width: 180px; 
    /* Ganti gradasi emas menjadi Hitam Pekat */
    background: #1a1a1a !important;
    /* Ganti teks hitam menjadi Putih */
    color: #ffffff !important; 
    text-align: center; 
    border-radius: 50px; 
    padding: 12px 25px;
    position: fixed; 
    z-index: 10000; 
    bottom: 50px; 
    left: 50%; 
    transform: translateX(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem; 
    font-weight: 600; 
    /* Shadow dibuat lebih halus (soft shadow) */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    pointer-events: none;
    letter-spacing: 0.5px;
}

#toast.show { 
    visibility: visible; 
    animation: slideInUp 0.4s forwards, fadeOut 0.4s 1.6s forwards; 
}

@keyframes slideInUp { 
    from { bottom: 20px; opacity: 0; } 
    to { bottom: 50px; opacity: 1; } 
}

@keyframes fadeOut { 
    from { opacity: 1; } 
    to { opacity: 0; } 
}

/* Touch Optimization (Tetap Sama, Tidak Ada Yang Dihapus) */
.cta-button, .social-links a, .voucher-container, .btn-copy {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease;
}

.cta-button:active, .btn-copy:active {
    transform: scale(0.95); /* Efek tekan agar lebih interaktif */
}


/* =========================================
   PRELOADER RUANG TEMU - CSS
   ========================================= */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #ffffff; /* Layar Putih Bersih */
    display: flex; justify-content: center; align-items: center;
    z-index: 99999; /* Pastikan di atas segalanya */
    transition: opacity 1s ease, visibility 1s ease;
    flex-direction: column;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content-wrapper {
    text-align: center;
    animation: pulsePreloader 2s infinite ease-in-out;
}

/* Kotak Logo */
.logo-box {
    width: 80px; /* Atur ukuran logo */
    height: auto;
    margin-bottom: 25px;
    margin-left: auto; margin-right: auto;
}

/* SVG Logo Cyan (Mirip di Gambar) */
.preloader-logo-svg {
    width: 100%; height: 100%;
}

/* Teks Logo */
.preloader-text {
    margin-bottom: 30px;
}

.preloader-text h1.ruang-temu {
    font-family: 'Montserrat', sans-serif; /* Font elegan & modern */
    font-size: 2.8rem;
    font-weight: 700;
    color: #333333; /* Warna gelap agar kontras dengan putih */
    letter-spacing: 5px; /* Beri jarak antar huruf */
    text-transform: uppercase;
    margin: 0;
}

.preloader-text p.tagline {
    font-family: 'Lora', serif; /* Font serif yang lebih lembut */
    font-size: 1rem;
    font-weight: 300;
    color: #888888;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Garis Loading */
.preloader-loading-bar {
    width: 120px;
    height: 3px;
    background: #f0f0f0;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.preloader-loading-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%; height: 100%;
    background: #00ffff; /* Warna Cyan (Biru Tosca) */
    animation: preloaderLoadingBar 1.8s infinite;
}

/* --- KEYFRAMES --- */
@keyframes pulsePreloader {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes preloaderLoadingBar {
    100% { left: 100%; }
}
