/* --- 1. RESET & UMUM --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* DEFINISI PALET WARNA (Agar mudah diganti nanti) */
    --warna-cream: #FEFBF3;       /* Background Utama */
    --warna-biru-muda: #D4EBF8;   /* Cover Depan */
    --warna-hijau-muda: #92cdcd;  /* Tombol & Judul */
    --warna-kuning-muda: #FFF8E5; /* Input Form */
    --warna-teks: #c6c6c6;        /* Teks Abu Gelap (Agar terbaca) */
    --warna-teks-judul: #54b752;  /* Teks Judul (Hijau agak gelap) */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--warna-cream); 
    color: var(--warna-teks);
    overflow-x: hidden;
}

/* Class untuk mengunci scroll saat cover masih aktif */
body.stop-scroll {
    overflow: hidden;
}

/* --- 2. HALAMAN SAMPUL (COVER) --- */
#cover-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('image/cover-depan.jpeg') no-repeat center center scroll;
    background-size: cover;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--warna-teks); /* Teks jadi gelap */
    transition: transform 1s ease-in-out;
}

/* Animasi geser ke atas */
.slide-up {
    transform: translateY(-100%);
}

/* Overlay Hapus atau buat transparan karena background sudah pastel bagus */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.cover-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.main-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem; /* Ukuran teks "Misa Syukur..." */
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--warna-teks-judul); /* Atau 'white' jika background gelap */
}

/* Membuat Nama Suster lebih besar */
.highlight-name {
    display: block; /* Agar nama turun ke baris baru */
    font-size: 2.5rem; /* Ukuran font lebih besar */
    margin-top: 10px;
    font-weight: bold;
    color: #ffffff; /* Pastikan putih/terang agar kontras */
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Efek bayangan agar makin jelas */
}

.sub-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.guest-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--warna-teks);
}

/* Tombol Buka Undangan */
#btn-open-invitation {
    background-color: white;
    color: var(--warna-teks-judul);
    border: 1px solid var(--warna-teks-judul);
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#btn-open-invitation:hover {
    background-color: var(--warna-hijau-muda);
    color: white;
    transform: scale(1.05);
    border-color: var(--warna-hijau-muda);
}

/* --- 3. KONTEN UTAMA --- */
#main-content {
    flex-direction: column; 
    gap: 80px;
    padding-bottom: 100px;
    
    /* BACKGROUND CREAM */
    background-color: var(--warna-cream); 
    color: var(--warna-teks);
    
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    font-family: 'Montserrat', sans-serif;
}

.event-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
    align-items: center;
}

/* -- Kolom Kiri (Foto) -- */
.left-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.photo-frame {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    /* Border ganti jadi Hijau Muda tipis */
    border: 1px solid var(--warna-hijau-muda); 
    background-color: white;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    /* Hapus filter sepia agar warna asli foto keluar, atau ganti opacity */
    filter: none; 
}

/* -- Kolom Kanan (Teks) -- */
.right-panel {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.event-block {
    margin-bottom: 20px;
}

.day-date {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.full-date {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--warna-teks-judul); /* Hijau */
}

.time {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #888;
}

.venue-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: #999;
}

.venue-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: #333;
}

.venue-address {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 20px;
}

.event-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Garis pemisah warna Hijau Muda */
    border-top: 1px solid var(--warna-hijau-muda);
    border-bottom: 1px solid var(--warna-hijau-muda);
    color: var(--warna-teks-judul);
    padding: 20px 0;
    margin: 10px 0;
}

/* Tombol Outline (Save Date & Maps) */
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--warna-hijau-muda);
    color: var(--warna-teks-judul);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    background-color: white;
    border-radius: 4px;
}

.btn-outline:hover {
    background-color: var(--warna-hijau-muda);
    color: white;
    transform: translateY(-2px);
}

/* --- 4. TOMBOL MUSIK --- */
#music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--warna-biru-muda); /* Biru Muda */
    color: #555;
    border: 1px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.gallery-section {
    width: 100%;
    max-width: 800px; /* Lebar maksimal agar tidak terlalu melar di layar lebar */
    padding: 50px 20px;
    text-align: center;
    border-top: 1px dashed var(--warna-hijau-muda); /* Garis pemisah estetik */
}

.gallery-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    color: var(--warna-teks-judul);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    /* Membuat 2 kolom otomatis */
    grid-template-columns: 1fr 1fr; 
    gap: 15px; /* Jarak antar foto */
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Sudut melengkung */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid white; /* Bingkai putih tipis */
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.02); /* Efek zoom sedikit saat kursor diarahkan */
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar foto mengisi kotak tanpa gepeng */
    display: block;
}

/* KHUSUS FOTO LANDSCAPE */
.landscape {
    /* Agar foto landscape membentang penuh (2 kolom) */
    grid-column: span 2; 
    aspect-ratio: 16 / 9; /* Rasio standar landscape */
}

/* KHUSUS FOTO PORTRAIT */
.portrait {
    aspect-ratio: 3 / 4; /* Rasio standar portrait */
}

/* --- 5. RSVP SECTION --- */
.rsvp-section {
    width: 100%;
    border-top: 1px dashed var(--warna-hijau-muda);
    max-width: 600px;
    text-align: center;
    padding: 50px 20px;
}

.rsvp-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 40px;
}

.rsvp-deadline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #d9534f;
    margin-top: -30px; 
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 500;
}

#rsvp-form {
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.required {
    color: #d9534f;
}

/* Styling Input & Select (KUNING MUDA) */
.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    /* Background input Kuning Muda Pucat */
    background-color: var(--warna-kuning-muda); 
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #333;
    border-radius: 4px;
    outline: none;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--warna-hijau-muda);
    background-color: white;
}

/* Tombol Submit (HIJAU MUDA) */
#btn-kirim {
    width: 100%;
    max-width: 200px;
    display: block;
    margin: 30px auto 0;
    padding: 15px 30px;
    
    background-color: #3da9a9;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#btn-kirim:hover {
    background-color: #1d8282; /* Hijau sedikit lebih gelap */
    transform: translateY(-2px);
}

#status-message {
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

/* --- 6. FOOTER --- */
.thank-you-section {
    text-align: center;
    padding-top: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    max-width: 800px;
}

.thank-you-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
}

.closing-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    color: var(--warna-teks-judul); /* Hijau */
    margin-top: 30px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.copyright {
    font-size: 0.75rem !important;
    color: #999 !important;
    margin-top: 50px;
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.4rem;
    }
    .highlight-name {
        font-size: 2rem;
    }
    .event-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .gallery-grid {
        gap: 10px;
    }
    
    .gallery-title {
        font-size: 1.8rem;
    }
    .left-panel { order: 1; }
    .right-panel { order: 2; }
    .event-title { font-size: 1.8rem; }
    .full-date { font-size: 1.5rem; }
    .closing-name { font-size: 1.5rem; }
}