/* assets/css/template-floral.css - tema "Floral Romantic"
   Palet: blush pink + sage green di atas krem lembut, tipografi serif elegan (Playfair Display)
   dipadu sans ringan (Jost) - dekorasi garis bunga tipis di sudut cover & pemisah tiap section. */

:root {
    --accent: #b76e79;
    --accent-soft: #8a9a7b;
    --bg: #fff9f6;
    --text: #4a3f3a;
    --line: #f0ddd6;
}

* { box-sizing: border-box; }

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

h1, h2, .mempelai-nama {
    font-family: 'Playfair Display', Georgia, 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(to bottom, rgba(74,42,50,0.35), rgba(74,42,50,0.55) 60%, rgba(74,42,50,0.75));
}
.cover-screen > * { position: relative; z-index: 1; }
.cover-screen .kepada { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.9; margin-bottom: 6px; }
.cover-screen h1 { font-size: 42px; margin: 6px 0 14px; font-weight: 600; line-height: 1.25; font-style: italic; }
.cover-screen h1 .amp { display: block; font-size: 22px; font-style: normal; opacity: 0.85; margin: 2px 0; }

.cover-floral-corner { position: absolute; width: 96px; color: #fff; opacity: 0.85; z-index: 1; }
.cover-floral-corner-top { top: 20px; left: 50%; transform: translateX(-50%); }
.cover-floral-corner-bottom { bottom: 20px; left: 50%; transform: translateX(-50%) scaleY(-1); opacity: 0.6; }
.cover-floral-corner svg { width: 100%; height: auto; display: block; }

.btn-open {
    margin-top: 24px;
    padding: 13px 34px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'Jost', sans-serif;
}

.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-flourish { color: var(--accent); font-size: 18px; margin-bottom: 14px; }
.section-flourish-small { color: var(--accent); font-size: 13px; margin: 12px 0; }
section h2 {
    font-size: 22px; font-weight: 600; font-style: italic; color: var(--accent);
    margin: 0 0 18px; letter-spacing: 0.5px;
}
.mempelai-nama { font-size: 30px; font-weight: 600; margin: 6px 0; }
.mempelai-anak { font-size: 13px; color: var(--accent-soft); margin-bottom: 8px; }

#countdown { display: flex; gap: 8px; margin: 24px 0; justify-content: center; }
#countdown div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 8px; min-width: 58px; text-align: center; }
#countdown span { display: block; font-size: 22px; font-weight: 700; color: var(--accent); font-family: 'Playfair Display', 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: 6px; 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(183,110,121,0.25); position: relative; z-index: 1; }

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

.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
    width: 100%; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line);
    border-radius: 8px; font-family: inherit; background: #fff;
}
.btn-primary {
    background: var(--accent); color: #fff; border: none; padding: 13px 30px; border-radius: 30px; cursor: pointer;
    font-weight: 500; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; font-family: 'Jost', sans-serif;
}

.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: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 12px; text-align: left; }
.gift-box img { max-width: 180px; display: block; margin: 10px auto; }

.flash-msg { padding: 12px; border-radius: 8px; margin: 16px 0; font-size: 14px; }
.flash-msg.success { background: #f1f6ec; color: #4d6b3a; }
.flash-msg.error { background: #fbeceb; color: #a13b34; }

.rsvp-success-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 18px; text-align: center; }
.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: var(--accent); 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: #fff; color: var(--accent); 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: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 0 0 12px; text-align: center; }
.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; }
#qrcode { text-align: center; padding: 40px 28px 0; border-bottom: none; }
#qrcode h2 { font-size: 22px; font-weight: 600; font-style: italic; color: var(--accent); }
.rsvp-form input[readonly] { background: #f5efec; color: var(--accent-soft); cursor: not-allowed; }
