* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f6f0; /* Warna netral soft khas pernikahan */
    color: #4a4a4a;
    text-align: center;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
}

/* Cover Overlay */
.cover-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../assets/images/cover-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.cover-content h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin: 15px 0;
}

.guest-name {
    color: #f1c40f;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

#open-btn {
    padding: 12px 28px;
    background-color: #d4af37;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

#open-btn:hover {
    background-color: #b38f28;
}

/* Main Layout */
.hidden {
    display: none !important;
}

section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.couple-card img, .gallery-grid img {
    width: 100%;
    max-width: 250px;
    border-radius: 15px;
    margin: 15px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Floating Music Button */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #d4af37;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
}
/* 1. Tambahkan/Ganti gaya untuk Cover & Animasi Zoom */
.cover-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../assets/images/cover-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    /* Transisi untuk fade out & zoom */
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, visibility 0.8s;
}

/* Class tambahan saat tombol diklik (Zoom In & Fade Out) */
.cover-section.zoom-out {
    opacity: 0;
    transform: scale(1.5); /* Efek zoom masuk/membesar */
    pointer-events: none;
}

/* Keyframes Animasi Masuk untuk Konten Utama */
@keyframes zoomInContent {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.main-zoom-in {
    animation: zoomInContent 1s ease-out forwards;
}
/* Styling Cover Utama */
.cover-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    
    /* Memasang gambar latar + efek lapisan hitam transparan */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/backgroundcover.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Agar gambar menyesuaikan ukuran layar tanpa gepeng */
    
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, visibility 0.8s;
}

/* Memastikan Konten Teks & Tombol Selalu di Atas Background */
.cover-content {
    position: relative;
    z-index: 10;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

/* Mengatur Foto Profil Mempelai di Cover Agar Tidak Meluap/Kekecilan */
.cover-photo-wrapper {
    margin-bottom: 15px;
}

.cover-photo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Tampilan Tanggal Acara di Atas Waktu */
.event-date-display {
    font-weight: 600;
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Styling Container Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.countdown-container div {
    background: #ffffff;
    border: 1px solid #e0d8c3;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.countdown-container span {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
}

.countdown-container small {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
}

/* ==========================================
   HERO SECTION (PAWIWAHAN)
   ========================================== */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 650px; /* Membatasi lebar teks agar tidak terlalu memanjang di layar besar */
    margin: 0 auto;
}

/* Pengaturan Gambar Ukiran */
.hero-ornament {
    width: 150px; /* Sesuaikan ukuran gambar ukiran di sini */
    height: auto;
    margin-bottom: 15px; /* Jarak antara gambar dan teks Pawiwahan */
}

/* Pengaturan Teks Pawiwahan */
.pawiwahan-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 4px; /* Memberi jarak antar huruf agar elegan */
    color: #d4af37; /* Warna aksen emas */
    margin-bottom: 25px; /* Jarak ke teks pengantar */
}

/* Pengaturan Teks Pengantar (Rata Kanan-Kiri) */
.hero-intro {
    text-align: justify;
    text-align-last: center; /* Trik agar baris paling bawah tetap rapi di tengah */
    line-height: 1.8;
    color: #555555;
    margin-bottom: 40px; /* Spasi ekstra lega sebelum nama pengantin */
}

/* Pengaturan Nama Pengantin */
.hero-names {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px; /* Jarak antara nama dan tanggal */
}

/* Pengaturan Tanggal */
.hero-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #666666;
    letter-spacing: 1px;
}

/* ==========================================
   PRELOADER / LOADING SCREEN STYLES
   ========================================== */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f8f6f0; /* Warna background soft */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Berada paling atas menutupi segalanya */
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    text-align: center;
    max-width: 400px;
    width: 85%;
}

/* Frame Foto Melengkung & Elegan */
.loader-photo-frame {
    width: 200px;
    height: 240px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background-color: #eee;
}

.loader-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.1s ease; /* Transisi pergantian foto yang cepat */
}

.loader-subtitle {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

/* Progress Bar Container */
.progress-bar-container {
    position: relative;
    width: 100%;
    height: 20px;
    background-color: #e2dac9;
    border: 2px solid #d4af37;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #b38f28);
    transition: width 0.05s linear;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #ffffff;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.loader-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.loader-footer {
    font-style: italic;
    color: #95a5a6;
    font-size: 0.8rem;
}

/* Class saat loading selesai untuk fade out */
.loader-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================
   MASONRY / ASYMMETRIC DYNAMIC GALLERY
   ========================================== */
.gallery {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-subtitle {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    grid-auto-flow: dense; /* Mengisi celah secara cerdas */
    gap: 15px;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Class khusus untuk foto portrait memanjang ke bawah */
.gallery-item.item-tall {
    grid-row: span 2;
}

/* Responsif untuk Smartphone */
@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 10px;
    }
}

/* ==========================================
   STYLING SLOKA VEDA & TERJEMAHAN GALERI
   ========================================== */
.sloka-container {
    max-width: 600px;
    margin: 0 auto 30px auto; /* Memberikan jarak ke grid foto di bawahnya */
    padding: 0 15px;
    text-align: center;
}

/* Teks Sloka (Sanskerta) */
.sloka-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px; /* Spasi sangat dekat ke terjemahan */
    line-height: 1.3;
}

/* Teks Terjemahan (Italic & Estetis) */
.sloka-translation {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 6px; /* Spasi sangat dekat ke sumber sloka */
    line-height: 1.4;
}

/* Sumber Sloka (Ukuran Lebih Kecil) */
.sloka-source {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #d4af37; /* Warna aksen emas soft */
    text-transform: uppercase;
}

/* ==========================================
   STYLING SECTION MEMPELAI (FULL PHOTO CARD)
   ========================================== */
.couples {
    padding: 60px 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.couples h2 {
    margin-bottom: 30px;
}

.couples-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 25px;
    width: 100%;
    margin: 0 auto;
}

/* Card Kartu Foto Full */
.couple-card-full {
    position: relative;
    flex: 1;
    max-width: 380px;
    height: 480px; /* Tinggi kartu yang ideal untuk foto portrait */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.couple-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Foto Memenuhi Seluruh Kartu */
.couple-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay Transparan Gelap di Bawah Kartu Agar Teks Terbaca Jelas */
.couple-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* Gradasi hanya di area bawah foto */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    pointer-events: none;
}

/* Teks Keterangan di Pojok Kiri Bawah */
.couple-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    text-align: left; /* Teks Rata Kiri */
    z-index: 2;
    color: #ffffff;
}

.couple-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.couple-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem; /* Ukuran font lebih kecil dari nama */
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Penyesuaian Responsif untuk Layar HP */
@media (max-width: 650px) {
    .couples-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .couple-card-full {
        width: 100%;
        max-width: 100%;
        height: 420px; /* Menyesuaikan tinggi di layar HP */
    }
}

/* ==========================================
   LIGHTBOX MODAL POPUP GALLERY (FINAL)
   ========================================== */
.gallery-item img {
    cursor: pointer;
}

/* Latar Belakang Hitam Modal */
.gallery-modal {
    display: none !important; /* Paksa sembunyi saat awal */
    position: fixed;
    z-index: 999999; /* Paksa di lapisan paling atas */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center; /* Kunci tengah horizontal */
    align-items: center; /* Kunci tengah vertikal */
}

/* Modal Saat Aktif (Pop up) */
.gallery-modal.show {
    display: flex !important; /* Paksa jadi flexbox agar gambar di tengah */
    opacity: 1 !important; /* Pastikan tidak transparan */
}

/* Gambar di Dalam Pop Up */
.modal-content {
    max-width: 90vw;
    max-height: 85vh;
    margin: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

/* Tombol Silang (X) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000000;
}

/* Ikon Download Modal */
.download-modal {
    position: absolute;
    top: 25px; /* Disesuaikan agar sejajar vertikal dengan X */
    right: 80px; /* Memberikan jarak agar berada di sebelah kiri X */
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1000000;
    text-decoration: none; /* Menghilangkan garis bawah bawaan link */
    transition: color 0.2s;
}

.download-modal:hover {
    color: #d4af37;
}

/* --- Pengaturan Jarak Antar Acara --- */
.event-detail {
    margin-bottom: 50px; /* Memberikan jarak yang lega antar acara */
    padding-bottom: 30px;
    border-bottom: 1px dashed #d4af37; /* Garis pemisah tipis berwarna emas/abu */
}

/* Hilangkan garis pemisah di acara paling bawah */
.event-detail:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* --- Container Tombol Maps & Kalender --- */
.event-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Jarak antara tombol Maps dan Kalender */
    margin-top: 25px; /* Jarak dari countdown ke tombol */
    flex-wrap: wrap; /* Otomatis turun ke baris baru jika di HP layarnya sempit */
}

/* --- Gaya Dasar Tombol --- */
.btn-maps, .btn-calendar {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Jarak antara ikon dan teks */
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-maps:active, .btn-calendar:active {
    transform: scale(0.95); /* Efek memantul saat diklik */
}

/* Warna Tombol Google Maps */
.btn-maps {
    background-color: #555555;
    color: #ffffff;
}
.btn-maps:hover {
    background-color: #333333;
}

/* Warna Tombol Google Calendar (Biru Khas Google) */
.btn-calendar {
    background-color: #d4af37;
    color: #ffffff;
}
.btn-calendar:hover {
    background-color: #eec232;
}

/* --- Pengaturan Kontainer Gift --- */
.gift-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Otomatis susun ke bawah jika di HP */
    margin-top: 30px;
}

/* --- Tampilan Kartu Bank --- */
.bank-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 25px 20px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.bank-card:hover {
    transform: translateY(-5px); /* Efek melayang saat di-hover */
}

.bank-card h4 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #333333;
}

.rek-number {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 10px 0;
    color: #d4af37; /* Warna emas */
}

/* --- Pengaturan Nama Pemilik & Teks Kecil --- */
.rek-label {
    font-size: 13px; /* Sedikit diperbesar agar pas dengan teks baru */
    font-weight: 400;
    color: #888888;
    margin: 0 0 5px 0; /* Jarak tipis antara tulisan Atas Nama dan nama orangnya */
    display: block;
}

.rek-name {
    font-size: 17px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 20px 0; /* Jarak bawah sebelum tombol salin */
}

/* --- Tombol Salin --- */
.btn-copy {
    background-color: #555555;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-copy:hover {
    background-color: #d4af37;
}

/* ==========================================
   STORY / TIMELINE SECTION
   ========================================== */
.story {
    padding: 60px 20px;
    background-color: #fafafa; /* Memberi warna latar sedikit berbeda agar terpisah dari section lain */
}

.story-header {
    text-align: center;
    margin-bottom: 50px;
}

.story-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #333333;
    margin-bottom: 15px;
}

.story-subtitle {
    font-style: italic;
    color: #666666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 16px;
}

.story-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px; /* Jarak antar part cerita */
}

.story-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Membalik urutan agar selang-seling (Foto Kanan, Teks Kiri) */
.story-item.reverse {
    flex-direction: row-reverse;
}

.story-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.story-img:hover img {
    transform: scale(1.05); /* Efek zoom tipis saat foto disentuh/didekati kursor */
}

.story-text {
    flex: 1;
    text-align: left; /* Teks rata kiri untuk layout normal (foto di kiri) */
}

.story-item.reverse .story-text {
    text-align: right;
}

.story-date {
    display: block;
    color: #d4af37; /* Teks warna emas */
    background-color: transparent; /* Hilangkan background */
    padding: 0; /* Hilangkan padding bawaan sebelumnya */
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px; /* Jarak dari tanggal ke paragraf cerita */
    letter-spacing: 1px;
}

.story-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #333333;
    margin-bottom: 5px; /* Jarak diperkecil karena tanggal pindah ke bawah */
}

/* --- Paragraf Cerita --- */
.story-text p {
    color: #555555;
    line-height: 1.8;
    font-size: 15px;
    text-align: justify;
    /* text-align: justify dihapus agar paragraf mengikuti rata kanan/kiri judulnya */
}

/* --- Responsif HP --- */
/* --- Responsif HP --- */
@media (max-width: 768px) {
    .story-item, .story-item.reverse {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Di HP, judul dan tanggal dipaksa ke tengah agar simetris */
    .story-text, .story-item.reverse .story-text {
        text-align: center; 
    }

    /* Pastikan paragraf di HP tetap rata kanan-kiri */
    .story-text p {
        text-align: justify; 
    }
}

/* ==========================================
   RSVP / GUESTBOOK SECTION
   ========================================== */
.rsvp {
    padding: 70px 20px;
    background-color: #f9f9f9; /* Memberi warna latar agar terpisah dari section lain */
    display: flex;
    justify-content: center;
}

.rsvp-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Efek bayangan lembut */
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.rsvp-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #333333;
    margin-bottom: 10px;
}

.rsvp-subtitle {
    color: #666666;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Memastikan form tersusun ke bawah secara fleksibel */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Jarak rapi antar kotak isian */
    text-align: left;
}

/* Desain Kotak Isian (Input, Select, Textarea) */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: #333333;
    background-color: #fafafa;
    box-sizing: border-box; /* Memastikan padding tidak merusak lebar 100% */
    transition: all 0.3s ease;
}

/* Efek saat kotak isian sedang diketik / diklik */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37; /* Garis tepi berubah emas */
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* Khusus Textarea (Kolom Ucapan) */
.form-group textarea {
    resize: vertical; /* Hanya bisa ditarik ke bawah */
    min-height: 120px;
}

/* Desain Tombol Kirim */
.btn-submit {
    background-color: #555555;
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: #333333;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ==========================================
   RSVP MODERN SECTION (LIGHT THEME)
   ========================================== */
.rsvp-modern {
    background-color: #f9f9f9; /* Warna latar terang, serasi dengan section lain */
    padding: 80px 20px;
    color: #333333;
    position: relative;
}

/* Kita netralkan overlay karena sudah tidak memakai foto background */
.rsvp-overlay {
    background: transparent;
    padding: 0;
}

/* --- Layout Form Split --- */
.rsvp-split {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    display: flex;
    gap: 50px;
}

.rsvp-left {
    flex: 1;
}

/* Menyamakan font judul dengan section lain */
.rsvp-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.rsvp-left p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #666666;
    line-height: 1.8;
}

.rsvp-right {
    flex: 1;
}

/* --- Input Form Desain Minimalis & Terang --- */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #555555;
}

.input-group input[type="text"],
.input-group textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    color: #333333;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 8px; /* Sudut melengkung halus */
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input[type="text"]:focus,
.input-group textarea:focus {
    border-color: #d4af37; /* Aksen emas saat diketik */
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
}

/* Custom Radio Buttons untuk Kehadiran */
.attendance-options {
    display: flex;
    gap: 10px;
}

.attendance-options input[type="radio"] {
    display: none;
}

.attendance-options label {
    flex: 1;
    border: 1px solid #dddddd;
    background-color: #ffffff;
    color: #555555;
    padding: 12px 5px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 !important;
}

/* Efek saat opsi kehadiran dipilih */
.attendance-options input[type="radio"]:checked + label {
    background-color: #555555;
    color: #ffffff;
    border-color: #555555;
    font-weight: 600;
}

/* Tombol Kirim */
.btn-send {
    background-color: #555555;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%; /* Membuat tombol selebar kotak form */
}

.btn-send:hover {
    background-color: #d4af37;
}

/* --- Grid Daftar Ucapan --- */
.wishes-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Desain Kartu Ucapan */
.wish-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); /* Bayangan sangat halus */
}

.wish-card h4 {
    margin: 0 0 10px 0;
    font-size: 17px;
    color: #d4af37;
    font-weight: 700;
}

.wish-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.wish-card small {
    font-size: 11px;
    color: #888888;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

/* --- Responsif untuk Mobile --- */
@media (max-width: 768px) {
    .rsvp-modern {
        padding: 60px 20px;
    }
    
    .rsvp-split {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .input-group label {
        text-align: left; /* Teks label tetap di kiri meski di HP */
    }

    .attendance-options {
        flex-direction: column;
    }
}

/* ==========================================
   FLOATING ACTION BUTTON (FAB) NAVIGATION
   ========================================== */
html {
    scroll-behavior: smooth;
}

.fab-container {
    position: fixed;
    top: 25px; 
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 10px; /* Jarak antar tombol diperkecil agar lebih compact */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.fab-container.show {
    opacity: 1;
    visibility: visible;
}

/* Tombol Bulat Utama */
.fab-main {
    width: 48px !important;  
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    background-color: #fdfbf7 !important; 
    border: 2px solid #d4af37 !important; 
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    overflow: hidden !important; 
    position: relative !important;
    flex-shrink: 0 !important; /* Mencegah tombol ikut gepeng/medar oleh flexbox */
    order: 1; 
}

/* Pengaturan Gambar Bunga di dalam Tombol */
.fab-main img {
    width: 32px !important;  /* Kunci ukuran gambar secara spesifik */
    height: 32px !important;
    object-fit: cover; 
    border-radius: 50%;
    transition: transform 0.4s ease; 
}

.fab-main:hover {
    transform: scale(1.05);
}

.fab-container.active .fab-main img {
    transform: rotate(90deg); 
}

/* Wadah Sub-menu */
.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0; 
    visibility: hidden;
    transform: translateY(-10px); 
    transition: all 0.3s ease;
    order: 2; /* Menu kecil berada di bawah tombol utama */
}

.fab-container.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Desain Sub-menu (Tombol-tombol kecil) */
.fab-item {
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #555555;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eeeeee;
}

.fab-item:hover {
    background-color: #d4af37; 
    color: #ffffff;
    border-color: #d4af37;
}

/* Responsif untuk layar HP */
@media (max-width: 768px) {
    .fab-container {
        top: 15px;
        right: 15px;
    }
}

/* ==========================================
   STYLING KOTAK UCAPAN (ROLL-DOWN / SCROLLABLE)
   ========================================== */
#wishes-container {
    max-height: 450px; /* Batasi tinggi maksimal (kira-kira muat 4-5 kartu ucapan) */
    overflow-y: auto;  /* Munculkan scrollbar vertikal jika melebihi batas */
    padding-right: 8px; /* Jarak agar scrollbar tidak menempel pada kartu */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Mempercantik Tampilan Scrollbar (Agar senada dengan tema emas/cream) */
#wishes-container::-webkit-scrollbar {
    width: 6px;
}

#wishes-container::-webkit-scrollbar-track {
    background: #fdfbf7; /* Warna latar scrollbar (cream) */
    border-radius: 10px;
}

#wishes-container::-webkit-scrollbar-thumb {
    background: #d4af37; /* Warna batang scrollbar (emas) */
    border-radius: 10px;
}

#wishes-container::-webkit-scrollbar-thumb:hover {
    background: #b89728; /* Warna emas lebih gelap saat disentuh */
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
/* Kondisi awal sebelum elemen terlihat */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s ease-out;
    will-change: opacity, transform;
}

/* Pilihan Arah Gerakan Animasi */
.fade-up { transform: translateY(40px); }
.fade-left { transform: translateX(40px); }
.fade-right { transform: translateX(-40px); }
.zoom-in { transform: scale(0.85); }

/* Kondisi akhir saat elemen sudah masuk ke layar (ditambahkan via JS) */
.animate-on-scroll.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(0) scale(1);
}

/* Opsional: Efek Jeda (Delay) agar munculnya bergantian */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ==========================================
   FOOTER SECTION
   ========================================== */
footer {
    padding: 40px 20px 40px; /* Jarak atas lebih luas agar tidak menempel dengan section RSVP */
    background-color: transparent; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pengaturan Gambar Ukiran di Footer */
.footer-ornament {
    width: 40px; /* Dibuat sedikit lebih besar dari teks tapi tidak mendominasi */
    height: auto;
    margin-bottom: 15px;
    opacity: 0.8; /* Sedikit transparan agar menyatu halus dengan background */
}

/* Pengaturan Teks "Made with Love" */
.footer-thanks {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: #888888;
    margin-bottom: 5px; /* Jarak sangat dekat dengan nama */
    letter-spacing: 1px;
}

/* Pengaturan Nama Pasangan di Footer */
.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #d4af37; /* Warna emas */
    font-weight: 600;
    letter-spacing: 2px;
}