:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --ash: #9BAEC2;
  --ash-soft: #DCE5EE;
  --ash-light: #EDF2F7;
  /* Deeper ash blue so white button text stays readable */
  --ash-strong: #6E849C;
  --ink: #303943;
  --muted: #788493;
  --line: #E5EAF0;
  --white: #FFFFFF;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --bar-height: 60px;
  --credit-h: 20px;
  --bar-total: calc(var(--bar-height) + var(--credit-h) + env(safe-area-inset-bottom));
  --radius: 12px;
  --shadow: 0 1px 2px rgba(48, 57, 67, .04), 0 6px 18px rgba(48, 57, 67, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ash); outline-offset: 2px; }

/* Stage */
.stage {
  position: fixed;
  top: 0;
  left: 50%;
  width: min(100%, 500px);
  height: 100dvh;
  transform: translateX(-50%);
  overflow: hidden;
  background: var(--bg);
}

.stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: none;
}

.stage__video.is-ready { display: block; }

.stage__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 32px calc(var(--bar-total) + 40px);
  text-align: center;
  color: var(--ink);
}

.stage__placeholder.is-hidden { display: none; }
.stage__kicker { font-size: 10px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.stage__names { margin: 0; font-size: clamp(21px, 6.2vw, 26px); font-weight: 600; line-height: 1.3; letter-spacing: .04em; color: var(--ink); overflow-wrap: break-word; }
.stage__rule { display: block; width: 36px; height: 1px; background: var(--ash); }
.stage__day { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.stage__date { font-size: 13.5px; font-weight: 600; letter-spacing: .2em; color: var(--ash-strong); }

/* Gate (before opening) */
.gate {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gate__half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(155, 174, 194, .10) 48px, rgba(255, 255, 255, 0) 96px, rgba(255, 255, 255, .85) 144px, rgba(255, 255, 255, 0) 192px),
    linear-gradient(180deg, #FFFFFF, #F2F5F9);
  will-change: transform;
  transition: transform .85s cubic-bezier(.65, 0, .25, 1);
}

.gate__half--left { left: 0; border-right: 1px solid var(--ash-soft); }
.gate__half--right { right: 0; border-left: 1px solid var(--ash-soft); }

.gate__button {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 0 14px;
  border: 1px solid var(--ash);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .8), var(--shadow);
  transition: background .25s, transform .2s;
}

.gate__button:hover { background: var(--ash-light); }
.gate__button:active { transform: scale(.97); }

.gate.is-open { pointer-events: none; }
.gate.is-open .gate__button { opacity: 0; transform: scale(.9); transition: opacity .25s ease, transform .3s ease; }
.gate.is-open .gate__half--left { transform: translate3d(-101%, 0, 0); transition-delay: .08s; }
.gate.is-open .gate__half--right { transform: translate3d(101%, 0, 0); transition-delay: .08s; }

/* Bottom bar */
.bar {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--bar-total);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.bar__list {
  width: min(100%, 500px);
  height: var(--bar-height);
  margin: 0 auto;
  display: flex;
}

.bar__item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-height: 44px;
  padding: 0 0 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .3s ease;
}

.bar__item i { font-size: 15px; line-height: 1; }
.bar__item:hover, .bar__item.is-active { color: var(--ash-strong); }
.bar__item::after { content: ""; position: absolute; top: -1px; left: 50%; width: 28px; height: 2px; background: var(--ash-strong); opacity: 0; transform: translateX(-50%) scaleX(.4); transition: opacity .3s ease, transform .3s ease; }
.bar__item.is-active::after { opacity: 1; transform: translateX(-50%) scaleX(1); }

.bar__item--featured { color: var(--ink); font-weight: 700; }
.bar__float {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -10px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: #3E5066;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(48, 57, 67, .28);
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.bar__float::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #3E5066; opacity: 0; animation: bar-pulse 2.4s ease-out infinite; }
.bar__float svg { width: 22px; height: 22px; }
.bar__item--featured:hover .bar__float, .bar__item--featured:focus-visible .bar__float { background: #2F3F52; transform: translateY(-2px); }
.bar__item--featured.is-active .bar__float { background: #2F3F52; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(48, 57, 67, .3); }
.bar__item--featured.is-active::after { display: none; }
@keyframes bar-pulse { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .bar__float::before { animation: none; } }
.bar__credit { margin: 0; height: var(--credit-h); padding-top: 3px; line-height: 1; text-align: center; font-family: "Cormorant Garamond", Georgia, serif; font-size: 10px; font-weight: 600; letter-spacing: .08em; color: #000; }

/* Popup (sits above the stage, below the nav bar) */
.popup {
  position: fixed;
  z-index: 9;
  top: 0;
  right: 0;
  bottom: var(--bar-total);
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
  scroll-behavior: smooth;
}

.popup.is-open { opacity: 1; transform: none; }

.popup__inner {
  position: relative;
  width: min(100%, 520px);
  min-height: 100%;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.popup[data-view="ucapan"] .popup__inner { padding-bottom: 104px; }

.popup__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0 -20px 24px;
  padding: 0 56px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.popup__title { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.popup__title:empty { display: none; }

.popup__close {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  transform: translateY(-50%);
  transition: background .2s, color .2s;
}

.popup__close:hover { background: var(--ash-light); color: var(--ink); }
.popup__close:focus-visible { outline-offset: -6px; }

.popup__back {
  display: block;
  margin: 28px auto 0;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.popup__back:hover { color: var(--ink); }

/* Shared section text */
.eyebrow { margin: 0 0 6px; font-size: 9.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ash-strong); }
.section-title { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.section-sub { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.section-head { margin-bottom: 20px; text-align: center; }

.card {
  margin-bottom: 14px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ash);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}

.btn:hover, .btn:focus-visible { background: var(--ash-light); border-color: var(--ash-strong); }
.btn:active { transform: scale(.98); }
.btn--solid { border-color: var(--ash-strong); background: var(--ash-strong); color: var(--white); flex-basis: 100%; }
.btn--solid:hover, .btn--solid:focus-visible { background: #5D7289; border-color: #5D7289; color: var(--white); }
.btn[disabled] { opacity: .7; pointer-events: none; }
.btn i { font-size: 13px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Location */
.venue { text-align: center; }
.venue__photo { overflow: hidden; margin-bottom: 20px; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--ash-light); }
.venue__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.venue__name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.venue__meta { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.venue__meta div { padding: 0 8px; }
.venue__meta div + div { border-left: 1px solid var(--line); }
.venue__meta .venue__dress { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px; border-left: 0; border-top: 1px solid var(--line); }
.venue__meta dt { font-size: 9px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.venue__meta dd { margin: 4px 0 0; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.map { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--ash-light); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Calendar */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.countdown__cell { padding: 13px 2px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-align: center; }
.countdown__cell strong { display: block; font-size: clamp(20px, 6vw, 25px); font-weight: 600; line-height: 1; color: var(--ash-strong); font-variant-numeric: tabular-nums; }
.countdown__cell span { display: block; margin-top: 7px; font-size: 8.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cal__done { margin: 0 0 18px; text-align: center; font-size: 13px; font-weight: 500; color: var(--ink); }
.cal__date { margin: 0 0 18px; text-align: center; font-size: 12px; line-height: 1.7; color: var(--muted); }
.cal__date strong { font-weight: 600; color: var(--ink); }

/* Atur cara timeline */
.agenda { margin: 0 0 20px; padding: 20px 18px 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.agenda__title { margin-bottom: 18px; text-align: center; }
.agenda__list { position: relative; margin: 0 auto; padding: 0; max-width: 260px; list-style: none; }
.agenda__list::before { content: ""; position: absolute; top: 15px; bottom: 32px; left: 15px; width: 1px; background: var(--ash-soft); }
.agenda__item { position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; align-items: center; padding-bottom: 18px; }
.agenda__dot { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--ash); border-radius: 50%; background: var(--white); color: var(--ash-strong); font-size: 12px; }
.agenda__time { font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: .04em; color: var(--ash-strong); }
.agenda__label { font-size: 12px; color: var(--ink); }

/* Contact */
.contact { display: flex; flex-direction: column; gap: 14px; }
.contact__side { margin: 0; font-size: 9px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ash-strong); }
.contact__name { margin: 4px 0 2px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.contact__phone { margin: 0; font-size: 12px; color: var(--muted); }
.contact__actions { display: grid; grid-template-columns: 1fr 42px; gap: 8px; }
.contact__actions .btn { padding: 0 12px; letter-spacing: .06em; }
.btn--icon { padding: 0 !important; color: var(--ash-strong); }
.btn--wa i { font-size: 15px; }

/* Forms */
.field { position: relative; display: block; margin-bottom: 16px; }
.field__label, .choices legend { display: block; margin-bottom: 7px; padding: 0; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 16px;
  outline: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #A3ADB8; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ash); box-shadow: 0 0 0 3px var(--ash-light); }
.field--select::after { content: ""; position: absolute; right: 16px; bottom: 19px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }

.choices { margin: 0 0 16px; border: 0; padding: 0; }
.choices div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices label { position: relative; display: block; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices label span { display: flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 12px; font-weight: 500; transition: border-color .2s, background .2s, color .2s; cursor: pointer; }
.choices input:checked + span { border-color: var(--ash-strong); background: var(--ash-light); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ash-strong); }
.choices input:focus-visible + span { outline: 2px solid var(--ash); outline-offset: 2px; }

.form-note { margin: 12px 0 0; text-align: center; font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.form-error { min-height: 18px; margin: 0 0 6px; font-size: 11px; color: #B04A4A; }
.form-card .btn { width: 100%; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success { text-align: center; padding: 26px 14px; }
.success__icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: var(--ash-light); color: var(--ash-strong); font-size: 19px; }
.success h4 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.success p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Wishes */
.wishes__count { margin: 0 0 4px; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.wishes { margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.wish { padding: 15px 2px; border-bottom: 1px solid var(--line); }
.wish__name { margin: 0 0 3px; font-size: 12px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.wish__msg { margin: 0; font-size: 13px; line-height: 1.6; color: #4A5562; overflow-wrap: anywhere; white-space: pre-line; }
.wishes__empty { margin: 0 0 28px; padding: 24px 0; border-block: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }
.wish-form { scroll-margin-top: 68px; }

/* Floating "Tulis Ucapan" button */
.fab {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(var(--bar-total) + 22px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(calc(100% - 32px), 480px);
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ash-strong);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(48, 57, 67, .16);
  transform: translateX(-50%);
  transition: opacity .25s, visibility .25s, background .2s;
}
.fab:hover { background: #5D7289; }
.fab.is-hidden { opacity: 0; visibility: hidden; }

/* Toast */
.toast {
  position: fixed;
  z-index: 40;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  max-width: calc(100% - 40px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 641px) {
  .fab { left: auto; right: max(24px, calc(50% - 380px)); width: auto; transform: none; }
}

@media (max-width: 360px) {
  .btn { font-size: 10.5px; padding: 0 10px; }
  .bar__item { font-size: 8.5px; }
  .countdown { gap: 6px; }
  .contact__actions .btn { padding: 0 8px; font-size: 10px; letter-spacing: .02em; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Small colour accents (kept subtle): one soft hue per function */
:root { --c-loc: #D98B7C; --c-cal: #7FA7C9; --c-call: #6FB38F; --c-wish: #C9A46A; --c-yes: #5FA283; --c-no: #D9806F; }
.bar__item[data-popup="lokasi"] i { color: var(--c-loc); }
.bar__item[data-popup="kalendar"] i { color: var(--c-cal); }
.bar__item[data-popup="hubungi"] i { color: var(--c-call); }
.bar__item[data-popup="ucapan"] i { color: var(--c-wish); }
.bar__item::after { background: var(--c-cal); }
.btn:not(.btn--solid) { border-color: var(--ash-soft); }
.btn:not(.btn--solid) i { color: var(--c-loc); }
.btn--solid { box-shadow: 0 3px 10px rgba(110, 132, 156, .25); }
.btn--wa i { color: #fff; }
.btn--icon { color: var(--c-call); border-color: #CFE6DA; background: #F2FAF6; }
.countdown__cell { border-top: 2px solid var(--c-cal); }
.countdown__cell:nth-child(2) { border-top-color: var(--c-call); }
.countdown__cell:nth-child(3) { border-top-color: var(--c-wish); }
.countdown__cell:nth-child(4) { border-top-color: var(--c-loc); }
.contact__side { color: var(--c-loc); }
.choices label:first-child input:checked + span { border-color: var(--c-yes); background: #EFF8F3; box-shadow: inset 0 0 0 1px var(--c-yes); }
.choices label:last-child input:checked + span { border-color: var(--c-no); background: #FCF0ED; box-shadow: inset 0 0 0 1px var(--c-no); }
.wish__name::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--c-wish); vertical-align: middle; }
.wishes__count { color: var(--c-wish); }
.success__icon { background: #EFF8F3; color: var(--c-yes); }
.popup__title { border-bottom: 2px solid var(--c-wish); padding-bottom: 4px; }
.popup__title:empty { border: 0; }


