/* Undangan "Vintage Peacock" — desain mengikuti referensi inved.id vintage-7. */
@font-face {
  font-family: 'Iskry';
  src: url('assets/fonts/Iskry.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Pinyon Script';
  src: url('assets/fonts/PinyonScript.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: only light;
  --blue: #4c7ba3;
  --blue-dark: #3a6182;
  --cream: #f5efe6;
  --ink: #2a2a2a;
  --muted: #555;
  --heading: 'Iskry', serif;
  --script: 'Pinyon Script', 'Charm', cursive;
  --body: 'Inria Serif', serif;
  --serif: 'Cormorant Garamond', serif;
  --names: 'Metal', cursive;
  --vh: 1vh;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--body);
  background: #f2ece4;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; height: 100svh; }
body.lb-open { overflow: hidden; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: normal; }
[hidden] { display: none !important; }
/* Pinyon Script sudah memiliki kemiringan kaligrafi alami. */
.slant { display: inline-block; }

/* ---------- Tata letak: satu kolom (HP) / banner + kolom 500px (desktop) ---------- */
.app { display: flex; min-height: 100vh; width: 100%; }
.desktop-banner { display: none; }
.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--cream);
  overflow-x: hidden;
}
/* Latar bunga tetap di belakang seluruh isi */
.container::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('assets/v4/flowers.webp') center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.container > section { position: relative; z-index: 1; }

@media (min-width: 992px) {
  body { overflow: hidden; }
  .app { height: 100vh; overflow: hidden; }
  .desktop-banner {
    display: flex;
    flex: 1;
    position: relative;
    align-items: center;
    justify-content: center;
    background: url('assets/v4/frame-bg.webp') center / cover no-repeat;
  }
  .desktop-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(40, 35, 25, .45);
    backdrop-filter: blur(2px);
  }
  .banner-content { position: relative; text-align: center; padding: 40px; color: #fff; }
  .banner-sub {
    display: block;
    font-size: .75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 16px;
  }
  .banner-title {
    font-family: var(--names);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(2.8rem, 3.7vw, 4.2rem);
    letter-spacing: normal;
    line-height: 1.35;
    margin-bottom: 20px;
  }
  .banner-date {
    display: inline-block;
    font-size: .85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }
  .container {
    width: 500px;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, .15);
  }
  body.locked .container, body.lb-open .container { overflow: hidden; }
  .container::before { left: auto; width: 500px; }
  .container::-webkit-scrollbar { width: 6px; }
  .container::-webkit-scrollbar-thumb { background: rgba(76, 123, 163, .4); border-radius: 10px; }
  .float-btn { right: 16px !important; }
}

/* ---------- Animasi muncul (dipicu JS: .active) ---------- */
.anim .r-in { opacity: 0; transform: scale(.96); transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .35s cubic-bezier(.16, 1, .3, 1); }
.anim .r-up { opacity: 0; transform: translateY(3rem) scale(.95); transition: 1s ease; }
.anim .r-down { opacity: 0; transform: translateY(-3rem) scale(.95); transition: 1s ease; }
.anim .r-left { opacity: 0; transform: translateX(-3rem) scale(.95); transition: 1s ease; }
.anim .r-right { opacity: 0; transform: translateX(3rem) scale(.95); transition: 1s ease; }
.anim .active { opacity: 1; transform: none; }
.d1 { transition-delay: .15s !important; }
.d2 { transition-delay: .3s !important; }
.d3 { transition-delay: .45s !important; }
.d4 { transition-delay: .6s !important; }
.d5 { transition-delay: .75s !important; }

/* ---------- Tombol melayang ---------- */
.float-btn {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  z-index: 999;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.music-btn { bottom: max(16px, env(safe-area-inset-bottom)); background: var(--blue); color: #fff; border: none; font-size: 1.2rem; }
.music-btn.playing svg { animation: spin 4s linear infinite; }
.autoscroll-btn {
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 44px);
  background: #fbf8f1;
  color: var(--blue-dark);
  border: 1.5px solid var(--blue);
}
.autoscroll-btn[aria-pressed="true"] { background: var(--blue); color: #fff; animation: pulse 2s infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(76, 123, 163, .5); }
  50% { box-shadow: 0 0 18px rgba(76, 123, 163, .9); }
}

/* ---------- Cover ---------- */
.cover {
  position: absolute !important;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  z-index: 1000 !important;
  background: var(--blue) url('assets/v4/frame-bg.webp') center top / cover no-repeat;
  text-align: center;
  overflow: hidden;
  transition: transform .9s cubic-bezier(.77, 0, .175, 1), opacity .8s ease, visibility .8s ease;
}
.cover.is-open { transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none; }
.cover-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 31svh 20px 27svh;
}
.cover-sub { display: block; font-family: var(--heading); font-size: .85rem; letter-spacing: 3px; margin-bottom: 6px; }
.cover-title { font-family: var(--names); font-style: normal; font-weight: 400; font-size: clamp(2rem, 8.5vw, 2.8rem); color: var(--blue-dark); line-height: 1.25; margin: 4px 0 10px; }
.cover-date, .cover-label, .cover-guest { font-size: .98rem; letter-spacing: .5px; }
.cover-label { margin-bottom: 4px; }
.cover-guest { font-weight: 700; margin-bottom: 16px; }
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 30px;
  padding: 9px 26px;
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.anim .cover-head, .anim .cover-foot { animation: rise 1s .3s both; }
.anim .cover-foot { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(25px); } }

/* ---------- Judul umum ---------- */
.section-title { font-family: var(--heading); font-size: 2.2rem; text-align: center; letter-spacing: 1px; margin-bottom: 25px; color: var(--ink); }

/* ---------- Hero: bingkai oval di taman ---------- */
.hero {
  min-height: 100vh;
  min-height: calc(var(--vh) * 100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 90px 20px 80px;
  text-align: center;
  overflow: hidden;
  background: var(--blue) url('assets/v4/garden-bg.webp') no-repeat center calc(100% + 55px) / 130% auto;
}
.oval {
  width: 250px;
  height: 360px;
  margin: 40px auto 20px;
  border-radius: 125px;
  border: 4px solid #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .18), 0 0 0 1px rgba(255, 255, 255, .7);
  overflow: hidden;
  background: #f0ece1;
}
.oval img, .verse-photo img, .person-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-sub { font-size: 1.15rem; letter-spacing: 1.5px; margin: 8px 0 6px; }
.hero-title { font-family: var(--names); font-style: normal; font-weight: 400; font-size: clamp(2.2rem, 9.5vw, 3.4rem); color: var(--blue-dark); line-height: 1.25; margin: 2px 0 10px; }
.hero-date { font-size: .95rem; font-weight: 700; letter-spacing: 3.5px; margin-bottom: 25px; }
.scroll-hint { display: flex; flex-direction: column; align-items: center; width: 100%; font-size: .8rem; font-weight: 700; letter-spacing: 1px; }
.scroll-hint p { margin-bottom: 3px; }
.scroll-hint svg { font-size: .95rem; animation: bounce 2s infinite; }
.butterflies { width: 100%; max-width: 480px; height: auto; max-height: 150px; object-fit: contain; margin-top: 8px; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* ---------- Ayat ---------- */
.verse {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 175px;
  text-align: center;
  overflow: hidden;
  background: var(--blue) url('assets/v4/flowers.webp') center bottom / cover no-repeat;
}
.verse-photo {
  width: 250px;
  height: 350px;
  margin: 0 auto 24px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
  background: #f0ece1;
}
.monogram { display: inline-flex; align-items: center; gap: 14px; margin: 8px auto 26px; color: #fff; }
.monogram span { font-family: var(--heading); font-size: 3rem; line-height: 1; }
.monogram i { width: 1.5px; height: 48px; background: #fff; opacity: .85; }
.verse-text {
  max-width: 440px;
  padding: 0 10px;
  font-size: .95rem;
  line-height: 1.65;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

/* ---------- Mempelai ---------- */
.couple { padding: 50px 16px 60px; display: flex; justify-content: center; }
.couple-card {
  width: 100%;
  max-width: 440px;
  padding: 55px 22px;
  border-radius: 24px;
  border: 3.5px solid #fff;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
  color: #fff;
  text-align: center;
}
.couple-intro { margin-bottom: 30px; padding: 0 10px; }
.greet-title { font-family: var(--heading); font-size: 1.2rem; margin-bottom: 14px; }
.greet-text { font-size: .92rem; opacity: .95; }
.person { display: flex; flex-direction: column; align-items: center; margin-bottom: 25px; }
.person-photo {
  width: 220px;
  height: 310px;
  margin: 10px auto 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  background: #f0ece1;
}
/* Scales with the screen so the longest name (Syifa Nuraeni Maulidza, S.Pd) stays on one line */
.person-name { font-family: var(--names); font-style: normal; font-weight: 400; font-size: min(2rem, calc((100vw - 90px) / 11.2)); white-space: nowrap; line-height: 1.25; margin: 6px 0 10px; }
.person-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 30px;
  color: #fff;
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s;
}
.person-ig:hover { background: rgba(255, 255, 255, .15); }
.person-ig svg { font-size: 1rem; }
.person-parents { font-size: .92rem; font-weight: 700; }
.couple-amp { font-family: Georgia, 'Times New Roman', serif; font-size: 1.8rem; line-height: 1; margin: 10px 0 20px; }

/* ---------- Save the date ---------- */
.countdown-section {
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 90px 16px 60px;
  text-align: center;
  overflow: hidden;
  background: var(--blue) url('assets/v4/photos/prewed-07.webp') center / cover no-repeat;
}
.countdown-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .2) 30%, var(--blue) 70%, var(--blue) 100%);
}
.countdown-box { position: relative; width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: center; }
.std-title { font-family: var(--heading); font-size: 2.2rem; color: #fff; letter-spacing: 1px; margin-bottom: 14px; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.countdown { display: flex; gap: 8px; width: 100%; }
.countdown div {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, .9);
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  color: #fff;
}
.countdown span { display: block; font-family: var(--heading); font-size: 1.35rem; line-height: 1.1; text-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.countdown small { display: block; font-size: .65rem; margin-top: 2px; letter-spacing: .3px; }
.btn-cal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 20px;
  border-radius: 30px;
  background: #fff;
  color: var(--blue);
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
  transition: transform .3s ease;
}
.btn-cal:hover { transform: translateY(-2px); }

/* ---------- Acara ---------- */
.events { padding: 15px 16px 60px; margin-top: -2px; display: flex; justify-content: center; background: var(--blue); }
.event-card {
  width: 100%;
  max-width: 440px;
  padding: 45px 24px;
  border-radius: 24px;
  border: 3.5px solid #fff;
  background: rgba(255, 255, 255, .88) url('assets/v4/flowers.webp') center top / cover no-repeat;
  background-blend-mode: overlay;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
  text-align: center;
}
.event-title { font-family: var(--heading); font-size: 2.2rem; color: var(--blue); margin-bottom: 8px; }
.event-date { font-family: var(--heading); font-size: 1.3rem; margin-bottom: 6px; }
.event-time { font-size: .95rem; color: #4a4a4a; margin-bottom: 20px; }
.icon-divider { display: flex; align-items: center; gap: 15px; width: 80%; margin: 20px auto; color: var(--blue); }
.icon-divider span { flex: 1; height: 1.5px; background: var(--ink); opacity: .8; }
.icon-divider svg { font-size: 1.4rem; }
.event-venue { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.event-address { font-size: .92rem; color: var(--muted); margin-bottom: 24px; }
.btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  transition: background .3s ease, transform .3s ease;
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.event-sep { height: 1px; margin: 40px 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .15), transparent); }

/* ---------- Galeri ---------- */
.gallery-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 16px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; max-width: 440px; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  cursor: zoom-in;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}
.gallery img:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 16 / 9; }

/* ---------- Love story ---------- */
.story { padding: 40px 16px; display: flex; justify-content: center; }
.story-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 22px;
  border-radius: 24px;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  text-align: center;
}
.story-heading { color: var(--blue); }
.story-item + .story-item { margin-top: 30px; padding-top: 25px; border-top: 1px dashed rgba(0, 0, 0, .12); }
.story-item img { width: 100%; border-radius: 14px; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0, 0, 0, .08); }
.story-item h4 { font-family: var(--heading); font-size: 1.25rem; margin-bottom: 8px; }
.story-item p { font-size: .92rem; color: var(--muted); line-height: 1.65; text-align: justify; }

/* ---------- Wedding gift ---------- */
.gift {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 16px;
  text-align: center;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gift-title { font-family: var(--serif); font-size: 2.5rem; color: var(--blue); margin-bottom: 12px; }
.gift-desc { max-width: 440px; margin: 0 auto 25px; font-size: .98rem; color: var(--muted); line-height: 1.65; }
.gift-cards { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 430px; }
.atm {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1.5px solid rgba(76, 123, 163, .3);
  background: url('assets/v4/card-bg.jpg') center / cover no-repeat;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
  text-align: left;
}
.atm-address { margin-top: 27px; }
.atm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.atm-logo { max-height: 38px; width: auto; }
.atm-chip { max-height: 28px; width: auto; }
.atm-gift { font-size: 1.5rem; opacity: .85; }
.atm-number { font-family: monospace; font-size: 1.35rem; font-weight: 800; letter-spacing: 3px; margin-bottom: 4px; }
.atm-name { font-size: .88rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 16px; }
.atm-text { font-size: .9rem; line-height: 1.5; margin: 4px 0 16px; }
.atm-foot { text-align: right; }
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border: none;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transition: background .25s ease, transform .25s ease;
}
.btn-copy:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Instagram Filter ---------- */
.streaming { padding: 40px 20px; display: flex; justify-content: center; }
/* Double-border card (after reference inved-nature-6) */
.stream-card {
  width: 100%;
  max-width: 440px;
  padding: 5px;
  border: 2.5px solid var(--blue);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .2);
}
.stream-inner { padding: 38px 22px; border: 2.5px solid var(--blue); border-radius: 18px; text-align: center; color: var(--blue-dark); }
.stream-icon { font-size: 2rem; margin: 0 auto 12px; }
.stream-title { font-family: var(--serif); font-size: 2.1rem; letter-spacing: 1px; margin-bottom: 10px; }
.stream-desc { font-size: .92rem; line-height: 1.5; }
.stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 24px;
  border: 1.5px solid #fff;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: background .3s ease, transform .3s ease;
}
.stream-btn:hover { background: var(--blue-dark); transform: translateY(-2px); }

.instagram-filter-section { padding: 50px 16px 0; display: flex; justify-content: center; }
.instagram-filter-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 22px 30px;
  border-radius: 24px;
  border: 3.5px solid #fff;
  background: rgba(255, 255, 255, .88) url('assets/v4/flowers.webp') center top / cover no-repeat;
  background-blend-mode: overlay;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
  text-align: center;
}
.instagram-filter-title { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; color: var(--blue-dark); margin-bottom: 24px; }
.instagram-filter-desc { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.instagram-filter-preview { width: 200px; max-width: 100%; aspect-ratio: 2 / 3; margin: 24px auto; border-radius: 10px; overflow: hidden; }
.instagram-filter-preview img { width: 100%; height: 100%; object-fit: cover; }
.instagram-filter-cta { min-height: 44px; border-radius: 30px; text-decoration: none; }
.instagram-filter-cta[aria-disabled="true"] { opacity: .6; cursor: default; pointer-events: none; }


/* ---------- Ucapan & RSVP ---------- */
.rsvp-section { padding: 50px 16px; display: flex; justify-content: center; }
.rsvp-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 22px;
  border-radius: 24px;
  border: 3.5px solid #fff;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
}
.rsvp-title { font-family: var(--heading); font-size: 2.2rem; color: var(--blue); text-align: center; margin-bottom: 8px; }
.rsvp-stats { text-align: center; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.rsvp-stats strong { color: var(--blue); }
.rsvp { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.field-wrap { position: relative; }
.field {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color .3s ease;
  appearance: none;
}
select.field {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%232a2a2a' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  padding-right: 36px;
}
textarea.field { resize: vertical; padding-bottom: 22px; }
.field:focus { outline: none; border-color: var(--blue); }
.counter { position: absolute; right: 14px; bottom: 8px; font-size: .75rem; color: #888; }
.error { color: #c0392b; font-size: .85rem; text-align: center; }
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 20px;
  border: none;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  transition: background .3s ease;
}
.btn-submit:hover { background: var(--blue-dark); }
.btn-submit:disabled { opacity: .7; cursor: wait; }
.wishes { max-height: 420px; overflow-y: auto; border-top: 1px solid rgba(0, 0, 0, .08); }
.wish { padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.wish:last-child { border-bottom: none; }
.wish strong { font-size: .95rem; }
.wish-badge { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 10px; font-size: .7rem; background: rgba(76, 123, 163, .15); color: var(--blue-dark); vertical-align: 2px; }
.wish-badge.no { background: rgba(0, 0, 0, .07); color: #777; }
.wish small { display: block; font-size: .75rem; color: #888; margin: 2px 0 4px; }
.wish p { font-size: .9rem; color: #444; white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- Penutup ---------- */
.closing {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 25px 120px;
  text-align: center;
  color: #fff;
  background: var(--blue) url('assets/v4/photos/prewed-15.webp') center / cover no-repeat;
}
.closing::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.closing-content { position: relative; max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.closing-text { font-size: .98rem; line-height: 1.65; margin-bottom: 22px; }
.closing-salam { font-size: .98rem; margin-bottom: 25px; }
.closing-names { font-family: var(--names); font-style: normal; font-weight: 400; font-size: clamp(2rem, 8.5vw, 2.8rem); line-height: 1.25; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 12, 10, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 15px 40px rgba(0, 0, 0, .6); }
.lb-close { position: absolute; top: 20px; right: 25px; background: none; border: none; color: #fff; font-size: 2.5rem; line-height: 1; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  transition: background .3s ease;
}
.lb-nav:hover { background: var(--blue); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  z-index: 3000;
  transform: translate(-50%, 20px);
  padding: 10px 20px;
  border-radius: 24px;
  background: rgba(42, 42, 42, .92);
  color: #fff;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Layar kecil ---------- */
@media (max-width: 480px) {
  .hero { padding: 80px 20px 70px; background-size: 135% auto; background-position: center calc(100% + 50px); }
  .oval { width: 220px; height: 320px; border-radius: 110px; margin: 30px auto 18px; }
  .hero-sub { font-size: 1.05rem; }
  .hero-date { font-size: .88rem; letter-spacing: 2.5px; }
  .verse-photo { width: 220px; height: 310px; border-radius: 16px; margin-bottom: 20px; }
  .monogram span { font-size: 2.5rem; }
  .monogram i { height: 40px; }
  .verse-text { font-size: .88rem; line-height: 1.6; }
  .person-photo { width: 190px; height: 270px; border-radius: 16px; }
  .countdown-section { height: 420px; padding: 70px 16px 45px; }
  .std-title { font-size: 1.9rem; margin-bottom: 12px; }
  .countdown { gap: 6px; }
  .atm-number { font-size: 1.15rem; letter-spacing: 2px; }
}
@media (min-width: 576px) and (max-width: 991px) {
  .gallery { grid-template-columns: repeat(3, 1fr); max-width: 640px; }
  .gallery img:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
