/* assets/css/template-rustic.css - tema "Nature Rustic"
   Palet: terracotta + olive di atas krem kertas kraft, aksen dedaunan, nama mempelai pakai font
   tulisan tangan (Caveat) dipadu Quicksand yang hangat & membulat utk isi lainnya. */

:root {
    --accent: #8b5e3c;
    --accent-soft: #6b7a4f;
    --bg: #faf3e8;
    --text: #3e2f24;
    --line: #e3d5bd;
}

* { box-sizing: border-box; }

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

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

.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: flex-end;
    color: #fff;
    text-align: center;
    padding: 48px 28px;
    position: relative;
}
.cover-screen::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(43,30,17,0.85), rgba(43,30,17,0.15) 55%);
}
.cover-screen > * { position: relative; z-index: 1; }
.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: 54px; margin: 4px 0 4px; font-weight: 700; line-height: 1.1; }
.cover-screen h1 .amp { display: block; font-size: 26px; opacity: 0.85; }
.cover-leaf { width: 60px; color: #fff; opacity: 0.75; margin: 8px 0; }
.cover-leaf svg { width: 100%; height: auto; display: block; }

.btn-open {
    margin-top: 22px;
    padding: 13px 32px;
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Quicksand', sans-serif;
}

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

section { padding: 52px 28px; text-align: center; border-bottom: 2px dashed var(--line); }
section h2 {
    font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
    margin: 0 0 20px; font-weight: 700;
}
.mempelai-nama { font-size: 44px; font-weight: 700; margin: 4px 0; color: var(--accent); }
.mempelai-anak { font-size: 13px; color: var(--accent-soft); margin-bottom: 6px; }
.leaf-divider { font-size: 22px; margin: 14px 0; }

#countdown { display: flex; gap: 8px; margin: 24px 0; justify-content: center; }
#countdown div { background: #fff; border-radius: 10px; padding: 14px 8px; min-width: 58px; text-align: center; box-shadow: 0 2px 6px rgba(139,94,60,0.12); }
#countdown span { display: block; font-size: 24px; 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: 10px; 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(139,94,60,0.25); position: relative; z-index: 1; }

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

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

.guestbook-list { text-align: left; max-height: 300px; overflow-y: auto; margin-top: 16px; }
.guestbook-item { border-bottom: 1px dashed 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: 10px; padding: 16px; margin-bottom: 12px; text-align: left; box-shadow: 0 2px 6px rgba(139,94,60,0.1); }
.gift-box img { max-width: 180px; display: block; margin: 10px auto; }

.flash-msg { padding: 12px; border-radius: 10px; margin: 16px 0; font-size: 14px; }
.flash-msg.success { background: #eef3e4; color: #4c5c33; }
.flash-msg.error { background: #f8e9e2; color: #8c4a2f; }

.rsvp-success-card { background: #fff; border-radius: 14px; padding: 22px 18px; text-align: center; box-shadow: 0 2px 8px rgba(139,94,60,0.12); }
.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: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; padding: 5px 14px; border-radius: 3px; margin-top: 10px; text-transform: uppercase;
}
.qr-box { background: #fff; border-radius: 12px; padding: 20px; margin: 0 0 12px; text-align: center; box-shadow: 0 2px 6px rgba(139,94,60,0.1); }
.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: #f2e8d8; color: var(--accent-soft); cursor: not-allowed; }
