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

:root {
    --primary: #293052;     /* Navy Utama */
    --secondary: #F0F7FA;   /* Background Light Blue */
    --white: #ffffff;
    --accent: #d4a373;      /* Emas/Gold untuk nama & hiasan */
    --fancy-font: 'Beau Rivage', cursive;
    --body-font: 'Montserrat', sans-serif;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
    2. GENERAL RESET
    ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--body-font); 
    background-color: var(--secondary); 
    color: var(--primary); 
    overflow-x: hidden; 
}

/* ========================================
    3. OPENING OVERLAY
    ======================================== */
#opening-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 9999;
    display: flex; justify-content: center; align-items: flex-end;
    padding-bottom: 80px; transition: transform 1s ease-in-out;
}
#opening-overlay::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(41, 48, 82, 0.8)); z-index: -1;
}
.opening-content { text-align: center; color: white; width: 100%; padding: 0 20px; }
.opening-content h1 { font-family: var(--fancy-font); font-size: 4.5rem; margin-bottom: 5px; }

.guest-tag {
    margin: 15px auto; padding: 10px 15px; max-width: 250px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px; backdrop-filter: blur(8px);
}

/* ========================================
    4. HERO SECTION (SESUAI GAMBAR REVISI)
    ======================================== */
.hero-section {
    padding: 60px 20px;
    background: var(--secondary); 
    display: flex; justify-content: center;
}

.hero-card {
    background: white;
    padding: 40px 20px;
    border-radius: 120px 120px 20px 20px; /* Bentuk melengkung atas */
    box-shadow: var(--shadow);
    width: 100%; max-width: 350px;
    text-align: center;
}

.hero-img-arch {
    width: 200px; height: 280px;
    margin: 0 auto 30px;
    border-radius: 100px 100px 0 0; /* Bingkai Melengkung (Arch) */
    border: 10px solid #f9f9f9;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.hero-img-arch img { width: 100%; height: 100%; object-fit: cover; }

.hero-card h4 {
    text-transform: uppercase; letter-spacing: 3px;
    font-size: 0.75rem; margin-bottom: 10px; font-weight: 400; opacity: 0.8;
}

.hero-card h1 {
    font-family: var(--fancy-font);
    font-size: 3.5rem;
    color: var(--accent); /* Warna Emas */
    margin-bottom: 10px;
}

.hero-card p { font-size: 0.9rem; margin-bottom: 20px; color: var(--primary); }

/* COUNTDOWN DI HERO */
.countdown-container { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.countdown-box { background: var(--primary); color: white; min-width: 60px; padding: 8px; border-radius: 10px; }
.countdown-box span { font-size: 1.1rem; font-weight: bold; display: block; }
.countdown-box small { font-size: 0.55rem; text-transform: uppercase; }

/* ========================================
    5. COUPLE SECTION (OVAL FRAME)
    ======================================== */
.section { padding: 80px 20px; text-align: center; max-width: 1100px; margin: 0 auto; }
.section-title { font-family: var(--fancy-font); font-size: 3.5rem; margin-bottom: 20px; color: var(--primary); }

.couple-frame {
    width: 220px; height: 330px; margin: 0 auto 20px;
    border-radius: 110px; border: 5px solid var(--primary);
    padding: 8px; position: relative;
}
.couple-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 105px; }
.flower-icon { position: absolute; color: var(--accent); font-size: 40px; z-index: 5; }
.flower-top { top: -10px; right: -10px; }
.flower-bottom { bottom: -10px; left: -10px; }

/* ========================================
    6. BANK CARD & RSVP
    ======================================== */
.bank-card {
    background: linear-gradient(135deg, var(--primary), #434d7a);
    color: white; padding: 25px; border-radius: 20px;
    max-width: 350px; margin: 20px auto; text-align: left; box-shadow: var(--shadow);
}

.rsvp-container {
    background: white; padding: 25px; border-radius: 20px;
    box-shadow: var(--shadow); margin-top: 20px;
}
.rsvp-form-group { margin-bottom: 15px; text-align: left; }
.rsvp-form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.8rem; }

input, select, textarea {
    width: 100%; padding: 12px; border: 1px solid #e0e0e0;
    border-radius: 10px; font-family: inherit; font-size: 0.9rem;
}

/* ========================================
    7. ADMIN UI (PREVIEW LINK & COPY FIX)
    ======================================== */
.admin-body { font-size: 0.85rem; background: #f4f7f6; }
.sidebar-admin { width: 230px; background: var(--primary); color: white; height: 100vh; position: fixed; padding: 20px; }
.sidebar-admin h2 { font-family: var(--fancy-font); font-size: 2rem; text-align: center; margin-bottom: 30px; }

.main-admin { margin-left: 230px; padding: 25px; }
.admin-card { background: white; padding: 20px; border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 25px; }

/* FIX KOTAK SALIN LINK */
.copy-wrapper {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border: 1px solid #ced4da;
    border-radius: 8px;
    overflow: hidden; /* Mencegah input meluber keluar */
}

.copy-wrapper input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    flex: 1; /* Input mengambil ruang sisa */
    font-size: 0.75rem;
    color: #495057;
    min-width: 0; /* Penting agar input bisa mengecil */
    margin-bottom: 0;
}

.btn-copy-admin {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap; /* Teks tombol tidak akan turun */
}

/* UTILITIES */
.btn-open {
    padding: 12px 30px; background: var(--primary); color: white;
    border: none; border-radius: 50px; cursor: pointer; font-weight: bold;
    text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
}

.reveal { opacity: 0; transform: translateY(30px); transition: 1.2s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

.bottom-nav {
    position: fixed; bottom: 0; width: 100%; background: white;
    display: flex; justify-content: space-around; padding: 10px 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05); z-index: 1000;
}
.bottom-nav a { text-decoration: none; color: #999; font-size: 0.7rem; text-align: center; }
.bottom-nav a i { font-size: 1.3rem; color: var(--primary); display: block; margin-bottom: 2px; }

/* Toast Popup */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 10000; }
.toast { background: var(--primary); color: white; padding: 12px 20px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); margin-bottom: 10px; animation: slideIn 0.4s ease forwards; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 768px) {
    .sidebar-admin { width: 100%; height: auto; position: relative; padding: 10px; }
    .main-admin { margin-left: 0; padding: 15px; }
}