/* =================================================================
   TEMA: SACRED VOW (Versi Lengkap)
   ================================================================= */
/* =================================================================
   [PENTING] KONDISI CSS UNTUK RASIO HP (RESPONSIVE)
   ================================================================= */

/* Aturan ini berlaku untuk layar di bawah 768px (Tablet & HP) */
@media (max-width: 768px) {
    /* Perbaikan Umum */
    body {
        /* Kurangi padding di body agar bingkai tidak terpotong */
        padding: 15px; 
    }
    
    .container {
        padding: 0 10px; /* Kurangi padding container */
    }

    /* Perbaikan Font Besar */
    h1.calligraphy-name { font-size: 5rem; }
    h2 { font-size: 2.2rem; }
    .profile-intro-title { font-size: 2rem; }
    .profile-name { font-size: 1.8rem; }
    .intro-name { font-size: 3rem; }
}

/* Aturan ini berlaku untuk layar di bawah 480px (HP) */
@media (max-width: 480px) {
    /* Perbaikan Umum */
    body { padding: 10px; }
    /* Pastikan bingkai halaman pas di HP */
    .page-frame { top: 5px; left: 5px; right: 5px; bottom: 5px; }

    /* Perbaikan Font (Lebih kecil lagi) */
    h1.calligraphy-name { font-size: 3.5rem; }
    .profile-name { font-size: 1.5rem; }
    .intro-name { font-size: 3rem; }

    /* [PENTING] Perbaikan Countdown Timer agar tidak 'rigid' */
    #countdown {
        flex-wrap: wrap; /* Izinkan kotak-kotaknya "turun" (jadi 2x2) */
        gap: 10px;
        justify-content: center;
    }
    .timer-box {
        flex-basis: 120px; /* Atur lebar dasar agar pas 2 kotak */
        flex-grow: 1;
        min-width: 100px;
        padding: 10px;
    }
    .timer-box span:first-child { font-size: 2rem; }

    /* Perbaikan Kartu-Kartu */
    .profile-card, .event-main-wrapper, .rsvp-form {
        padding: 25px 15px; /* Kurangi padding di HP */
    }
    
    /* Jaga jarak aman dari kubah */
    .intro-card, .rsvp-form, .guestbook-container, .event-main-wrapper {
        margin-top: 60px; 
    }
    
    .groom-title { margin-top: 40px; } /* Kurangi jarak antar profil di HP */

    /* Perbaikan Kartu Gift */
    .gift-cards-container {
         gap: 20px;
    }

    /* Perbaikan Tombol Musik */
    .music-btn {
        bottom: 20px;
        right: 20px;
    }
    
    /* Perbaikan pemisah akad & resepsi */
    .event-divider { display: none; }
    .event-card:first-child {
        border-bottom: 1px solid #444;
        padding-bottom: 30px;
        margin-bottom: 20px;
    }
}
/* --- Global Reset & Basic Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    background-color: #4C0000; /* Deep Burgundy */
    color: #FDF5E6; /* Warm Ivory */
    /* Pola damask subtil di latar belakang */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23B8860B' fill-opacity='0.05'%3E%3Cpath fill-rule='evenodd' d='M11 0l5 20-5-5-5 5L11 0zm20 11l5 20-5-5-5 5L31 11zm20 0l5 20-5-5-5 5L51 11zm20 0l5 20-5-5-5 5L71 11zM0 31l5 20-5-5-5 5L0 31zm20 0l5 20-5-5-5 5L20 31zm20 0l5 20-5-5-5 5L40 31zm20 0l5 20-5-5-5 5L60 31zm20 0l5 20-5-5-5 5L80 31zM11 40l5 20-5-5-5 5L11 40zm20 11l5 20-5-5-5 5L31 51zm20 0l5 20-5-5-5 5L51 51zm20 0l5 20-5-5-5 5L71 51zM0 71l5 20-5-5-5 5L0 71zm20 0l5 20-5-5-5 5L20 71zm20 0l5 20-5-5-5 5L40 71zm20 0l5 20-5-5-5 5L60 71zm20 0l5 20-5-5-5 5L80 71z'/%3E%3C/g%3E%3C/svg%3E");
}

html.no-scroll, body.no-scroll {
    height: 100%;
    overflow: hidden; 
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #B8860B; /* Antique Gold */
    margin-bottom: 10px;
    text-align: center;
    font-weight: normal;
}

.section-divider {
    height: 1px;
    width: 80px;
    background-color: #B8860B; /* Antique Gold */
    opacity: 0.7;
    margin: 0 auto 40px auto;
}

/* --- Hero Section Styling --- */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(40, 0, 0, 0.7), rgba(40, 0, 0, 0.85)), url('images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 7rem;
    font-weight: normal;
    color: #B8860B;
    text-shadow: 0 0 15px rgba(240, 200, 100, 0.4);
}

.hero-content p {
    color: #FDF5E6;
}
/* =================================================================
   [BARU] Styling "Meet The Couple" (Tema Sacred Vow)
   ================================================================= */

.profile-section h2 {
    color: #B8860B; /* Antique Gold */
}
.profile-section .section-divider {
    background-color: #B8860B; /* Antique Gold */
}

/* Judul "The Bride" / "The Groom" */
.profile-intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: normal;
    text-align: center;
    color: #B8860B; /* Antique Gold */
    margin-bottom: 20px;
}
.groom-title {
    margin-top: 80px; /* Jarak untuk scroll */
}

/* Kartu Profil */
.profile-card {
    background-color: #212121; /* Rich Charcoal */
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 500px; 
    width: 100%;
    margin: 0 auto; 
    text-align: center;
    padding: 40px 30px;
}

/* Wadah Foto */
.profile-photo { 
    width: 200px; 
    height: 200px; 
    border-radius: 50%; /* Bulat */
    border: 3px solid #B8860B; /* Border Antique Gold */
    overflow: hidden; 
    margin: 0 auto 25px auto; 
    background-color: #444;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.profile-photo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

/* Nama Lengkap */
.profile-name { 
    font-family: 'Playfair Display', serif; 
    font-size: 2rem; 
    color: #B8860B; /* Antique Gold */
    margin-bottom: 25px;
    font-weight: normal;
}

/* Info Orang Tua */
.profile-parentage {
    text-align: center;
    color: #FDF5E6; /* Teks Warm Ivory */
    font-size: 1rem;
    line-height: 1.7;
}
.profile-parentage p {
    margin-bottom: 5px;
}
.parent-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #FDF5E6;
    font-weight: normal;
}
/* Simbol & */
.parent-connector {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: #B8860B; /* Antique Gold */
    margin: 0;
}

.guest-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
    color: #FDF5E6;
}

#guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.scroll-down-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #B8860B;
    border-radius: 50px;
    color: #B8860B;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.scroll-down-btn:hover {
    background-color: #B8860B;
    color: #212121;
}

/* --- Base Styling for Sections --- */
section {
    padding: 100px 0;
    border-bottom: 1px solid #601010;
}

/* --- Bible Verse Section Styling --- */
.bible-verse-section {
    background-color: rgba(0,0,0,0.1);
    text-align: center;
}

.verse {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 20px auto;
    color: #FDF5E6;
}

.source {
    font-weight: bold;
    font-size: 1.1rem;
    color: #B8860B;
}

/* --- Card & Content Styling --- */
.timeline-content, .event-card, .rsvp-form, .gift-card, .guestbook-container {
    background-color: #212121; /* Rich Charcoal */
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Story Section Styling --- */
.timeline::before { background: #B8860B; opacity: 0.3; }
.timeline-dot { background: #4C0000; border: 2px solid #B8860B; }
.timeline-content h3 { color: #B8860B; }

/* --- Event Section Styling --- */
.event-intro, .rsvp-intro, .gift-intro, .guestbook-intro {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px auto;
    color: #ccc;
}
.timer-box { border: 1px solid #555; }
.timer-box span:first-child { color: #FDF5E6; }
.event-card h3 { color: #B8860B; }
.event-btn { color: #B8860B; border: 1px solid #B8860B; }
.event-btn:hover { background-color: #B8860B; color: #212121; }

/* --- Form Styling (RSVP) --- */
.rsvp-form {
    background-color: #212121; /* Rich Charcoal */
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

/* Label umum untuk input text, select, dan textarea */
.form-group > label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #FDF5E6;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #333;
    color: #FDF5E6;
    border: 1px solid #555;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #B8860B;
}

/* === BAGIAN PERBAIKAN UTAMA ADA DI SINI === */
.radio-group {
    display: flex;          /* 1. Aktifkan Flexbox */
    align-items: center;    /* 2. Sejajarkan secara vertikal */
    margin-bottom: 12px;
}

.radio-group input[type="radio"] {
    margin-right: 12px;     /* 3. Jarak antara tombol dan teks */
    width: auto;            /* 4. Cegah input memenuhi lebar */
    flex-shrink: 0;         /* 5. Jaga ukuran tombol radio */
}

/* Aturan spesifik untuk label di dalam radio group */
.radio-group label {
    display: inline;
    margin-bottom: 0;
    font-weight: normal;
    color: #FDF5E6; /* Pastikan warna teks sesuai */
}
/* === AKHIR DARI BAGIAN PERBAIKAN === */

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #B8860B;
    color: #212121;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #d19a1a;
}

/* --- Gift Section --- */
.bank-logo { filter: invert(90%) sepia(10%) saturate(1500%) hue-rotate(355deg) brightness(100%) contrast(90%); }
.account-number { background-color: #333; border: 1px dashed #555; }
.account-number button { background-color: #B8860B; color: #212121; }
.account-number button:hover { background-color: #d19a1a; }

/* --- Guestbook Section --- */
.guestbook-card { border-bottom: 1px solid #444; }
.guestbook-card:last-child { border-bottom: none; }
.guestbook-card h3 { color: #B8860B; }

/* --- Gallery Section --- */
.gallery-item img { filter: brightness(0.9); transition: transform 0.3s ease, filter 0.3s ease; }
.gallery-item img:hover { transform: scale(1.05); filter: brightness(1); }

/* --- Footer Section Styling --- */
.footer-section {
    padding: 60px 0;
    background-color: #212121; /* Rich Charcoal */
    color: #ffffff;
    text-align: center;
    border-bottom: none;
}
.footer-section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    font-weight: normal;
    color: #B8860B;
}

/* =================================================================
   Music Control Button
   ================================================================= */

.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #C5A35E; /* Warna Emas */
    color: #004225; /* Warna Hijau Tua */
    border: none;
    border-radius: 50%; /* Membuatnya bulat */
    font-size: 1.5rem; /* Ukuran emoji */
    cursor: pointer;
    z-index: 1000;
    
    /* Posisikan ikon di tengah */
    display: flex;
    justify-content: center;
    align-items: center;
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.music-btn:hover {
    transform: scale(1.1); /* Efek membesar saat disentuh */
}

/* [BARU] Animasi berputar saat musik main */
.music-btn.is-playing {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Sisa Kode untuk Kelengkapan --- */
.timeline { position: relative; margin: 0 auto; padding: 20px 0; max-width: 600px; }
.timeline-item { position: relative; margin-bottom: 40px; padding-left: 40px; }
.timeline-dot { position: absolute; top: 5px; left: 0px; height: 22px; width: 22px; border-radius: 50%; z-index: 1; }
.timeline-content { padding: 20px; border-radius: 8px; text-align: left; }
.timeline-content img { width: 100%; border-radius: 5px; margin-bottom: 15px; }
.timeline-content h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 10px; }
#countdown { display: flex; justify-content: center; gap: 20px; }
.timer-box { padding: 15px 20px; border-radius: 8px; min-width: 100px; text-align: center; }
.timer-box span:first-child { display: block; font-size: 2.5rem; font-weight: 500; }
.timer-box span:last-child { font-size: 0.9rem; color: #ccc; }
.event-details { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.event-card { padding: 30px; border-radius: 8px; max-width: 400px; flex-grow: 1; text-align: center; }
.event-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.event-card h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 15px; }
.event-card p { margin-bottom: 10px; }
.gift-cards-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.gift-card { padding: 30px; border-radius: 8px; width: 320px; text-align: center; }
.bank-logo { max-height: 30px; margin-bottom: 15px; }
.gift-card p { margin-bottom: 10px; font-size: 1.1rem; }
.account-number { display: flex; justify-content: space-between; align-items: center; border-radius: 5px; padding: 10px 15px; margin-top: 20px; }
.account-number span { font-weight: 500; font-size: 1.2rem; letter-spacing: 1px; }
.guestbook-container { max-width: 700px; margin: 0 auto; max-height: 400px; overflow-y: auto; padding: 10px; }
.guestbook-card p { font-size: 1rem; font-style: italic; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.footer-section p { margin-bottom: 15px; }
.footer-section .date { font-size: 0.9rem; margin-bottom: 0; color: #ccc; }