/* Undangan Digital v2 — CSS 3 template. Mobile-first.
   Tipografi: Playfair Display + Great Vibes (elegan/floral) dan
   Inter (modern), dengan fallback serif/sans bila font tidak termuat. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,500;1,700&family=Great+Vibes&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600;800&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; line-height: 1.65; color: #333; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 22px; }
section { padding: 56px 0; text-align: center; }
h1, h2, h3 { line-height: 1.25; }
.eyebrow { letter-spacing: .28em; text-transform: uppercase; font-size: 11px; opacity: .72; font-weight: 600; }
.names { font-size: 40px; margin: 14px 0; }
.names-script { font-family: 'Great Vibes', 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 52px; line-height: 1.15; }
.date-big { font-size: 20px; font-weight: 600; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 999px; border: none; cursor: pointer; font-size: 15px; font-weight: 600; text-decoration: none; margin: 6px 4px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.btn-primary { background: #8a6d2b; color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid currentColor; color: inherit; }
.card { border-radius: 18px; padding: 26px; margin: 18px 0; text-align: left; box-shadow: 0 6px 24px rgba(0,0,0,.08); background: #fff; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 14.5px; }
.countdown { display: flex; justify-content: center; gap: 10px; margin: 22px 0; }
.cd-box { min-width: 70px; padding: 14px 6px; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 2px 12px rgba(0,0,0,.09); }
.cd-num { font-size: 30px; font-weight: 700; display: block; font-variant-numeric: tabular-nums; }
.cd-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ph { aspect-ratio: 4/3; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.3); background-size: cover; background-position: center; overflow: hidden; }
.ph span { font-size: 13px; background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 999px; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
input, select, textarea { width: 100%; padding: 12px; border: 1.5px solid #ddd; border-radius: 10px; font-size: 15px; margin: 6px 0 12px; font-family: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #8a6d2b; box-shadow: 0 0 0 3px rgba(138,109,43,.15); }
label { font-size: 13.5px; font-weight: 600; display: block; text-align: left; }
.rsvp-list { text-align: left; margin-top: 16px; }
.rsvp-item { border-bottom: 1px solid #eee; padding: 10px 0; font-size: 14px; }
.rsvp-item b { display: block; }
.music-bar { position: fixed; bottom: 16px; right: 16px; z-index: 50; display: flex; gap: 8px; }
.music-btn { width: 52px; height: 52px; border-radius: 50%; border: none; font-size: 20px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); background: #fff; }
.music-btn.mini { width: 44px; height: 44px; font-size: 16px; }
.cover { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; overflow: hidden; }
.cover .names { font-size: 46px; }
.cover-frame { position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 18px; pointer-events: none; }
.cover-frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; }
.hidden { display: none !important; }
.divider { width: 64px; height: 2px; margin: 20px auto; background: currentColor; opacity: .35; }
.divider-orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px auto; opacity: .75; }
.divider-orn::before, .divider-orn::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .5; }
.bank-box { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.note { font-size: 12.5px; opacity: .65; margin-top: 10px; }
footer { padding: 32px 0 100px; text-align: center; font-size: 13px; opacity: .7; }
.couple-amp { font-family: 'Great Vibes', cursive; font-size: 44px; line-height: 1; opacity: .85; }
.verse { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.6; }
.section-kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .65; font-weight: 600; }
.event-tag { display: inline-block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; }

/* --- Template 1: Elegan Klasik — emas di atas hijau tua / krem --- */
.tpl-elegan { background: #faf5e9; color: #3d3225; }
.tpl-elegan .cover { background: radial-gradient(120% 100% at 50% 0%, #4a5d3a 0%, #24351f 55%, #1a2416 100%); color: #f3e6c8; }
.tpl-elegan .cover::before { content: "❦"; position: absolute; top: 34px; font-size: 26px; color: #c9a227; opacity: .9; }
.tpl-elegan .names, .tpl-elegan .names-script { font-family: 'Playfair Display', Georgia, serif; }
.tpl-elegan .names-script { color: #e8c874; }
.tpl-elegan h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; color: #7a5c1e; letter-spacing: .01em; }
.tpl-elegan h2::after { content: "❦"; display: block; font-size: 15px; color: #c9a227; margin-top: 8px; }
.tpl-elegan section { border-bottom: 1px solid #e8dcc3; }
.tpl-elegan .card { border: 1px solid #eadfc3; background: #fffdf6; }
.tpl-elegan .btn-primary { background: linear-gradient(135deg, #a07d2c, #7a5c1e); }
.tpl-elegan .accent { color: #8a6d2b; }
.tpl-elegan .event-tag { background: #f3e6c8; color: #7a5c1e; }
.tpl-elegan .cd-box { background: #fffdf6; border: 1px solid #eadfc3; }
.tpl-elegan .cover .btn-primary { background: #c9a227; color: #24351f; }

/* --- Template 2: Floral / Taman — blush, sage, putih --- */
.tpl-floral { background: #fff8f8; color: #4a3540; }
.tpl-floral .cover { background: linear-gradient(165deg, #fdeef1 0%, #f6c9d4 48%, #cfe3c8 100%); color: #5b3040; }
.tpl-floral .cover::before { content: "🌸"; position: absolute; top: 30px; font-size: 30px; }
.tpl-floral .cover::after { content: "🌿  ✿  🌿"; position: absolute; bottom: 28px; font-size: 15px; letter-spacing: 6px; opacity: .7; }
.tpl-floral .names-script { font-family: 'Great Vibes', cursive; color: #a44a6b; }
.tpl-floral .names { font-family: 'Playfair Display', Georgia, serif; }
.tpl-floral h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; color: #a44a6b; }
.tpl-floral h2::after { content: "✿"; display: block; font-size: 15px; color: #c98ba1; margin-top: 8px; }
.tpl-floral .card { border: 1px solid #f3d3db; border-radius: 22px; background: #fff; }
.tpl-floral .btn-primary { background: linear-gradient(135deg, #d67b9c, #b05275); }
.tpl-floral .accent { color: #a44a6b; }
.tpl-floral .cd-box { background: #fff0f3; border: 1px solid #f6d3dc; }
.tpl-floral .event-tag { background: #fdeef1; color: #a44a6b; border: 1px solid #f3d3db; }
.tpl-floral .ph { border-radius: 18px; }

/* --- Template 3: Modern Minimal — hitam, putih, ruang lega --- */
.tpl-modern { background: #ffffff; color: #111; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; }
.tpl-modern .cover { background: #101010; color: #fff; }
.tpl-modern .cover::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1px; height: 72px; background: #fff; opacity: .5; }
.tpl-modern .names { font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; font-size: 36px; }
.tpl-modern .names-script { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; font-size: 38px; }
.tpl-modern h2 { font-size: 14px; letter-spacing: .32em; text-transform: uppercase; font-weight: 800; }
.tpl-modern h2::after { content: ""; display: block; width: 44px; height: 2px; background: #111; margin: 12px auto 0; }
.tpl-modern section { padding: 64px 0; }
.tpl-modern .card { box-shadow: none; border: 1px solid #eee; border-radius: 8px; }
.tpl-modern .btn-primary { background: #111; border-radius: 8px; }
.tpl-modern .accent { color: #111; }
.tpl-modern .cd-box { border: 1px solid #eee; box-shadow: none; border-radius: 8px; }
.tpl-modern .event-tag { background: #111; color: #fff; }
.tpl-modern .divider, .tpl-modern .divider-orn::before, .tpl-modern .divider-orn::after { background: #111; }
.tpl-modern .ph { border-radius: 8px; }
