* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #ece6dd;
  font-family: 'Montserrat', sans-serif;
  color: #5c5349;
  line-height: 1.6;
  overflow-x: hidden;
}

.paper-sheet {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  background-color: #f9f6f1;
  background-image: radial-gradient(rgba(160, 145, 125, 0.08) 1px, transparent 0);
  background-size: 16px 16px;
  box-shadow: 0 12px 45px rgba(72, 58, 42, 0.14);
  overflow: hidden;
  padding-bottom: 50px;
}

.arch-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 440px;
  background: linear-gradient(180deg, rgba(226, 217, 204, 0.45) 0%, rgba(249, 246, 241, 0) 100%);
  pointer-events: none;
}

.botanical-deco { position: absolute; pointer-events: none; z-index: 2; opacity: 0.88; }
.deco-top-left { top: 80px; left: -18px; width: 125px; }
.deco-mid-left { top: 48px; left: -16px; width: 105px; }
.deco-mid-right { top: 155px; right: -14px; width: 100px; }
.deco-cal-left { bottom: 95px; left: -14px; width: 100px; }
.deco-cal-right { bottom: 60px; right: -16px; width: 110px; }

.hero-polaroid {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 36px 24px 24px;
}

.top-tag {
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: #9e9182;
  margin-bottom: 6px;
}

.main-couple-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.95rem;
  color: #5c5146;
  margin-bottom: 26px;
}

.polaroid-wrapper {
  position: relative;
  width: 265px;
  margin: 0 auto 14px;
}

.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 78px;
  height: 22px;
  background: rgba(232, 217, 187, 0.85);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 5;
}

.polaroid-frame {
  background: #ffffff;
  padding: 12px 12px 34px;
  box-shadow: 0 10px 26px rgba(65, 52, 38, 0.16);
  transform: rotate(-3.5deg);
  transition: transform 0.35s ease;
}

.polaroid-frame:hover { transform: rotate(0deg) scale(1.02); }

.polaroid-frame img {
  width: 100%;
  height: 295px;
  object-fit: cover;
  display: block;
}

.polaroid-wax-seal {
  position: absolute;
  bottom: -14px;
  right: -14px;
  z-index: 6;
  filter: drop-shadow(0 4px 8px rgba(80, 60, 30, 0.25));
}

.dried-flower-polaroid {
  position: absolute;
  bottom: -26px;
  left: -26px;
  width: 105px;
  z-index: 6;
  pointer-events: none;
}

.section-block {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 28px 26px;
}

.sub-heading-caps {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #6b6054;
  margin-bottom: 16px;
}

.family-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid #e4ddd2;
  border-bottom: 1px solid #e4ddd2;
  padding: 14px 4px;
  margin-bottom: 22px;
}

.fam-col .fam-role {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #8c7f70;
  margin-bottom: 4px;
}

.fam-col p {
  font-size: 0.78rem;
  font-weight: 500;
  color: #4f463d;
  line-height: 1.45;
}

.fam-col small {
  display: block;
  font-size: 0.68rem;
  color: #8c7f70;
  margin-top: 4px;
}

.couple-script-block { margin: 14px 0 22px; }
.script-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  color: #5c5146;
  line-height: 1.15;
}
.script-amp {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: #9e9182;
}

.ceremony-label, .ceremony-place, .ceremony-time-label {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: #7d7164;
}
.ceremony-place { font-weight: 600; margin: 2px 0 8px; }

.big-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #5c5146;
  margin: 4px 0 8px;
}

.magazine-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0;
}

.date-side {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #6b6054;
  border-top: 1px solid #cfc6b8;
  border-bottom: 1px solid #cfc6b8;
  padding: 5px 10px;
  min-width: 92px;
}

.date-center-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  font-weight: 600;
  color: #5c5146;
  line-height: 1;
}

.date-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #6b6054;
  margin-top: 2px;
}

.lunar-italic {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: #8c7f70;
  margin-top: 4px;
}

.editorial-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.editorial-gallery img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.25s;
}

.editorial-gallery img:hover { transform: scale(1.02); }

.inline-countdown { margin: 18px 0 14px; }
.cd-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #8c7f70;
}
.cd-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #6b6054;
}

.calendar-widget {
  max-width: 310px;
  margin: 14px auto 22px;
  background: #776d63;
  color: #f9f6f1;
  border-radius: 6px;
  padding: 16px 14px 18px;
  box-shadow: 0 8px 22px rgba(70, 58, 46, 0.18);
}

.cal-header {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cal-weekdays, .cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-weekdays span {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 6px;
}

.cal-cell {
  font-size: 0.76rem;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cal-cell.heart-day { font-weight: 700; }

.cal-cell.heart-day .heart-mark {
  position: absolute;
  font-size: 1.65rem;
  color: #e6c697;
  opacity: 0.45;
}

.cal-cell.heart-day small {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  color: #fff;
}

.rsvp-cta-wrap { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trank-you-small {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #7d7164;
}

.btn-pill-dark {
  background: #6b6054;
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-pill-dark:hover { background: #52483e; }

.btn-pill-outline {
  background: transparent;
  color: #6b6054;
  border: 1px solid #b5a99a;
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  cursor: pointer;
}

.venue-address-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: #5c5146;
  margin-bottom: 14px;
  padding: 0 10px;
}

.map-preview-box {
  border: 1px solid #dfd7cb;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.map-preview-box iframe {
  width: 100%;
  height: 190px;
  border: 0;
  display: block;
}

.btn-map-link {
  display: block;
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b6054;
  text-decoration: none;
  background: #f4efe8;
}

.guestbook-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guestbook-card input, .guestbook-card textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #dcd3c6;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
}
.wish-list { margin-top: 10px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.wish-item { background: #fff; padding: 10px 14px; border-radius: 8px; border-left: 3px solid #8c7a66; font-size: 0.82rem; }
.wish-item strong { display: block; color: #5c5146; margin-bottom: 2px; }

.paper-footer { text-align: center; padding: 24px 20px 10px; }
.footer-note { font-size: 0.8rem; color: #7d7164; margin-bottom: 10px; }
.script-footer-names { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.8rem; color: #5c5146; }
.footer-eng { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem; color: #9e9182; }

.envelope-overlay {
  position: fixed; inset: 0; background: rgba(236, 230, 221, 0.96);
  z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.envelope-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.invite-card {
  background: #f9f6f1; border: 1px solid #dfd6c7; border-radius: 12px;
  padding: 36px 28px; max-width: 360px; width: 100%; text-align: center;
  box-shadow: 0 18px 45px rgba(70, 56, 40, 0.16);
}
.wax-seal {
  width: 48px; height: 48px; border-radius: 50%; background: #d8c39e; color: #7a5e36;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.2rem;
}
.env-top-sub { font-size: 0.62rem; letter-spacing: 3px; color: #9e9182; }
.env-couple h1 { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 2rem; font-weight: 500; color: #5c5146; }
.env-couple .amp { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.3rem; color: #9e9182; }
.ornament-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; color: #b5a692; font-size: 0.75rem; }
.ornament-line span { height: 1px; width: 45px; background: #dcd3c5; }
.env-date { font-size: 0.85rem; color: #6b6054; margin-bottom: 6px; }
.env-invite-label { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.15rem; color: #8c7f70; margin-bottom: 18px; }
.btn-open-card { background: #6b6054; color: #fff; border: none; padding: 11px 30px; border-radius: 999px; font-size: 0.8rem; letter-spacing: 1.5px; cursor: pointer; }

.music-btn {
  position: fixed; bottom: 18px; right: 18px; z-index: 900;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid #d4c9ba;
  background: #f9f6f1; box-shadow: 0 4px 12px rgba(0,0,0,0.12); cursor: pointer; font-size: 1.1rem;
}

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 1800; align-items: center; justify-content: center; padding: 16px; }
.modal-content { background: #fff; padding: 24px; border-radius: 16px; max-width: 390px; width: 100%; position: relative; text-align: center; }
.close-modal { position: absolute; top: 12px; right: 16px; font-size: 1.4rem; cursor: pointer; color: #667085; }
.rsvp-dialog { text-align: left; }
.rsvp-dialog h3 { font-size: 1.25rem; color: #1d2939; margin-bottom: 6px; }
.dialog-desc { font-size: 0.82rem; color: #667085; margin-bottom: 16px; }
.rsvp-dialog label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: #344054; }
.rsvp-dialog input { width: 100%; padding: 11px 13px; border: 1.5px solid #d0d5dd; border-radius: 10px; margin-bottom: 14px; }
.rsvp-option { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid #eaecf0; border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.rsvp-option.active { border-color: #6b6054; background: #faf6f2; }
.rsvp-option .opt-icon { width: 24px; height: 24px; border-radius: 50%; background: #f2f4f7; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.rsvp-option.active .opt-icon { background: #6b6054; color: #fff; }
#submit-rsvp-btn { width: 100%; padding: 12px; border: none; border-radius: 10px; background: #6b6054; color: #fff; font-weight: 600; cursor: pointer; margin-top: 6px; }
#submit-rsvp-btn:disabled { background: #cfc6bd; cursor: not-allowed; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qr-item img { width: 100%; border-radius: 8px; margin: 8px 0; }
#lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }

.loading-screen { position: fixed; inset: 0; background: #f9f6f1; z-index: 2000; align-items: center; justify-content: center; flex-direction: column; color: #6b6054; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; }
.spinner-heart { font-size: 2rem; animation: pulse 1.2s infinite; margin-bottom: 8px; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }
.fade-up { opacity: 0; transform: translateY(18px); transition: 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }