/* =================================================================
   TEMA: ETERNAL MIHRAB (Versi Ornamen Kubah & Bingkai)
   ================================================================= */

/* --- 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: #004225; /* Deep Emerald Green */
    color: #F5F5DC; /* Soft Cream */
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='52' viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C5A35E' fill-opacity='0.1'%3E%3Cpath d='M10 10h32v32H10z'/%3E%3Cpath d='M0 13.5v25L13.5 52h25L52 38.5v-25L38.5 0h-25L0 13.5zM4 15.56L15.56 4h20.88L48 15.56v20.88L36.44 48H15.56L4 36.44V15.56z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 30px; /* Beri ruang untuk bingkai */
}
html.no-scroll, body.no-scroll { height: 100%; overflow: hidden; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #C5A35E; /* Brushed Gold */
    margin-bottom: 10px;
    text-align: center;
}

/* --- [BARU] Ornamen Bingkai Halaman Penuh --- */
.page-frame {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid rgba(197, 163, 94, 0.4); /* Emas transparan */
    border-radius: 10px;
    pointer-events: none; /* Agar bisa diklik tembus */
    z-index: 999;
}
/* Ornamen sudut */
.page-frame::before, .page-frame::after {
    content: '❖'; /* Ornamen sudut */
    position: absolute;
    font-size: 24px;
    color: rgba(197, 163, 94, 0.5);
    background: #004225; /* Sembunyikan garis di belakang ornamen */
    padding: 0 5px;
}
.page-frame::before { top: -15px; left: 30px; }
.page-frame::after { top: -15px; right: 30px; }

/* --- [BARU] Ornamen Pembatas (Divider) --- */
.islamic-divider {
    height: 3px;
    width: 100px;
    background-color: #C5A35E;
    opacity: 0.6;
    margin: -15px auto 40px auto; /* Tarik ke atas di bawah h2 */
    position: relative;
}
.islamic-divider::before, .islamic-divider::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #C5A35E;
}
.islamic-divider::before { left: -20px; }
.islamic-divider::after { right: -20px; }

/* --- [PERBAIKAN] Ornamen Kubah untuk Semua Kartu --- */
.mihrab-card {
    position: relative;
    /* Beri ruang LEBIH BANYAK di luar kartu untuk kubah */
    margin-top: 60px; 
    /* Beri ruang LEBIH BANYAK di dalam kartu */
    padding-top: 40px; 
}

/* Kubah Emas (Lengkungan) */
.mihrab-card::before {
    content: '';
    position: absolute;
    /* Tarik lengkungan ke ATAS garis pijakan */
    top: -48px; /* (Sebelumnya -18px, ini yang salah) */
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 45px;
    border: 3px solid #C5A35E;
    border-radius: 50px 50px 0 0;
    border-bottom: none;
    z-index: 1; /* Pastikan di atas garis */
}

/* Garis Emas Pijakan Kubah (Garis Lurus) */
.mihrab-card::after {
    content: '';
    position: absolute;
    /* Posisikan garis tepat di atas kartu */
    top: -3px; 
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: #C5A35E;
}

/* --- Hero Section --- */
.hero-section { height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; }
.hero-content h3 { font-family: 'Lateef', serif; font-size: 2.5rem; color: #C5A35E; margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; }
.guest-container { margin-top: 1rem; margin-bottom: 2rem; }
#guest-name { font-family: 'Playfair Display', serif; font-size: 2rem; }
.mihrab-frame {
    border: 3px solid #C5A35E;
    border-bottom: none;
    padding: 2rem 3rem 1rem 3rem;
    margin: 1.5rem auto;
    border-radius: 180px 180px 0 0;
    max-width: 500px;
}
h1.calligraphy-name { font-family: 'Great Vibes', cursive; font-size: 5.5rem; font-weight: normal; color: #F5F5DC; }
.scroll-down-btn { display: inline-block; padding: 12px 30px; border: 2px solid #C5A35E; border-radius: 50px; color: #C5A35E; text-decoration: none; font-weight: 500; transition: all 0.3s; }
.scroll-down-btn:hover { background-color: #C5A35E; color: #004225; }

/* --- Base Styling for Sections --- */
section { padding: 100px 0; border-bottom: 1px solid #005a34; }

/* --- Quran Verse & Doa Section --- */
.quran-verse-section, .doa-section { background-color: rgba(0,0,0,0.1); text-align: center; }
.arabic-verse { font-family: 'Lateef', serif; font-size: 2.8rem; color: #C5A35E; line-height: 2; margin-bottom: 20px; }
.translation { font-style: italic; max-width: 700px; margin: 0 auto 10px auto; }
.source { font-weight: bold; color: #C5A35E; }

/* --- Base Card Styling --- */
.intro-card, .timeline-content, .event-main-wrapper, 
.rsvp-form, .gift-card, .guestbook-container {
    background-color: #005a34; /* Lighter Emerald */
    border: 1px solid #007243;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- Perkenalan Mempelai --- */
.intro-card { max-width: 600px; width: 100%; margin: 60px auto 30px auto; padding: 30px; text-align: center; }
.intro-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #C5A35E; font-weight: normal; margin-bottom: 10px; }
.intro-name { font-family: 'Great Vibes', cursive; font-size: 4rem; color: #F5F5DC; font-weight: normal; margin-bottom: 25px; line-height: 1.2; }
.intro-parentage { text-align: center; color: #F5F5DC; font-size: 1rem; line-height: 1.7; }
.intro-parentage p { margin-bottom: 5px; }
.parent-names { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #F5F5DC; font-weight: normal; }
.parent-connector { font-family: 'Great Vibes', cursive; font-size: 1.8rem; color: #C5A35E; margin: 0; }

/* --- Story Section --- */
.timeline { position: relative; margin: 0 auto; padding: 20px 0; max-width: 600px; }
.timeline::before { content: ''; position: absolute; top: 0; left: 10px; height: 100%; width: 2px; background: #C5A35E; opacity: 0.3; }
.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; background: #004225; border: 2px solid #C5A35E; }
.timeline-content { padding: 20px; text-align: left; }
.timeline-content h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 10px; color: #C5A35E; }

/* --- Event Section --- */
.event-intro { max-width: 600px; margin: -30px auto 40px auto; color: #ccc; text-align: center; }
.event-main-wrapper { padding: 40px 20px; text-align: center; }
#countdown { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.timer-box { border: 1px solid #007243; padding: 15px; border-radius: 8px; min-width: 80px; 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; align-items: stretch; flex-wrap: wrap; gap: 20px; }
.event-card { background: none; box-shadow: none; border: none; padding: 10px; max-width: 350px; flex-grow: 1; flex-basis: 300px; text-align: center; }
.event-divider { width: 1px; background-color: #007243; }
.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; color: #C5A35E; }
.event-card p { margin-bottom: 10px; }
.event-btn { display: inline-block; margin-top: 15px; padding: 5px 0; background-color: transparent; color: #C5A35E; text-decoration: none; border: none; border-bottom: 2px solid #C5A35E; border-radius: 0; transition: all 0.3s; }
.event-btn:hover { color: #d4b478; border-color: #d4b478; }

/* --- Form RSVP --- */
.rsvp-form { padding: 40px; max-width: 600px; margin: 60px auto 30px auto; }
.form-group { margin-bottom: 25px; }
.form-group > label { display: block; font-weight: 500; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { background: #004225; color: #F5F5DC; border: 1px solid #007243; width: 100%; padding: 12px; border-radius: 5px; font-family: 'Poppins', sans-serif; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #C5A35E; outline: none; }
.radio-group { display: flex; align-items: center; margin-bottom: 12px; }
.radio-group input[type="radio"] { margin-right: 12px; width: auto; flex-shrink: 0; }
.radio-group label { display: inline; margin-bottom: 0; font-weight: normal; }
.submit-btn { display: block; width: 100%; padding: 15px; background-color: #C5A35E; color: #004225; border: none; border-radius: 5px; font-size: 1.1rem; font-weight: 500; cursor: pointer; transition: background-color 0.3s; }
.submit-btn:hover { background-color: #d4b478; }

/* --- Wedding Gift --- */
.gift-cards-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.gift-card { width: 320px; text-align: center; padding: 30px; }
.bank-logo { max-height: 30px; margin-bottom: 15px; filter: invert(90%) sepia(10%) saturate(1500%) hue-rotate(355deg) brightness(100%) contrast(90%); }
.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; background-color: #004225; border: 1px dashed #007243; }
.account-number span { font-weight: 500; font-size: 1.2rem; }
.account-number button { background-color: #C5A35E; color: #004225; border: none; border-radius: 5px; padding: 8px 12px; cursor: pointer; }

/* --- Guestbook --- */
.guestbook-container { max-width: 700px; margin: 60px auto 30px auto; max-height: 400px; overflow-y: auto; padding: 10px; }
.guestbook-card { padding: 15px; border-bottom: 1px solid #004225; }
.guestbook-card:last-child { border-bottom: none; }
.guestbook-card h3 { color: #C5A35E; }
.guestbook-card p { font-size: 1rem; font-style: italic; }

/* --- Footer Section --- */
.footer-section { padding: 60px 0; background-color: #002b18; color: #ffffff; text-align: center; border-bottom: none; }
.footer-section h2 { font-family: 'Great Vibes', cursive; font-size: 3rem; font-weight: normal; color: #C5A35E; }
.footer-section p { margin-bottom: 15px; }
.footer-section .date { font-size: 0.9rem; margin-bottom: 0; color: #ccc; }

/* --- Music Button --- */
.music-btn { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: #C5A35E; color: #004225; border: none; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 1000; 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); }
.music-btn.is-playing { animation: spin 4s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Responsive Fixes --- */
@media (max-width: 768px) {
    .event-divider { display: none; }
    .event-card:first-child { border-bottom: 1px solid #007243; padding-bottom: 30px; margin-bottom: 20px; }
}
@media (max-height: 800px) { h1.calligraphy-name { font-size: 4rem; } }
@media (max-width: 480px) {
    body { padding: 15px; }
    .page-frame { top: 5px; left: 5px; right: 5px; bottom: 5px; }
    h1.calligraphy-name { font-size: 3.5rem; }
    .intro-name { font-size: 3rem; }
}