/* ==========================================================================
   OBSIDIAN LUXE
   Dark modern minimalist luxury — editorial wedding invitation.
   Cards are the exception, not the default.
   ========================================================================== */

.cd-root {
  position: relative;
  overflow: hidden;
  background: #0B0B0A;
  color: #F1EDE4;
  background-image:
    linear-gradient(rgba(11, 11, 10, 0.82), rgba(11, 11, 10, 0.90)),
    url('/themes/layout1/obsidian-luxe/background-obsidian.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
  isolation: isolate;
}

.cd-root::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 50% 18%, rgba(200,181,138,.065), transparent 34%), radial-gradient(circle at 50% 70%, rgba(255,255,255,.025), transparent 38%);
}

.cd-section {
  position: relative;
  padding: 0 22px;
}

.cd-section + .cd-section {
  margin-top: 0;
}

/* Default: remove dashboard-like card treatment. */
.cd-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
}

.cd-section-title {
  margin: 0 0 12px;
  color: #F1EDE4;
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.cd-card-title-latin {
  margin: 0 0 14px;
  color: #A7A29A;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.cd-sub-intro {
  max-width: 310px;
  margin: 0 auto 24px;
  color: #A7A29A;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .025em;
}

.cd-dashed-divider {
  width: 54px;
  margin: 34px auto;
  border: 0;
  border-top: 1px solid rgba(200,181,138,.28);
}

/* --------------------------------------------------------------------------
   Cover — quiet black-tie opening, botanical corners, no photo
   -------------------------------------------------------------------------- */
.cd-cover {
  min-height: 100svh;
  padding: 72px 28px 44px;
  background: #0B0B0A;
}

/* Corner botanical ornaments (hand-inked leaves + gold veins) */
.cd-cover::before,
.cd-cover::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .9;
}

.cd-cover::before {
  top: 0;
  left: 0;
  width: clamp(190px, 58vw, 268px);
  height: clamp(181px, 55vw, 255px);
  background-image: url('/themes/layout1/obsidian-luxe/ornament-corner-tl.png');
  background-position: top left;
}

.cd-cover::after {
  right: 0;
  bottom: 0;
  width: clamp(252px, 76vw, 340px);
  height: clamp(256px, 77vw, 345px);
  background-image: url('/themes/layout1/obsidian-luxe/ornament-corner-br.png');
  background-position: bottom right;
}

/* No portrait on the cover in this theme — quiet, typographic opening */
.cd-cover-photo {
  display: none;
}

.cd-cover-content {
  max-width: 360px;
  z-index: 2;
  justify-content: center;
  padding: 34px 0 20px;
}

.cd-cover-subtitle {
  margin: 0 0 22px;
  color: #A7A29A;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
}

.cd-cover-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 0 26px;
  color: #F1EDE4;
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(30px, 8.6vw, 48px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}

.cd-cover .cd-ampersand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  color: #C8B58A;
  font-family: var(--font-heading), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: .36em;
  letter-spacing: 0;
}

.cd-cover .cd-ampersand::before,
.cd-cover .cd-ampersand::after {
  content: '';
  width: 26px;
  height: 1px;
  background: rgba(200,181,138,.45);
}

.cd-cover-date-badge {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-bottom: 40px;
}

.cd-cover-date-hari {
  display: none;
}

.cd-cover-date-tahun,
.cd-cover-date-bulan {
  color: #A7A29A;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cd-cover-date-box {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cd-cover-date-angka {
  color: #A7A29A;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
}

.cd-cover-date-box::before {
  content: '·';
  color: #C8B58A;
}

.cd-cover-date-tahun::before {
  content: '·';
  margin-right: 7px;
  color: #C8B58A;
}

.cd-cover-bottom { margin-top: 0; }
.cd-cover-recipient { margin-bottom: 22px; }
.cd-cover-recipient-label { color: #A7A29A; font-size: 12px; letter-spacing: .04em; }
.cd-cover-recipient-name { color: #F1EDE4; font-size: 13px; font-weight: 500; }

.cd-btn-open {
  min-width: 168px;
  padding: 13px 24px;
  border: 1px solid rgba(200,181,138,.5);
  border-radius: 10px;
  background: transparent;
  color: #F1EDE4;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: none;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.cd-btn-open:hover {
  background: #C8B58A;
  border-color: #C8B58A;
  color: #0B0B0A;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Intro / countdown — open canvas, not a card
   -------------------------------------------------------------------------- */
.cd-intro {
  padding-top: 86px;
  padding-bottom: 92px;
}

.cd-groom-bride-name {
  margin: 0 0 18px;
  color: #F1EDE4;
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 500;
  line-height: 1.02;
}

.cd-ampersand-mid {
  margin: 10px 0;
  color: #C8B58A;
  font-family: var(--font-heading), Georgia, serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
}

.cd-event-hari-text,
.cd-event-date-text {
  color: #A7A29A;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cd-timer-container {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 6vw, 30px);
  margin: 40px 0 8px;
}

.cd-timer-circle {
  width: auto;
  height: auto;
  min-width: 42px;
  padding: 0 3px 7px;
  border-bottom: 1px solid rgba(200,181,138,.42);
  border-radius: 0;
  background: transparent;
  color: #F1EDE4;
  font-family: var(--font-heading), Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.cd-timer-label {
  margin-top: 7px;
  color: #77736C;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cd-recipient-info { margin-top: 32px; }
.cd-recipient-label { color: #77736C; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cd-recipient-name { color: #F1EDE4; font-size: 12px; }

/* Intro trimmed to countdown-only: title/names/date/recipient already
   shown on the cover, so hide them here and let the timer stand alone. */
.cd-intro .cd-card-title-latin,
.cd-intro .cd-groom-bride-name,
.cd-intro .cd-ampersand-mid,
.cd-intro .cd-event-hari-text,
.cd-intro .cd-event-date-text,
.cd-intro .cd-recipient-info {
  display: none;
}

.cd-intro .cd-timer-title {
  display: block;
  margin: 0 0 22px;
  color: #F1EDE4;
  font-family: var(--font-heading), Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cd-intro .cd-timer-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 26px;
  margin: 14px auto 0;
  background: url('/themes/layout1/obsidian-luxe/ornament-small.svg') center/100px auto no-repeat;
  opacity: .6;
}

.cd-intro .cd-timer-container {
  margin: 0;
}

.cd-intro .cd-card::after {
  content: '';
  display: block;
  width: 120px;
  height: 26px;
  margin: 30px auto 0;
  background: url('/themes/layout1/obsidian-luxe/ornament-small.svg') center/100px auto no-repeat;
  opacity: .6;
}

/* --------------------------------------------------------------------------
   Quote — breathing space
   -------------------------------------------------------------------------- */
.cd-quote {
  padding-top: 94px;
  padding-bottom: 104px;
  background: rgba(255,255,255,.012);
}

.cd-quote .cd-card { max-width: 370px; }

.cd-quote-text {
  margin: 0 auto 18px;
  color: #F1EDE4;
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(18px, 5.2vw, 24px);
  font-style: italic;
  line-height: 1.5;
  white-space: pre-line;
}

.cd-quote-arabic {
  color: #F1EDE4;
  font-family: 'Amiri', Georgia, serif;
  font-size: 21px;
  line-height: 1.9;
}

.cd-quote-sumber {
  color: #C8B58A;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Couple — editorial portraits, alternating layout
   -------------------------------------------------------------------------- */
.cd-pasangan {
  position: relative;
  padding-top: 88px;
  padding-bottom: 96px;
  background: #111110;
}

.cd-pasangan::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0;
  width: 100%;
  height: 44px;
  background: url('/themes/layout1/obsidian-luxe/ornament-small.svg') center/190px auto no-repeat;
  opacity: .32;
  pointer-events: none;
}

.cd-pasangan .cd-card {
  position: relative;
  z-index: 1;
  max-width: 460px;
  text-align: left;
}

.cd-pasangan .cd-section-title {
  margin-bottom: 10px;
  text-align: center;
  font-size: clamp(28px, 7.4vw, 38px);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cd-pasangan-heading {
  max-width: 300px;
  margin: 0 auto 44px;
  color: #A7A29A;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.8;
  text-transform: uppercase;
  text-align: center;
}

.cd-profile-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 42%;
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: 18px;
  margin-bottom: 36px;
}

.cd-profile-item:last-child { margin-bottom: 0; }

.cd-avatar-frame {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  height: min(62vw, 260px);
  margin: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .42);
  overflow: hidden;
}

.cd-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.04);
}

.cd-profile-name {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin: 0;
  color: #C8B58A;
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.12;
  text-align: left;
  text-transform: uppercase;
}

.cd-profile-name::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  margin: 12px 0 14px;
  background: linear-gradient(90deg, rgba(200,181,138,.72), rgba(200,181,138,.08));
}

.cd-parents-info {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: #77736C;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

.cd-parent-label-id { display: none; }

.cd-parent-label-en {
  display: block;
  margin: 0 0 8px;
  color: #C8B58A;
  font-family: var(--font-body), Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
}

.cd-parent-name {
  display: block;
  margin: 0;
  color: #8F8B83;
  font-family: var(--font-body), Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: normal;
}

.cd-parent-sep {
  display: block;
  margin: 6px 0;
  color: #8F8B83;
  font-family: var(--font-body), Arial, sans-serif;
  font-style: normal;
  font-size: 12px;
  text-align: center;
}

/* Bride row mirrors: photo left, text right */
.cd-profile-item:nth-of-type(2) {
  grid-template-columns: 42% 1fr;
}

.cd-profile-item:nth-of-type(2) .cd-avatar-frame {
  grid-column: 1;
}

.cd-profile-item:nth-of-type(2) .cd-profile-name {
  grid-column: 2;
  text-align: right;
}

.cd-profile-item:nth-of-type(2) .cd-profile-name::after {
  margin-left: auto;
  background: linear-gradient(270deg, rgba(200,181,138,.72), rgba(200,181,138,.08));
}

.cd-profile-item:nth-of-type(2) .cd-parents-info {
  grid-column: 2;
  justify-self: end;
  text-align: right;
}

.cd-pasangan > .cd-card > .cd-ampersand-mid {
  display: none;
}

/* --------------------------------------------------------------------------
   Love story — timeline without cards
   -------------------------------------------------------------------------- */
.cd-lovestory {
  position: relative;
  padding-top: 92px;
  padding-bottom: 98px;
}

.cd-lovestory-title {
  margin: 0 0 48px;
  color: #F1EDE4;
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(28px, 7vw, 34px);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
}

.cd-lovestory-list {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  padding-left: 28px;
  text-align: left;
}

.cd-lovestory-list::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 7px;
  width: 1px;
  background: rgba(200,181,138,.34);
}

.cd-lovestory-list::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 3.5px;
  width: 7px;
  height: 7px;
  border: 1px solid #C8B58A;
  background: #0B0B0A;
  transform: rotate(45deg);
}

.cd-lovestory-item {
  position: relative;
  padding: 0 0 48px 22px;
}

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

.cd-lovestory-item::before {
  content: '';
  position: absolute;
  top: 4px;
  left: -25px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C8B58A;
}

.cd-lovestory-photo {
  display: none;
}

.cd-story-tanggal {
  margin: 0 0 6px;
  color: #D8D3C8;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.cd-story-title {
  margin: 0 0 9px;
  color: #F1EDE4;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cd-story-desc {
  margin: 0;
  color: #8F8B83;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 12px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Event — typography first, no large container
   -------------------------------------------------------------------------- */
.cd-acara {
  padding-top: 96px;
  padding-bottom: 96px;
  background: #111110;
}

.cd-acara .cd-card { max-width: 410px; }
.cd-acara .cd-section-title {
  margin-bottom: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cd-event-block {
  position: relative;
  padding: 30px 10px;
  margin: 0;
}

.cd-event-block + .cd-event-block {
  border-top: 1px solid rgba(200,181,138,.16);
}

.cd-event-name {
  margin: 0 0 12px;
  color: #F1EDE4;
  font-family: var(--font-heading), Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.cd-event-date,
.cd-event-time,
.cd-event-address {
  margin: 0;
  color: #A7A29A;
  font-size: 12px;
  line-height: 1.8;
}

.cd-event-time {
  color: #C8B58A;
  font-size: 12px;
  letter-spacing: .12em;
}

.cd-event-location-name {
  margin: 14px 0 3px;
  color: #F1EDE4;
  font-size: 12px;
  font-weight: 500;
}

.cd-action-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.cd-btn-action,
.cd-btn-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 1px solid rgba(200,181,138,.34);
  border-radius: 10px;
  background: transparent;
  color: #C8B58A;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cd-btn-action:hover,
.cd-btn-live:hover {
  background: #C8B58A;
  color: #0B0B0A;
}

/* --------------------------------------------------------------------------
   Gallery — editorial, no cards
   -------------------------------------------------------------------------- */
.cd-galeri {
  padding-top: 98px;
  padding-bottom: 98px;
}

.cd-galeri-title {
  margin: 0 0 34px;
  color: #F1EDE4;
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
}

.cd-galeri-preview-wrap { margin: 0 auto; }
.cd-galeri-preview-large-frame {
  position: relative;
  width: min(88vw, 390px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.cd-galeri-preview-large {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 12px;
}

.cd-galeri-preview-large img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(.18) contrast(1.04);
}

.cd-galeri-nav {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(241,237,228,.35);
  border-radius: 50%;
  background: rgba(11,11,10,.45);
  color: #F1EDE4;
  backdrop-filter: blur(5px);
}

/* Strip thumbnail satu baris, ukuran seragam (5 terlihat), geser horizontal.
   grid-template-columns harus none: kolom eksplisit membuat foto ke-5 dst
   jatuh ke kolom implisit yang lebar dan terlihat membesar. */
.cd-galeri-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 6px) / 5);
  gap: 6px;
  width: min(88vw, 390px);
  margin: 12px auto 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.cd-galeri-item {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: transparent;
  opacity: .5;
  transition: opacity .2s ease, transform .2s ease;
}

.cd-galeri-item.is-active { opacity: 1; outline: 1px solid #C8B58A; outline-offset: -1px; }
.cd-galeri-item:hover { transform: translateY(-2px); }
.cd-galeri-item img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }

/* --------------------------------------------------------------------------
   Live — use a framed component only where needed
   -------------------------------------------------------------------------- */
.cd-live {
  padding-top: 84px;
  padding-bottom: 84px;
  background: #111110;
}
.cd-live-frame-wrap { overflow: hidden; border: 1px solid rgba(200,181,138,.2); border-radius: 12px; }
.cd-live-frame { display: block; width: 100%; min-height: 260px; border: 0; }

/* --------------------------------------------------------------------------
   Gift / RSVP / Wishes — the few places where a card is intentional
   -------------------------------------------------------------------------- */
.cd-rsvp { color-scheme: dark; }
.cd-gift,
.cd-rsvp {
  padding-top: 88px;
  padding-bottom: 88px;
  background: #111110;
}

.cd-gift .cd-card,
.cd-rsvp .cd-card {
  max-width: 390px;
  padding: 30px 22px;
  border: 1px solid rgba(200,181,138,.18);
  background: rgba(23,23,21,.78);
  border-radius: 18px;
}

.cd-gift-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 16px 16px;
  border: 1px solid rgba(200,181,138,.3);
  border-radius: 12px;
  background: rgba(241,237,228,.04);
  text-align: left;
}

.cd-gift-nama { margin: 0 0 4px; color: #C8B58A; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cd-gift-nomor { margin: 0; color: #F1EDE4; font-size: 14px; font-weight: 500; letter-spacing: .05em; }
.cd-gift-atasnama { margin: 5px 0 0; color: #A7A29A; font-size: 12px; }
.cd-gift-address {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(200,181,138,.3);
  border-radius: 12px;
  background: rgba(241,237,228,.04);
  text-align: left;
}
.cd-gift-address-label { margin: 0 0 6px; color: #C8B58A; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cd-gift-address-text { margin: 0; color: #D6D1C7; font-size: 12px; line-height: 1.8; }

.cd-rsvp .cd-sub-intro { margin-bottom: 26px; }
.cd-gift .cd-section-title,
.cd-rsvp .cd-section-title {
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Generic form styles used by RsvpForm */
.cd-rsvp input,
.cd-rsvp textarea,
.cd-rsvp select,
.cd-fake-input,
.cd-fake-textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  margin-bottom: 9px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid rgba(200,181,138,.24);
  border-radius: 0;
  background: transparent;
  color: #F1EDE4;
  font: inherit;
}

/* Fokus keyboard (24c): garis bawah emas + ring. Outline tetap ada (bukan `none`)
   supaya terlihat juga di mode kontras tinggi Windows. */
.cd-rsvp input:focus-visible,
.cd-rsvp textarea:focus-visible,
.cd-rsvp select:focus-visible {
  border-bottom-color: #C8B58A;
  outline: 2px solid #C8B58A;
  outline-offset: 2px;
}
.cd-rsvp select option { background: #161614; color: #F1EDE4; }

.cd-rsvp textarea,
.cd-fake-textarea { min-height: 90px; resize: vertical; }
/* #9A958C di atas kartu #161614 = 6,1:1 (sebelumnya #77736C = 3,8:1, di bawah 4,5:1). */
.cd-rsvp input::placeholder,
.cd-rsvp textarea::placeholder { color: #9A958C; opacity: 1; }
.cd-rsvp button[type='submit'],
.cd-fake-button {
  min-height: 44px;
  width: 100%;
  margin-top: 12px;
  border: 1px solid #C8B58A;
  border-radius: 10px;
  background: #C8B58A;
  color: #0B0B0A;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cd-rsvp button[type='submit']:focus-visible {
  outline: 2px solid #F1EDE4;
  outline-offset: 3px;
}

/* Pesan di bawah form: warna bawaan modul (#b3261e) hanya 2,8:1 di kartu gelap. */
.cd-rsvp .cd-rsvp-error { color: #F4A59E; }
.cd-rsvp .cd-rsvp-note { color: #A7A29A; }

/* Guestbook / wishes */
.cd-rsvp .cd-wall {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(200,181,138,.16);
}

.cd-rsvp .cd-wall-title {
  margin-bottom: 18px;
  color: #F1EDE4;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cd-rsvp .cd-wall-note {
  color: #9A958C;
  font-size: 12px;
  letter-spacing: .08em;
}

.cd-rsvp .cd-wall-item {
  padding: 16px 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(200,181,138,.1);
}

.cd-rsvp .cd-wall-item:last-child {
  border-bottom: 0;
}

.cd-rsvp .cd-wall-nama {
  margin-bottom: 6px;
  color: #C8B58A;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cd-rsvp .cd-wall-ucapan {
  color: #A7A29A;
  font-size: 12px;
  line-height: 1.75;
}

/* Copy button — ghost outline */
.cd-gift .cd-copy-btn {
  padding: 8px 14px;
  border: 1px solid rgba(200,181,138,.6);
  border-radius: 10px;
  background: transparent;
  color: #C8B58A;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cd-gift .cd-copy-btn:hover {
  background: #C8B58A;
  color: #0B0B0A;
  opacity: 1;
}

/* Live streaming */
.cd-live-desc {
  max-width: 320px;
  margin: 0 auto 22px;
  color: #A7A29A;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: .02em;
}

.cd-live .cd-section-title {
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Footer / closing — return to open canvas
   -------------------------------------------------------------------------- */
.cd-footer {
  padding-top: 108px;
  padding-bottom: 42px;
  min-height: 55vh;
  display: flex;
  align-items: center;
  background: #0B0B0A;
}

.cd-footer-card { max-width: 370px; }
.cd-footer-thanks { color: #77736C; font-size: 12px; line-height: 1.9; }
.cd-footer-names {
  margin: 34px 0;
  color: #F1EDE4;
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(38px, 10vw, 54px);
  font-weight: 500;
  line-height: 1.05;
  /* Susunan vertikal: nama 1, &, nama 2 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cd-footer-names .cd-ampersand-mid { display: block; margin: 0; font-size: .5em; line-height: 1; }
.cd-footer-credit { color: #514E49; font-size: 7px; letter-spacing: .12em; }

.cd-floating-audio {
  border: 1px solid rgba(200,181,138,.45) !important;
  border-radius: 50% !important;
  background: rgba(11,11,10,.84) !important;
  color: #C8B58A !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

/* Subtle responsive refinement */
@media (min-width: 700px) {
  .cd-section { padding-left: 32px; padding-right: 32px; }
  .cd-cover::before { width: 268px; height: 255px; }
  .cd-cover::after { width: 340px; height: 345px; }
  .cd-pasangan .cd-card { max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .cd-galeri-item { transition: none; }
}