/* =============================================================
   Hidup Kedua · halaman undangan & RSVP
   Diturunkan dari desain Claude Design "Hidup Kedua RSVP".
   ============================================================= */
:root {
  --navy: #22345A;
  --maroon: #6B1730;
  --maroon-dark: #561226;
  --paper: #F2F2EF;
  --ink: #2A3242;
  --muted: #5A6478;
  --sage: #CDD2CF;
  --mist: #E6E8E5;
  --line: #AEB5BF;
  --amber: #8A6A1F;
  --disabled: #9AA1AC;
  --gutter: clamp(16px, 4vw, 40px);
  --cond: 'Barlow Condensed', sans-serif;
  --serif: 'Cormorant Garamond', serif;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Barlow', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--maroon); }
a:hover { color: var(--navy); }
input, textarea, button, select { font-family: inherit; }
::selection { background: var(--maroon); color: #fff; }
input:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.page { min-height: 100vh; background: var(--paper); overflow-x: hidden; }

/* ---------- Bagian umum ---------- */
.section {
  scroll-margin-top: 64px;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.section-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
.section-head__title {
  font-family: var(--cond); font-weight: 500; font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: 0.32em; color: var(--navy);
}
.rule { height: 2px; background: var(--navy); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.16em;
  border-radius: 2px;
  border: 2px solid var(--navy);
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--lg { font-size: 17px; padding: 15px 26px; }
.btn--md { font-size: 16px; padding: 14px 22px; }
.btn--primary { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.btn--primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--disabled, .btn--disabled:hover {
  background: var(--disabled); border-color: var(--disabled); color: #fff; cursor: not-allowed;
}

/* ---------- Navigasi ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242, 242, 239, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 52, 90, 0.15);
}
.nav__inner {
  max-width: 1240px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 36px; width: auto; display: block; }
.nav__links {
  display: flex; gap: 22px; overflow-x: auto; flex: 1; min-width: 0;
  font-family: var(--cond); font-weight: 500; font-size: 15px; letter-spacing: 0.18em;
  text-transform: uppercase; white-space: nowrap; scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a { color: var(--navy); text-decoration: none; }
.nav__links a:hover { color: var(--maroon); }
.nav__rsvp {
  flex: none; background: var(--maroon); color: #fff; text-decoration: none;
  font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 10px 18px; border-radius: 2px;
}
.nav__rsvp:hover { background: var(--navy); color: #fff; }
.nav__rsvp.btn--disabled { background: var(--disabled); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(40px, 6vw, 72px);
}
.rule-title {
  display: grid; grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 6fr);
  align-items: center; gap: 24px;
}
.rule-title__text {
  font-family: var(--cond); font-weight: 500; font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0.32em; color: var(--navy);
}
.hero__invite {
  margin: 22px 0 0; font-family: var(--cond); font-weight: 500;
  font-size: clamp(14px, 1.5vw, 18px); letter-spacing: 0.24em; color: var(--navy);
  text-align: center; text-wrap: balance;
}
.hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(20px, 3vw, 36px);
}
.hero__left { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero__name {
  font-family: var(--cond); font-weight: 700; font-size: clamp(30px, 4.4vw, 54px);
  letter-spacing: 0.06em; color: var(--navy); line-height: 1;
}
.hero__logo { width: min(100%, 540px); height: auto; display: block; margin-top: 10px; }
.hero__book {
  border-top: 2px dotted var(--navy); border-bottom: 2px dotted var(--navy); padding: 16px 0;
  font-family: var(--cond); font-size: clamp(17px, 1.8vw, 22px); letter-spacing: 0.14em;
  color: var(--navy); line-height: 1.45; text-wrap: pretty; text-transform: uppercase;
}
.hero__book div { font-weight: 500; }
.hero__book em { font-style: italic; }
.hero__book strong { font-weight: 700; }
.hero__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18px;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact__label { font-family: var(--cond); font-size: 13px; letter-spacing: 0.22em; color: var(--muted); }
.fact__value {
  font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 0.04em;
  color: var(--navy); line-height: 1.15;
}
.fact__sub { font-weight: 500; font-size: 17px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero__stage { position: relative; min-height: clamp(420px, 58vw, 620px); min-width: 0; }
.hero__typo {
  position: absolute; top: 0; right: -4%; width: auto; height: 88%; max-width: 84%;
  object-fit: contain; object-position: right top; mix-blend-mode: multiply; opacity: 0.95;
  /* Latar JPEG abu-abu 245; dinaikkan ke putih agar tidak tampak kotak di atas kertas. */
  filter: brightness(1.045);
  pointer-events: none;
}

/* Buku 3D */
.book-wrap { position: absolute; left: 4%; bottom: 36px; perspective: 1600px; }
.book-shadow {
  position: absolute; left: 6px; right: -30px; bottom: -22px; height: 34px;
  background: radial-gradient(ellipse at center, rgba(20, 28, 48, 0.38), rgba(20, 28, 48, 0) 70%);
  filter: blur(4px);
}
/* --turn (0–1) diisi rsvp.js dari posisi gulir: 0 = sudut awal desain (sampul + tepi
   halaman), 1 = buku berputar memperlihatkan punggung. Gulir ke atas memutarnya kembali. */
.book {
  --turn: 0;
  position: relative; display: block;
  width: clamp(170px, 48vw, 250px); aspect-ratio: 250 / 480;
  transform-style: preserve-3d;
  transform:
    translateY(calc(var(--turn) * -10px))
    rotateY(calc(-28deg + var(--turn) * 52deg))
    rotateX(calc(4deg - var(--turn) * 6deg));
  transition: transform 0.15s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .book { transition: none; }
}
.book__back {
  position: absolute; inset: 0; transform: translateZ(-18px) rotateY(180deg);
  background: #8CC9BC; border-radius: 6px 2px 2px 6px;
}
.book__pages {
  position: absolute; top: 5px; bottom: 5px; right: -17px; width: 34px; transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #F4EEDF 0 2px, #E3DBC8 2px 3px);
}
.book__spine {
  position: absolute; top: 0; left: -18px; width: 36px; max-width: none; height: 100%;
  object-fit: cover; transform: rotateY(-90deg); display: block;
}
.book__front {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translateZ(18px); border-radius: 2px 6px 6px 2px; display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.kla-badge {
  align-self: flex-end; display: flex; align-items: center; gap: 12px; background: var(--paper);
  padding: 10px 12px 10px 10px; border: 1px solid rgba(34, 52, 90, 0.25);
}
.kla-badge img { width: 54px; height: auto; display: block; }
.kla-badge__text { font-family: var(--cond); color: var(--navy); line-height: 1.15; }
.kla-badge__small { font-size: 12px; letter-spacing: 0.22em; }
.kla-badge__big { font-weight: 700; font-size: 20px; letter-spacing: 0.06em; }

/* ---------- Countdown ---------- */
.countdown { background: var(--navy); color: var(--paper); }
.countdown__inner {
  max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center;
}
.countdown__eyebrow { font-family: var(--cond); font-weight: 500; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: 0.3em; }
.countdown__grid { display: flex; justify-content: center; gap: clamp(8px, 2vw, 24px); width: 100%; max-width: 760px; }
.cd-box {
  flex: 1 1 0; min-width: 0; max-width: 170px; border: 1px solid rgba(242, 242, 239, 0.35);
  padding: clamp(12px, 2vw, 18px) 6px 14px;
}
.cd-box--accent { border-color: var(--paper); background: var(--paper); color: var(--maroon); }
.cd-box--accent .cd-label { color: var(--navy); }
.cd-num {
  font-family: var(--cond); font-weight: 700; font-size: clamp(40px, 9vw, 112px);
  line-height: 0.9; font-variant-numeric: tabular-nums;
}
.cd-label { font-family: var(--cond); font-size: clamp(11px, 1.4vw, 14px); letter-spacing: 0.2em; margin-top: 10px; }
.countdown__done { font-family: var(--cond); font-weight: 700; font-size: clamp(40px, 6vw, 72px); letter-spacing: 0.04em; }
.countdown__line {
  font-family: var(--cond); font-weight: 500; font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Sinopsis ---------- */
.scene { margin: clamp(28px, 4vw, 44px) 0 0; position: relative; }
.scene img { width: 100%; height: auto; display: block; aspect-ratio: 1131 / 470; object-fit: cover; }
.quote { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 900px; text-align: center; position: relative; }
.quote__mark { font-family: var(--serif); font-size: 120px; line-height: 0.6; color: var(--maroon); height: 44px; }
.quote__text {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(28px, 3.8vw, 48px); line-height: 1.22; color: var(--maroon); text-wrap: balance;
}
.quote__cite { margin-top: 22px; font-family: var(--cond); font-size: 15px; letter-spacing: 0.26em; color: var(--navy); }
.syn-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 7vw, 88px); align-items: start;
}
.stack-18 { display: flex; flex-direction: column; gap: 18px; }
.h2-md {
  margin: 0; font-family: var(--cond); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: 0.04em; color: var(--navy); line-height: 1.05;
}
.prose { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink); text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tag {
  font-family: var(--cond); font-size: 14px; letter-spacing: 0.16em; color: var(--navy);
  border: 1px solid var(--navy); padding: 6px 12px;
}
.chapters { background: var(--sage); padding: clamp(22px, 3vw, 36px); }
.chapters__title { font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: 0.28em; color: var(--navy); margin-bottom: 8px; }
.chapter {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0;
  border-bottom: 2px dotted rgba(34, 52, 90, 0.55);
}
.chapter__num { font-family: var(--cond); font-weight: 700; font-size: 34px; line-height: 1; color: var(--maroon); }
.chapter__title { font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; color: var(--navy); }
.chapter__desc { font-size: 16px; line-height: 1.5; color: var(--ink); margin-top: 2px; }

/* ---------- Penulis ---------- */
.authors-sec {
  scroll-margin-top: 64px; background: var(--mist);
  border-top: 2px dotted var(--navy); border-bottom: 2px dotted var(--navy);
}
.authors-sec__inner { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.authors-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(28px, 4vw, 48px); margin-top: clamp(28px, 4vw, 48px);
}
.author {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; background: var(--paper);
  padding: clamp(18px, 2.4vw, 28px); border: 1px solid rgba(34, 52, 90, 0.2);
}
.author__photo { flex: 0 0 180px; max-width: 100%; aspect-ratio: 4 / 5; position: relative; }
.author__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.author__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; padding: 16px; text-align: center;
  background: repeating-linear-gradient(135deg, var(--mist) 0 10px, #DCDFDC 10px 20px);
  border: 1.5px dashed rgba(34, 52, 90, 0.35); color: var(--muted);
  font-family: var(--cond); font-size: 14px; letter-spacing: 0.08em;
}
.author__placeholder svg { width: 40px; height: 40px; opacity: 0.55; }
.author__body { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.author__role { font-family: var(--cond); font-size: 13px; letter-spacing: 0.24em; color: var(--maroon); }
.author__name {
  margin: 4px 0 0; font-family: var(--cond); font-weight: 700; font-size: 30px;
  letter-spacing: 0.04em; color: var(--navy); line-height: 1;
}
.author__bio { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.works { border-top: 2px dotted rgba(34, 52, 90, 0.5); padding-top: 12px; }
.works__title { font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: 0.22em; color: var(--navy); margin-bottom: 8px; }
.works__list { display: flex; flex-direction: column; gap: 6px; }
.work { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink); }
.work em { font-style: italic; }
.work span { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.figure-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 72px);
}
.figure-img { position: relative; max-width: 420px; width: 100%; justify-self: center; }
.figure-img img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.figure-copy { display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-family: var(--cond); font-size: 14px; letter-spacing: 0.26em; color: var(--maroon); }
.figure-name {
  margin: 0; font-family: var(--cond); font-weight: 700; font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.04em; color: var(--navy); line-height: 0.95;
}
.figure-lead {
  margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35; color: var(--maroon); text-wrap: pretty;
}
.figure-text { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); text-wrap: pretty; max-width: 52ch; }

/* ---------- Agenda ---------- */
.agenda-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(28px, 5vw, 64px); margin-top: clamp(28px, 4vw, 48px); align-items: start;
}
.h2-lg {
  margin: 0; font-family: var(--cond); font-weight: 700; font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: 0.03em; color: var(--navy); line-height: 1;
}
.lead-muted { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.agenda-panel {
  background: var(--navy); color: var(--paper); padding: 24px;
  display: flex; flex-direction: column; gap: 6px; margin-top: 8px;
}
.agenda-panel__session { font-family: var(--cond); font-size: 13px; letter-spacing: 0.24em; opacity: 0.85; }
.agenda-panel__time {
  font-family: var(--cond); font-weight: 700; font-size: clamp(56px, 7vw, 84px);
  line-height: 0.9; font-variant-numeric: tabular-nums;
}
.agenda-panel__title { font-family: var(--cond); font-weight: 600; font-size: 24px; letter-spacing: 0.04em; margin-top: 6px; }
.agenda-panel__nav { display: flex; gap: 10px; margin-top: 14px; }
.icon-btn {
  width: 44px; height: 44px; border: 1px solid rgba(242, 242, 239, 0.5); background: transparent;
  color: var(--paper); font-size: 20px; cursor: pointer;
}
.icon-btn:hover { background: var(--paper); color: var(--navy); }
.timeline { position: relative; }
.timeline__line {
  position: absolute; left: 113px; top: 26px; bottom: 26px; width: 2px;
  background: rgba(34, 52, 90, 0.35);
}
.ag-item {
  position: relative; width: 100%; display: grid; grid-template-columns: 72px 20px minmax(0, 1fr);
  gap: 16px; align-items: start; text-align: left; background: transparent; border: none;
  border-bottom: 1px solid rgba(34, 52, 90, 0.12); padding: 16px; cursor: pointer;
  color: inherit; font: inherit;
}
.ag-item:hover, .ag-item.is-active { background: #fff; }
.ag-item__time {
  font-family: var(--cond); font-weight: 700; font-size: 22px; color: var(--navy);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.ag-item__dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--navy); margin-top: 2px; position: relative; z-index: 1;
}
.ag-item.is-active .ag-item__dot { background: var(--maroon); border-color: var(--maroon); }
.ag-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ag-item__title {
  font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 0.03em;
  color: var(--navy); line-height: 1.1;
}
.ag-item.is-active .ag-item__title { color: var(--maroon); }
.ag-item__detail { display: none; flex-direction: column; gap: 6px; }
.ag-item.is-active .ag-item__detail { display: flex; }
.ag-item__desc { font-size: 16px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.ag-item__kla { width: 120px; height: auto; display: block; margin-top: 6px; }

/* ---------- RSVP ---------- */
.rsvp-sec { scroll-margin-top: 64px; background: var(--sage); }
.rsvp-grid {
  max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.h2-xl {
  margin: 0; font-family: var(--cond); font-weight: 700; font-size: clamp(36px, 4.6vw, 60px);
  letter-spacing: 0.03em; color: var(--navy); line-height: 0.98;
}
.rsvp-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 42ch; }
.contact {
  border-top: 2px dotted var(--navy); padding-top: 18px; margin-top: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.contact__label { font-family: var(--cond); font-size: 13px; letter-spacing: 0.24em; color: var(--navy); }
.contact__link {
  font-family: var(--cond); font-weight: 700; font-size: 26px; letter-spacing: 0.06em;
  color: var(--navy); text-decoration: none;
}
.contact__link:hover { color: var(--maroon); }

.rsvp-form {
  background: var(--paper); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column;
  gap: 20px; border: 1px solid rgba(34, 52, 90, 0.25);
}
.rsvp-fields { display: flex; flex-direction: column; gap: 20px; border: 0; margin: 0; padding: 0; min-width: 0; }
.rsvp-fields:disabled { opacity: 0.6; }
.form-notice {
  background: #fff; border-left: 4px solid var(--maroon); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.form-notice__title { font-family: var(--cond); font-weight: 700; font-size: 24px; color: var(--navy); }
.form-notice__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field__label { font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: 0.18em; color: var(--navy); padding: 0; }
.field__opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; height: 50px; padding: 0 14px; font-size: 17px; color: var(--navy); background: #fff;
  border: 1.5px solid var(--line); border-radius: 2px;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input.is-invalid { border-color: var(--maroon); }
.field__error { font-size: 14px; color: var(--maroon); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: 100%;
  padding: 12px 10px; min-height: 64px; background: #fff; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 2px; text-align: left;
}
.choice input:checked + .choice__box { background: var(--navy); color: var(--paper); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--navy); outline-offset: 2px; }
.choice__label { font-family: var(--cond); font-weight: 700; font-size: clamp(16px, 2vw, 19px); letter-spacing: 0.04em; line-height: 1.1; }
.choice__sub { font-size: 13px; opacity: 0.85; line-height: 1.3; }

.attend-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: end; }
.rsvp-form:has(input[name="attendance"][value="tidak_hadir"]:checked) .attend-extra { display: none; }
.segmented { display: flex; border: 1.5px solid var(--navy); border-radius: 2px; overflow: hidden; }
.segmented label { flex: 1; position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span {
  display: flex; align-items: center; justify-content: center; height: 48px; background: #fff;
  color: var(--navy); font-family: var(--cond); font-weight: 600; font-size: 17px; letter-spacing: 0.08em;
}
.segmented input:checked + span { background: var(--navy); color: var(--paper); }
.segmented input:focus-visible + span { outline: 2px solid var(--maroon); outline-offset: -4px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--maroon); flex: none; margin: 0; }
.check span { font-size: 16px; color: var(--ink); line-height: 1.35; }
.form-alert { font-size: 15px; color: var(--maroon); border: 1.5px solid var(--maroon); padding: 10px 14px; background: #fff; }
.btn-submit {
  height: 58px; background: var(--maroon); color: #fff; border: none; border-radius: 2px;
  font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: 0.18em; cursor: pointer;
}
.btn-submit:hover { background: var(--navy); }
.btn-submit:disabled, .btn-submit:disabled:hover { background: var(--disabled); cursor: not-allowed; }

/* ---------- Lokasi ---------- */
.loc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 4vw, 48px); margin-top: clamp(28px, 4vw, 48px); align-items: stretch;
}
.map {
  position: relative; min-height: clamp(340px, 50vw, 440px); border: 1.5px solid var(--navy);
  background: #DDE0DD; overflow: hidden;
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(0.55) contrast(1.05);
}
.map__card {
  position: absolute; left: 14px; top: 14px; right: 14px; max-width: 320px; background: var(--paper);
  padding: 14px 16px; box-shadow: 0 6px 20px rgba(20, 28, 48, 0.18); display: flex; gap: 12px; align-items: flex-start;
}
.pin {
  width: 34px; height: 34px; flex: none; background: var(--maroon); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); display: flex; align-items: center; justify-content: center;
}
.pin::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); }
.map__name { font-family: var(--cond); font-weight: 700; font-size: 19px; color: var(--navy); letter-spacing: 0.03em; }
.map__area { font-size: 14px; color: var(--muted); line-height: 1.4; }
.map__zoom {
  position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column;
  border: 1px solid rgba(34, 52, 90, 0.3); background: var(--paper);
}
.map__zoom a {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--navy); text-decoration: none; font-size: 22px;
}
.loc-info { display: flex; flex-direction: column; gap: 22px; }
.loc-name {
  margin: 0; font-family: var(--cond); font-weight: 700; font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: 0.03em; color: var(--navy); line-height: 1; text-transform: uppercase;
}
.loc-address { margin: 10px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.info-block { border-top: 2px dotted var(--navy); padding-top: 18px; }
.info-block__title { font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: 0.22em; color: var(--navy); margin-bottom: 12px; }
.access { display: flex; flex-direction: column; gap: 12px; }
.access__row { display: grid; grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 14px; font-size: 16px; line-height: 1.45; }
.access__k { font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: 0.06em; color: var(--maroon); }
.access__v { color: var(--ink); }
.facilities { display: flex; flex-wrap: wrap; gap: 8px; }
.facility { font-size: 15px; color: var(--navy); background: var(--mist); padding: 8px 12px; border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--navy); }
.site-footer__inner {
  max-width: 1240px; margin: 0 auto; padding: 32px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
}
.site-footer__inner img { height: 52px; width: auto; display: block; }
.site-footer__text { font-family: var(--cond); font-size: 15px; letter-spacing: 0.16em; color: var(--navy); line-height: 1.5; text-transform: uppercase; }

/* ---------- Modal e-ticket ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(18, 26, 44, 0.72);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto;
  padding: clamp(16px, 4vh, 48px) 16px;
}
.modal__dialog { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; margin: auto 0; }
.ticket { background: var(--paper); position: relative; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.ticket__head {
  background: var(--navy); color: var(--paper); padding: 12px 20px; display: flex;
  justify-content: space-between; align-items: center; font-family: var(--cond); font-size: 14px; letter-spacing: 0.24em;
}
.ticket__status { background: var(--maroon); color: #fff; padding: 3px 8px; letter-spacing: 0.14em; }
.ticket__status--tentative { background: var(--amber); }
.ticket__brand { padding: 22px 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ticket__brand img { width: 220px; height: auto; display: block; }
.ticket__kicker { font-family: var(--cond); font-size: 13px; letter-spacing: 0.22em; color: var(--navy); }
.ticket__book { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 24px; color: var(--maroon); line-height: 1; }
.ticket__sep { margin: 0 24px; border-top: 2px dotted var(--navy); }
.ticket__grid { padding: 16px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.span-2 { grid-column: 1 / -1; }
.t-label { font-family: var(--cond); font-size: 12px; letter-spacing: 0.22em; color: var(--muted); }
.t-value { font-family: var(--cond); font-weight: 600; font-size: 18px; color: var(--navy); }
.t-value--name { font-weight: 700; font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.ticket__tear { position: relative; height: 28px; display: flex; align-items: center; }
.ticket__tear::before, .ticket__tear::after {
  content: ''; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: #3a4256;
}
.ticket__tear::before { left: -14px; }
.ticket__tear::after { right: -14px; }
.ticket__tear-line { flex: 1; margin: 0 22px; border-top: 2px dashed rgba(34, 52, 90, 0.5); }
.ticket__qr { padding: 14px 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ticket__qr img { width: 184px; height: 184px; display: block; image-rendering: pixelated; border: 1px solid rgba(34, 52, 90, 0.2); }
.ticket__code { font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 0.18em; color: var(--navy); font-variant-numeric: tabular-nums; }
.ticket__note { font-size: 14px; color: var(--muted); text-align: center; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal__actions button {
  height: 50px; border: none; border-radius: 2px; font-family: var(--cond); font-weight: 700;
  font-size: 16px; letter-spacing: 0.14em; cursor: pointer;
}
.btn-download { background: var(--maroon); color: #fff; }
.btn-download:hover { background: var(--maroon-dark); }
.btn-calendar { background: var(--paper); color: var(--navy); }
.btn-calendar:hover { background: #fff; }
.decline {
  background: var(--paper); padding: 32px 28px; display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.decline img { width: 180px; height: auto; display: block; }
.decline__title { font-family: var(--cond); font-weight: 700; font-size: 28px; color: var(--navy); line-height: 1.1; }
.decline p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.modal__close {
  height: 48px; background: transparent; color: var(--paper); border: 1.5px solid rgba(242, 242, 239, 0.6);
  border-radius: 2px; font-family: var(--cond); font-weight: 600; font-size: 16px; letter-spacing: 0.16em; cursor: pointer;
}
.modal__close:hover { background: rgba(242, 242, 239, 0.12); }

/* ---------- Halaman hasil (tanpa JavaScript) & error ---------- */
.simple-page { max-width: 560px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 16px; display: flex; flex-direction: column; gap: 20px; }
.simple-page__logo { width: 200px; height: auto; display: block; margin: 0 auto; }
.simple-page__card { background: #fff; border: 1px solid rgba(34, 52, 90, 0.25); padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.simple-page__code { font-family: var(--cond); font-weight: 700; font-size: clamp(56px, 12vw, 96px); color: var(--maroon); line-height: 0.9; }
.simple-page__title { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 30px; color: var(--navy); line-height: 1.1; }
.simple-page__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.simple-page ul { margin: 0; padding-left: 20px; color: var(--maroon); line-height: 1.6; }
.simple-page .ticket { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
legend.field__label { margin-bottom: 8px; }
.simple-page .ticket__tear::before, .simple-page .ticket__tear::after { background: var(--paper); }
.simple-page > .btn { align-self: center; }

/* Tautan konfirmasi WhatsApp di bawah e-ticket */
.btn-wa {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 16px;
  background: #1F7A4D; color: #fff; text-decoration: none; border-radius: 2px; text-align: center;
  font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: 0.14em;
}
.btn-wa:hover { background: #17613C; color: #fff; }
