/* =================================================================
   TEMA: SAKURA DREAM WEDDING (Versi Perbaikan Total Layout)
   ================================================================= */

/* --- Import Font --- */
@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Patrick+Hand&family=Playfair+Display:wght@700&family=Poppins:wght@400;500&display=swap');

/* --- Global Reset & Styling --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, #BCE7F0 0%, #FFB7C5 100%);
    color: #3E3A63;
    overflow-x: hidden;
}
html.no-scroll, body.no-scroll { height: 100%; overflow: hidden; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; border-bottom: 3px solid #3E3A63; }

/* --- Animasi Sakura --- */
.sakura-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; }
.sakura-petal { position: absolute; top: -10%; width: 15px; height: 10px; background-color: #FFB7C5; border: 1px solid #FF8FAB; border-radius: 100% 0; animation: sakura-fall 15s linear infinite; }
.sakura-petal:nth-child(2) { left: 10%; animation-delay: -5s; }
.sakura-petal:nth-child(3) { left: 20%; animation-delay: -3s; }
.sakura-petal:nth-child(4) { left: 30%; animation-delay: -7s; }
.sakura-petal:nth-child(5) { left: 40%; animation-delay: -1s; }
.sakura-petal:nth-child(6) { left: 50%; animation-delay: -8s; }
.sakura-petal:nth-child(7) { left: 60%; animation-delay: -4s; }
.sakura-petal:nth-child(8) { left: 70%; animation-delay: -2s; }
.sakura-petal:nth-child(9) { left: 80%; animation-delay: -10s; }
.sakura-petal:nth-child(10) { left: 90%; animation-delay: -6s; }
@keyframes sakura-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* --- [FIX] Gaya Panel Manga (Diterapkan ke semua kartu) --- */
.manga-panel {
    background: #ffffff;
    border: 3px solid #3E3A63;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 8px 8px 0 #3E3A63;
    transition: all 0.2s ease;
}
.manga-panel:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 #3E3A63;
}

/* --- Judul & Pembatas Anime --- */
h2 { font-family: 'Mochiy Pop One', sans-serif; font-size: 2.5rem; color: #3E3A63; margin-bottom: 10px; text-align: center; }
.anime-divider { text-align: center; font-size: 1.5rem; color: #FFB7C5; margin-bottom: 40px; }
.anime-divider::before { content: '✨'; }

/* --- Hero Section --- */
.hero-section { height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; }
.hero-content p { font-family: 'Patrick Hand', cursive; font-size: 1.5rem; }
h1.calligraphy-name { font-family: 'Mochiy Pop One', sans-serif; font-size: 5rem; font-weight: normal; color: #FDEE87; -webkit-text-stroke: 2px #3E3A63; text-shadow: 4px 4px 0 #FFB7C5; margin: 1rem 0; }
#guest-name { font-family: 'Mochiy Pop One', sans-serif; font-size: 1.8rem; }
.scroll-down-btn { display: inline-block; padding: 12px 30px; border: 3px solid #3E3A63; border-radius: 50px; background-color: #FFB7C5; color: #3E3A63; text-decoration: none; font-weight: bold; box-shadow: 4px 4px 0 #3E3A63; transition: all 0.2s ease; }
.scroll-down-btn:hover { background-color: #FDEE87; transform: scale(1.1); box-shadow: 6px 6px 0 #3E3A63; }

/* --- Profile Section --- */
.profile-cards { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; }
.profile-card {
    /* Terapkan gaya panel */
    background: #ffffff;
    border: 3px solid #3E3A63;
    border-radius: 8px;
    box-shadow: 8px 8px 0 #3E3A63;
    width: 300px;
    text-align: center;
    padding: 20px;
}
.profile-avatar { width: 150px; height: 150px; border-radius: 50%; border: 3px solid #FFB7C5; overflow: hidden; margin: 0 auto 15px auto; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: 'Mochiy Pop One', sans-serif; font-size: 1.5rem; color: #FFB7C5; -webkit-text-stroke: 1px #3E3A63; }
.profile-stats { text-align: left; margin-top: 15px; }
.profile-heart { font-size: 3rem; animation: doki-doki 1.5s infinite ease-in-out; }
@keyframes doki-doki { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }

/* --- 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: #3E3A63; opacity: 0.5; }
.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: #BCE7F0; border: 2px solid #3E3A63; }
.timeline-content {
    /* Terapkan gaya panel */
    text-align: left;
    padding: 20px;
    background: #ffffff;
    border: 3px solid #3E3A63;
    border-radius: 8px;
    box-shadow: 8px 8px 0 #3E3A63;
    transition: all 0.2s ease;
}
.timeline-content:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 #3E3A63; }
.timeline-content h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 10px; color: #FFB7C5; }

/* --- [FIX] Event Section (Isu 1, 2) --- */
.event-intro, .rsvp-intro, .gift-intro, .guestbook-intro {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px auto;
    color: #3E3A63;
    opacity: 0.8;
}
/* Hapus panel dari wrapper */
.event-main-wrapper {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
}
.event-main-wrapper h2 { margin-bottom: 10px; }
.event-main-wrapper .anime-divider { margin-bottom: 40px; }
#countdown { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.timer-box { border: 2px solid #3E3A63; background: #BCE7F0; padding: 15px; border-radius: 8px; min-width: 80px; text-align: center; }
.timer-box span:first-child { display: block; font-size: 2.5rem; font-weight: bold; }
.timer-box span:last-child { font-size: 0.9rem; }
.event-details { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 30px; }
/* [FIX] Berikan panel pada .event-card */
.event-card {
    background: #ffffff;
    border: 3px solid #3E3A63;
    border-radius: 8px;
    box-shadow: 8px 8px 0 #3E3A63;
    padding: 30px;
    flex-grow: 1;
    flex-basis: 300px;
    text-align: center;
}
.event-divider { display: none; } /* Tidak perlu pemisah lagi */
.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: #FFB7C5; }
.event-card p { margin-bottom: 10px; }
.event-btn { display: inline-block; margin-top: 15px; padding: 5px 0; text-decoration: none; color: #3E3A63; border-bottom: 2px solid #FFB7C5; font-weight: bold; border-radius: 0; background: none; }
.event-btn:hover { border-color: #3E3A63; }

/* --- [FIX] Form RSVP --- */
.rsvp-form {
    /* Terapkan gaya panel */
    background: #ffffff;
    border: 3px solid #3E3A63;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 8px 8px 0 #3E3A63;
    max-width: 600px;
    margin: 0 auto;
}
.form-group { margin-bottom: 25px; }
.form-group > label { display: block; font-weight: 500; margin-bottom: 8px; }
.form-group input[type="text"], .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 2px solid #3E3A63; border-radius: 5px; font-family: 'Poppins', sans-serif; font-size: 1rem; background: #ffffff; color: #3E3A63;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #FFB7C5; 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: #FDEE87; color: #3E3A63; border: 3px solid #3E3A63; box-shadow: 4px 4px 0 #3E3A63; border-radius: 5px; font-size: 1.1rem; font-weight: 500; cursor: pointer; }
.submit-btn:hover { background-color: #FFB7C5; }

/* --- [FIX] Wedding Gift --- */
.gift-cards-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.gift-card {
    /* Terapkan gaya panel */
    background: #ffffff;
    border: 3px solid #3E3A63;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 8px 8px 0 #3E3A63;
    width: 320px;
    text-align: center;
}
.bank-logo { max-height: 30px; margin-bottom: 15px; filter: none; }
.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: #BCE7F0; border: 2px dashed #3E3A63; }
.account-number span { font-weight: bold; font-size: 1.2rem; }
.account-number button { background-color: #FDEE87; color: #3E3A63; border: 2px solid #3E3A63; border-radius: 5px; padding: 8px 12px; cursor: pointer; }

/* --- [FIX] Ucapan & Doa --- */
.guestbook-container {
    /* Terapkan gaya panel */
    background: #ffffff;
    border: 3px solid #3E3A63;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 8px 8px 0 #3E3A63;
    max-width: 700px; margin: 0 auto; max-height: 400px; overflow-y: auto;
}
.guestbook-card { padding: 15px; border-bottom: 2px dashed #BCE7F0; }
.guestbook-card:last-child { border-bottom: none; }
.guestbook-card h3 { color: #FFB7C5; font-family: 'Mochiy Pop One', sans-serif; -webkit-text-stroke: 1px #3E3A63; }
.guestbook-card p { font-size: 1rem; font-style: italic; }

/* --- [FIX] Doa Section (jika ada, ganti galeri) --- */
.doa-section { background-color: rgba(255,255,255,0.3); text-align: center; }
.doa-section .arabic-verse { font-family: 'Lateef', serif; font-size: 2.8rem; color: #3E3A63; line-height: 2; margin-bottom: 20px; }
.doa-section .translation { font-style: italic; max-width: 700px; margin: 0 auto 10px auto; }
.doa-section .source { font-weight: bold; color: #3E3A63; }

/* --- [FIX] Footer --- */
.footer-section { padding: 60px 0; background-color: #3E3A63; color: #BCE7F0; text-align: center; border-bottom: none; }
.footer-section p { margin-bottom: 15px; }
.footer-section h2 { font-family: 'Mochiy Pop One', sans-serif; font-size: 2rem; color: #FDEE87; -webkit-text-stroke: 1px #3E3A63; }
.footer-section .date { font-size: 0.9rem; margin-bottom: 0; }

/* --- [FIX] Tombol Musik --- */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #FDEE87;
    color: #3E3A63;
    border: 3px solid #3E3A63;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 4px 4px 0 #3E3A63;
    transition: all 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); } }

/* --- Media Queries (Responsif) --- */
@media (max-width: 768px) {
    /* Tumpuk kartu akad & resepsi di HP */
    .event-details { flex-direction: column; gap: 30px; }
    .profile-heart { display: none; }
}
@media (max-height: 800px) { h1.calligraphy-name { font-size: 4rem; } }
@media (max-width: 480px) { h1.calligraphy-name { font-size: 3rem; } }