/* assets/css/template-fairytale.css - tema "Fairytale"
   Palet: lavender + emas lembut di atas gradasi pastel dreamy, nama mempelai pakai font script
   dongeng (Great Vibes) dipadu Quicksand yang bulat & ramah, aksen kerlip bintang di tiap section. */

:root {
    --accent: #7c6bb0;
    --accent-soft: #c9a86a;
    --bg: #f7f3fb;
    --text: #3d3350;
    --line: #e4dcf0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.mempelai-nama, .cover-screen h1 { font-family: 'Great Vibes', cursive; }
section h2 { font-family: 'Quicksand', sans-serif; }

.invite-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.cover-screen {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 48px 32px;
    position: relative;
}
.cover-screen::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(63,45,99,0.55), rgba(124,107,176,0.35) 45%, rgba(201,168,106,0.35));
}
.cover-screen > * { position: relative; z-index: 2; }
.cover-frame {
    position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,0.55); border-radius: 2px; z-index: 1; pointer-events: none;
}
.cover-sparkle { position: absolute; color: #fff; opacity: 0.8; z-index: 1; font-size: 16px; }
.cover-sparkle-1 { top: 14%; left: 16%; font-size: 20px; }
.cover-sparkle-2 { top: 22%; right: 18%; font-size: 12px; }
.cover-sparkle-3 { bottom: 20%; left: 22%; font-size: 14px; }
.cover-screen .kepada { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.9; font-family: 'Quicksand', sans-serif; }
.cover-screen h1 { font-size: 58px; margin: 4px 0 6px; font-weight: 400; line-height: 1.15; }
.cover-screen h1 .amp { display: block; font-size: 26px; font-family: 'Quicksand', sans-serif; opacity: 0.85; margin: 2px 0; }

.btn-open {
    margin-top: 24px;
    padding: 13px 34px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #9a8ac9);
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 0 4px 14px rgba(124,107,176,0.4);
}

.content-section { display: none; }
.content-section.show { display: block; }

section { padding: 52px 28px; text-align: center; border-bottom: 1px solid var(--line); position: relative; }
.section-sparkle { color: var(--accent-soft); font-size: 18px; margin-bottom: 12px; }
.section-sparkle-small { color: var(--accent-soft); font-size: 13px; margin: 12px 0; }
section h2 {
    font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
    margin: 0 0 18px; font-weight: 700;
}
.mempelai-nama { font-size: 46px; font-weight: 400; margin: 4px 0; color: var(--accent); }
.mempelai-anak { font-size: 13px; color: var(--accent-soft); margin-bottom: 6px; }

#countdown { display: flex; gap: 8px; margin: 24px 0; justify-content: center; }
#countdown div { background: #fff; border-radius: 12px; padding: 14px 8px; min-width: 58px; text-align: center; box-shadow: 0 2px 10px rgba(124,107,176,0.15); }
#countdown span { display: block; font-size: 22px; font-weight: 700; color: var(--accent); font-family: 'Quicksand', sans-serif; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-grid img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(124,107,176,0.3); position: relative; z-index: 1; }

.map-frame iframe { width: 100%; height: 260px; border: 0; border-radius: 12px; }

.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
    width: 100%; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line);
    border-radius: 14px; font-family: inherit; background: #fff;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #9a8ac9); color: #fff; border: none; padding: 13px 30px;
    border-radius: 30px; cursor: pointer; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    font-size: 12px; font-family: 'Quicksand', sans-serif; box-shadow: 0 4px 14px rgba(124,107,176,0.3);
}

.guestbook-list { text-align: left; max-height: 300px; overflow-y: auto; margin-top: 16px; }
.guestbook-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.guestbook-item .nama { font-weight: 700; color: var(--accent); }
.guestbook-item .waktu { font-size: 11px; color: var(--accent-soft); }

.gift-box { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; text-align: left; box-shadow: 0 2px 10px rgba(124,107,176,0.1); }
.gift-box img { max-width: 180px; display: block; margin: 10px auto; }

.flash-msg { padding: 12px; border-radius: 14px; margin: 16px 0; font-size: 14px; }
.flash-msg.success { background: #f0ecf9; color: #4d3d7a; }
.flash-msg.error { background: #fbeef0; color: #96324a; }

.rsvp-success-card { background: #fff; border-radius: 18px; padding: 22px 18px; text-align: center; box-shadow: 0 2px 14px rgba(124,107,176,0.18); }
.rsvp-success-icon { color: var(--accent); width: 40px; height: 40px; margin: 0 auto 10px; }
.rsvp-success-icon svg { width: 100%; height: 100%; }

.music-toggle {
    position: fixed; bottom: 16px; right: calc(50% - 240px + 16px);
    background: linear-gradient(135deg, var(--accent), #9a8ac9); color: #fff; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; z-index: 10;
}

footer.credit { text-align: center; padding: 28px; font-size: 11px; color: var(--accent-soft); }

.vip-badge {
    display: inline-block; background: linear-gradient(135deg, var(--accent-soft), #dcc189); color: #3d3350; font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; padding: 5px 14px; border-radius: 20px; margin-top: 10px; text-transform: uppercase;
}
.qr-box { background: #fff; border-radius: 16px; padding: 20px; margin: 0 0 12px; text-align: center; box-shadow: 0 2px 10px rgba(124,107,176,0.12); }
.qr-box img { max-width: 220px; width: 100%; display: block; margin: 12px auto 0; }
.qr-box p { font-size: 13px; color: var(--accent-soft); margin: 0; }
.rsvp-form input[readonly] { background: #efe9f6; color: var(--accent-soft); cursor: not-allowed; }
