/* ==========================================================================
   WALIMATUL URUS — AUNI & FAHIM (PEARL LUXURY HERITAGE EDITION)
   Palette harmonized to exact botanical artwork ivory (#f7f3ea)
   and royal Songket obsidian (#161511).
   ========================================================================== */

:root {
  --pearl-bg: #f7f3ea;
  --pearl-paper: #fffdf8;
  --pearl-soft: #f0e9dd;
  --stage-bg: #e8e0d4;
  --obsidian: #161511;

  --ink: #221b18;
  --ink-soft: #4e433c;
  --taupe: #75685e;
  --taupe-light: #9a8d82;

  --gold: #9e7b49;
  --gold-soft: #cdb58d;
  --gold-pale: #dfd2be;
  --burgundy: #641c31;
  --burgundy-hover: #7c243e;
  --burgundy-tint: #f5ebed;

  --border: #e2d8c9;
  --border-strong: #d3c4ae;

  --font-jawi: 'Aref Ruqaa', 'Amiri', 'Traditional Arabic', serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --card-width: 480px;
  --radius-sm: 4px;
  --radius-md: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--stage-bg);
  background-image:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(255, 253, 248, 0.72), transparent 72%),
    url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23a68c69' stroke-width='0.6' opacity='0.14'%3E%3Cpath d='M36 4L68 36L36 68L4 36Z'/%3E%3Cpath d='M36 16L56 36L36 56L16 36Z'/%3E%3Ccircle cx='36' cy='36' r='2' fill='%23a68c69'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

::selection {
  background: #e6d5be;
  color: var(--burgundy);
}

/* Desktop editorial presentation shell — edge-to-edge native card on mobile */
.stage {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 110px;
}

.card-shell {
  width: 100%;
  max-width: var(--card-width);
  background-color: var(--pearl-bg);
  position: relative;
  box-shadow:
    0 24px 72px rgba(42, 30, 22, 0.13),
    0 2px 12px rgba(42, 30, 22, 0.06);
  border: 1px solid rgba(182, 158, 124, 0.35);
  overflow: hidden;
}

/* ==========================================================================
   1. MUKA DEPAN (COVER CARD)
   ========================================================================== */
.cover {
  position: relative;
  aspect-ratio: 768 / 1376;
  width: 100%;
  background-color: var(--pearl-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.cover-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  z-index: 0;
}

/* Subtle pearlescent center luminosity + smooth seamless bottom fade into section 2 */
.cover-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 62% 50% at 50% 42%, rgba(255, 253, 248, 0.56) 0%, rgba(247, 243, 234, 0) 75%),
    linear-gradient(to bottom, rgba(247, 243, 234, 0) 94%, var(--pearl-bg) 100%);
}

.cover-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 36px 52px 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bismillah-art {
  display: block;
  height: auto;
  margin-inline: auto;
}

.bismillah-cover-art {
  width: clamp(195px, 52%, 234px);
  margin-bottom: 16px;
}

.bismillah-sec-art {
  width: min(248px, 74%);
  margin-bottom: 16px;
}

.walimah-heading {
  margin-bottom: 14px;
}

.walimah-ar {
  margin: 0;
  font-family: var(--font-jawi);
  font-size: clamp(29px, 7.2vw, 37px);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
}

.walimah-latin {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--taupe);
}

.couple-lockup {
  margin: 4px 0 18px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.couple-person {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.name-jawi {
  font-family: var(--font-jawi);
  font-size: clamp(44px, 11.4vw, 56px);
  line-height: 1.28;
  color: var(--ink);
  font-weight: 400;
}

.name-latin {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 0.38em; /* optical balance for letter-spacing */
}

.couple-person:last-child .name-latin {
  margin-top: 12px; /* clear descending tail of Mim in Aref Ruqaa */
}

.gold-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(200px, 64%);
  margin: 12px 0 8px;
  color: var(--gold);
}

.orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold));
}

.orn-line:last-child {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), transparent);
}

.orn-emblem {
  width: 54px;
  height: 22px;
  flex: none;
}

.cover-date-block {
  margin-bottom: 18px;
}

.date-gregorian {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

.date-bar {
  color: var(--gold);
  margin: 0 5px;
  font-weight: 300;
}

.date-hijri {
  margin: 5px 0 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--taupe);
  letter-spacing: 0.03em;
}

.cover-verse {
  margin: 2px 0 16px;
}

.verse-ar {
  margin: 0;
  font-family: var(--font-arabic);
  font-size: clamp(23px, 5.8vw, 27px);
  line-height: 1.65;
  color: var(--burgundy);
}

.verse-ms {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.verse-ms span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 7px 16px;
  border: 1px solid rgba(158, 123, 73, 0.35);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(4px);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.scroll-cue:hover {
  background: var(--pearl-paper);
  border-color: var(--gold);
  transform: translateY(1px);
}

/* ==========================================================================
   SHARED SECTION TYPOGRAPHY & LAYOUT
   ========================================================================== */
.section {
  position: relative;
  padding: 64px 0;
}

.inner {
  padding: 0 28px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-gold {
  color: #d6b681;
}

.sec-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 8vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.sec-title-light {
  color: #faf6ee;
}

.sec-sub {
  margin: 0 auto 30px;
  max-width: 340px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--taupe);
}

.sec-sub-light {
  color: rgba(247, 241, 230, 0.78);
}

/* ==========================================================================
   2. JEMPUTAN RASMI KELUARGA + MONOGRAM JAWI ع | ف
   ========================================================================== */
.invitation {
  background-color: var(--pearl-bg);
  background-image:
    url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23a68b67' stroke-width='0.5' opacity='0.08'%3E%3Cpath d='M48 8L88 48L48 88L8 48Z'/%3E%3Cpath d='M48 24L72 48L48 72L24 48Z'/%3E%3C/g%3E%3C/svg%3E");
  padding-top: 52px;
  padding-bottom: 44px;
}

.bismillah-sec {
  margin: 0 0 4px;
  font-family: var(--font-arabic);
  font-size: 24px;
  line-height: 1.85;
  color: var(--gold);
}

.salam-ar {
  margin: 0 0 26px;
  font-family: var(--font-arabic);
  font-size: 20px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* Monogram Jawi (homage to Image 1 vertical-stem Jawi initials) */
.jawi-monogram {
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto 30px;
  padding: 20px 30px;
  background: var(--pearl-paper);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(56, 40, 29, 0.05);
}

.mono-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
}

.mono-letter {
  font-family: var(--font-jawi);
  font-size: 50px;
  line-height: 1;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
}

.mono-jawi {
  margin-top: 14px;
  font-family: var(--font-arabic);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}

.mono-roman {
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
}

.mono-stem {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 112px;
}

.stem-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.stem-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-soft), var(--gold), var(--gold-soft));
}

.stem-pearl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 5px 0;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #f1e9dc 55%, #c7b59a 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 1px 4px rgba(80, 58, 38, 0.22);
}

.invite-lead {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--taupe);
}

.host-name {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--burgundy);
}

.host-name span {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.invite-body {
  margin: 0 auto 24px;
  max-width: 375px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.couple-full-box {
  margin: 0 auto 24px;
  padding: 24px 18px;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: rgba(255, 253, 248, 0.55);
}

.full-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(19px, 4.9vw, 22px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--ink);
}

.full-amp {
  display: block;
  margin: 6px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  color: var(--gold);
}

.invite-poetic {
  margin: 0 auto 28px;
  max-width: 365px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--taupe);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: var(--pearl-paper);
  margin: 0 auto 30px;
}

.summary-cell {
  padding: 15px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.summary-cell + .summary-cell {
  border-left: 1px solid var(--border);
}

.summary-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.summary-cell strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.summary-cell small {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--taupe);
}

.garland-art {
  width: min(320px, 86%);
  margin: 12px auto 0;
  opacity: 0.96;
}

/* ==========================================================================
   3. ATUR CARA MAJLIS — DARK ROYAL SONGKET PANEL (HOMAGE TO IMAGE 1)
   ========================================================================== */
.itinerary-band {
  padding: 0;
  background-color: var(--obsidian);
}

.songket-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--obsidian);
  border-top: 1px solid rgba(196, 164, 114, 0.35);
  border-bottom: 1px solid rgba(196, 164, 114, 0.35);
}

.songket-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  z-index: 0;
  pointer-events: none;
}

.songket-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 74% 62% at 50% 50%,
    rgba(22, 20, 17, 0.86) 0%,
    rgba(22, 20, 17, 0.62) 68%,
    rgba(22, 20, 17, 0.38) 100%
  );
}

.songket-inner {
  position: relative;
  z-index: 2;
  padding: 104px 30px 98px;
  text-align: center;
}

.timeline {
  list-style: none;
  margin: 26px auto 0;
  padding: 0;
  max-width: 390px;
  text-align: left;
}

.timeline-item {
  display: grid;
  grid-template-columns: 76px 20px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 24px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.tl-time {
  text-align: right;
  padding-top: 1px;
}

.tl-time time {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
  color: #f8f2e7;
}

.tl-time span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d6b681;
}

.tl-axis {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.timeline-item:not(:last-child) .tl-axis::after {
  content: '';
  position: absolute;
  top: 16px;
  bottom: -10px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(214, 182, 129, 0.6), rgba(214, 182, 129, 0.18));
}

.tl-pearl {
  margin-top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #eee6d6 55%, #b8a384 100%);
  box-shadow: 0 0 0 3px rgba(214, 182, 129, 0.22);
  position: relative;
  z-index: 1;
}

.tl-detail h3 {
  margin: 0 0 3px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: #fbf7f0;
}

.tl-detail p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 238, 228, 0.8);
}

.timeline-note {
  margin: 28px auto 0;
  font-size: 11.5px;
  color: rgba(235, 225, 210, 0.72);
  font-style: italic;
}

/* ==========================================================================
   4. LOKASI MAJLIS
   ========================================================================== */
.venues {
  background: var(--pearl-bg);
}

.venue-list {
  display: grid;
  gap: 18px;
  text-align: left;
}

.venue-card {
  background: var(--pearl-paper);
  border: 1px solid var(--border);
  padding: 24px 22px;
  position: relative;
  box-shadow: 0 8px 26px rgba(56, 40, 29, 0.045);
}

.venue-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(190, 169, 138, 0.22);
  pointer-events: none;
}

.venue-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.venue-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
}

.venue-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--pearl-bg);
  color: var(--burgundy);
  display: grid;
  place-items: center;
  flex: none;
}

.venue-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}

.venue-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.venue-address {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.venue-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 45px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--burgundy);
  border-color: var(--burgundy);
  color: #fffdf8;
}

.btn-primary:hover {
  background-color: var(--burgundy-hover);
  border-color: var(--burgundy-hover);
  box-shadow: 0 8px 20px rgba(100, 28, 49, 0.2);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background-color: var(--pearl-soft);
  border-color: var(--gold);
}

.btn-ghost {
  background-color: rgba(255, 253, 248, 0.65);
  border-color: var(--border);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background-color: var(--pearl-paper);
  border-color: var(--gold-soft);
  color: var(--ink);
}

.btn-full {
  width: 100%;
}

.btn-arrow {
  font-size: 14px;
  line-height: 1;
}

/* ==========================================================================
   5. MENGHITUNG HARI & KALENDAR
   ========================================================================== */
.countdown-band {
  background-color: var(--pearl-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 auto 24px;
}

.cd-box {
  background: var(--pearl-paper);
  border: 1px solid var(--border);
  padding: 18px 6px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-box strong {
  font-family: var(--font-serif);
  font-size: clamp(28px, 7.5vw, 36px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--burgundy);
  font-variant-numeric: tabular-nums;
}

.cd-box span {
  margin-top: 5px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}

.calendar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calendar-actions .btn-ghost {
  grid-column: 1 / -1;
}

/* ==========================================================================
   6. BORANG RSVP WHATSAPP
   ========================================================================== */
.rsvp-section {
  background-color: var(--pearl-bg);
}

.rsvp-card {
  position: relative;
  text-align: left;
  background: var(--pearl-paper);
  border: 1px solid var(--border-strong);
  padding: 28px 22px 24px;
  box-shadow: 0 14px 40px rgba(56, 40, 29, 0.06);
}

/* Delicate freshwater pearl pins on the 4 corners of the RSVP card */
.corner-pearl {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #efe7da 58%, #bfa989 100%);
  border: 0.75px solid rgba(158, 123, 73, 0.55);
}

.cp-tl { top: 10px; left: 10px; }
.cp-tr { top: 10px; right: 10px; }
.cp-bl { bottom: 10px; left: 10px; }
.cp-br { bottom: 10px; right: 10px; }

.fieldset-reset {
  border: 0;
  padding: 0;
  margin: 0;
}

.field {
  margin-bottom: 16px;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.req {
  color: var(--burgundy);
}

.field input[type="text"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fffefa;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input[type="text"]:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(100, 28, 49, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 82px;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-pair.is-hidden {
  display: none;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fffefa;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.choice-pill input {
  margin: 0;
  accent-color: var(--burgundy);
}

.choice-pill:has(input:checked) {
  background: var(--burgundy-tint);
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.receiver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.receiver-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fffefa;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.receiver-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.receiver-pill strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.receiver-pill small {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 2px;
}

.receiver-pill:has(input:checked) {
  background: var(--burgundy-tint);
  border-color: var(--burgundy);
}

.receiver-pill:has(input:checked) strong,
.receiver-pill:has(input:checked) small {
  color: var(--burgundy);
}

.receiver-pill:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.rsvp-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.inline-feedback {
  margin: 12px 0 0;
  min-height: 18px;
  font-size: 12.5px;
  color: #355e3b;
  text-align: center;
}

.inline-feedback.is-error {
  color: #9e2234;
}

.rsvp-disclaimer {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--taupe);
  text-align: center;
}

/* ==========================================================================
   7. HUBUNGI KELUARGA
   ========================================================================== */
.contacts {
  background-color: var(--pearl-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: var(--pearl-paper);
  border: 1px solid var(--border);
  text-align: left;
}

.contact-info strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.contact-info span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--taupe);
}

.contact-btns {
  display: flex;
  gap: 7px;
  flex: none;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip-wa {
  background: var(--burgundy);
  color: #fffdf8;
  border: 1px solid var(--burgundy);
}

.chip-wa:hover {
  background: var(--burgundy-hover);
}

.chip-call {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.chip-call:hover {
  background: var(--pearl-soft);
  border-color: var(--gold);
}

/* ==========================================================================
   8. DOA PENUTUP & CREST AKHIR
   ========================================================================== */
.closing {
  background-color: var(--pearl-bg);
  padding: 58px 0 64px;
}

.garland-closing {
  margin-top: 0;
  margin-bottom: 24px;
}

.doa-ar {
  margin: 0 auto 14px;
  max-width: 380px;
  font-family: var(--font-arabic);
  font-size: clamp(23px, 5.8vw, 27px);
  line-height: 1.95;
  color: var(--burgundy);
}

.doa-ms {
  margin: 0 auto 18px;
  max-width: 350px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.jazak-ar {
  margin: 0 0 30px;
  font-family: var(--font-arabic);
  font-size: 22px;
  color: var(--gold);
}

.closing-crest {
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.crest-monogram {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-jawi);
  font-size: 32px;
  line-height: 1.25;
  color: var(--burgundy);
  margin-bottom: 14px;
}

.crest-sep {
  display: inline-block;
  width: 1px;
  height: 26px;
  background: var(--gold);
}

.closing-couple {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink);
}

.closing-couple span {
  color: var(--gold);
}

.closing-meta {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

.card-footer {
  background: var(--pearl-soft);
  border-top: 1px solid var(--border);
  padding: 18px 20px 26px;
  text-align: center;
}

.card-footer p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--taupe);
}

/* ==========================================================================
   9. FLOATING BOTTOM PEARL DOCK
   ========================================================================== */
.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 448px);
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px;
  background: rgba(255, 253, 248, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(182, 158, 124, 0.45);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(34, 24, 18, 0.16);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 4px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--taupe);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dock-item:hover {
  color: var(--ink);
  background: rgba(235, 226, 212, 0.55);
}

.dock-item.is-active {
  color: var(--burgundy);
  background: rgba(100, 28, 49, 0.08);
}

.dock-item.dock-rsvp {
  background: var(--burgundy);
  color: #fffdf8;
}

.dock-item.dock-rsvp:hover,
.dock-item.dock-rsvp.is-active {
  background: var(--burgundy-hover);
  color: #fffdf8;
}

/* ==========================================================================
   TOAST NOTIFICATION & SUBTLE REVEAL
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(34, 27, 24, 0.94);
  color: #faf6ee;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 0.22s ease, transform 0.22s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE REFINEMENTS
   ========================================================================== */
@media (max-width: 540px) {
  .stage {
    padding: 0 0 88px;
    background: var(--pearl-bg);
  }

  .card-shell {
    max-width: 100%;
    border: 0;
    box-shadow: none;
  }

  .cover {
    aspect-ratio: 768 / 1376;
    min-height: calc(100svh - 76px);
  }

  .invitation {
    padding-top: 76px;
  }

  .cover-content {
    padding: 26px 40px 180px;
  }

  .inner {
    padding: 0 22px;
  }

  .songket-inner {
    padding: 90px 22px 86px;
  }
}

@media (max-width: 390px) {
  .cover-content {
    padding: 22px 34px 168px;
  }

  .bismillah-cover-art {
    width: 184px;
    margin-bottom: 10px;
  }

  .walimah-heading {
    margin-bottom: 8px;
  }

  .walimah-ar {
    font-size: 27px;
  }

  .couple-lockup {
    margin: 2px 0 12px;
  }

  .name-jawi {
    font-size: 40px;
  }

  .name-latin {
    font-size: 12.5px;
  }

  .gold-ornament {
    margin: 8px 0 6px;
  }

  .cover-date-block {
    margin-bottom: 12px;
  }

  .date-gregorian {
    font-size: 11px;
  }

  .date-hijri {
    font-size: 14px;
  }

  .cover-verse {
    margin: 0 0 10px;
  }

  .verse-ar {
    font-size: 21px;
  }

  .verse-ms {
    font-size: 13px;
  }

  .scroll-cue {
    padding: 5px 13px;
    font-size: 9.5px;
  }

  .jawi-monogram {
    gap: 16px;
    padding: 16px 20px;
  }

  .field-pair,
  .choice-grid,
  .venue-actions {
    grid-template-columns: 1fr;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-btns {
    width: 100%;
  }

  .chip-btn {
    flex: 1;
  }

  .timeline-item {
    grid-template-columns: 64px 18px 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .scroll-cue,
  .dock-item,
  .toast {
    transition: none;
  }
}
