/* ==========================================================================
   DOLCE VITA — ITALIAN COASTAL LUXURY WEDDING INVITATION STYLES
   Inspired by & upgraded from webgencyinvitations.com/dolcevita
   ========================================================================== */

:root {
  --bg-alabaster: #fffdfb;
  --bg-soft-blue: #f2f8fb;
  --bg-cream: #faf5ed;
  --blue-primary: #64a0bd;
  --blue-light: #9bc9e1;
  --blue-dark: #437994;
  --blue-soft: rgba(100, 160, 189, 0.14);
  --champagne: #c8aa78;
  --champagne-light: #e5d3b3;
  --text-dark: #232b30;
  --text-body: #4a555c;
  --text-muted: #7b878f;
  --border-soft: rgba(100, 160, 189, 0.28);
  --shadow-soft: 0 14px 40px rgba(35, 43, 48, 0.07);
  --shadow-card: 0 22px 55px rgba(35, 43, 48, 0.12);
  --font-serif: 'Rufina', 'Georgia', serif;
  --font-script: 'Imperial Script', 'Beau Rivage', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg-alabaster);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   TOP FLOATING TOOLBAR (Language Switcher & Custom Guest Link)
   ========================================================================== */
.top-floating-bar {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-btn {
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.pill-btn:hover {
  background: var(--blue-primary);
  color: #fff;
  border-color: var(--blue-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   4-FLAP WAX SEAL ENVELOPE OPENING OVERLAY (REC 2442650973)
   ========================================================================== */
.envelope-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(255, 253, 251, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease 2.1s, visibility 0s 2.9s;
}

.envelope-intro-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 100vh;
  max-height: 860px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(35, 43, 48, 0.2);
  background: var(--bg-alabaster);
}

.env-flap {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1) 0.35s, opacity 0.6s ease 2s;
}

.env-flap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.env-flap-left {
  top: -2%;
  left: -4%;
  width: 58%;
  height: 104%;
  z-index: 2;
}

.env-flap-right {
  top: -2%;
  right: -4%;
  width: 58%;
  height: 104%;
  z-index: 2;
}

.env-flap-bottom {
  bottom: -2%;
  left: -5%;
  width: 110%;
  height: 68%;
  z-index: 3;
}

.env-flap-top {
  top: -2%;
  left: -5%;
  width: 110%;
  height: 54%;
  z-index: 4;
}

/* Open Transitions for the 4 Flaps */
.envelope-intro-overlay.opened .env-flap-left {
  transform: translateX(-115%);
  opacity: 0;
}

.envelope-intro-overlay.opened .env-flap-right {
  transform: translateX(115%);
  opacity: 0;
}

.envelope-intro-overlay.opened .env-flap-bottom {
  transform: translateY(115%);
  opacity: 0;
}

.envelope-intro-overlay.opened .env-flap-top {
  transform: translateY(-115%);
  opacity: 0;
}

/* Center Wax Seal Button */
.wax-seal-trigger {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.9s ease, opacity 0.8s ease;
}

.wax-seal-trigger:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.envelope-intro-overlay.opened .wax-seal-trigger {
  transform: translate(-50%, -50%) scale(1.25);
  opacity: 0;
  pointer-events: none;
}

.wax-seal-img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(35, 43, 48, 0.25));
  animation: gentlePulse 2.6s infinite ease-in-out;
}

.wax-seal-text {
  margin-top: -12px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-dark);
  background: rgba(255, 253, 251, 0.92);
  padding: 6px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.06em;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ==========================================================================
   HERO SECTION WITH ITALIAN VILLA VIDEO (REC 2442650993)
   ========================================================================== */
.hero-video-section {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  min-height: 760px;
  overflow: hidden;
  background: var(--bg-alabaster);
  box-shadow: 0 10px 45px rgba(35, 43, 48, 0.06);
}

.hero-video-el {
  width: 100%;
  height: 760px;
  object-fit: cover;
  display: block;
}

.hero-video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 251, 0.15) 0%,
    rgba(255, 253, 251, 0.12) 30%,
    rgba(255, 253, 251, 0.65) 75%,
    #fffdfb 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
}

.hero-couple-names {
  font-family: var(--font-script);
  font-size: clamp(3.4rem, 8vw, 4.6rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.9);
}

.hero-divider-line {
  width: 180px;
  height: 1px;
  background: var(--text-dark);
  opacity: 0.45;
  margin: 12px auto;
}

.hero-getting-married {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9);
}

.replay-envelope-btn {
  margin-top: 22px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-soft);
  transition: all 0.2s;
}

.replay-envelope-btn:hover {
  background: var(--blue-primary);
  color: #fff;
}

/* ==========================================================================
   SCRATCH TO REVEAL THE DATE + COUNTDOWN (REC 2442651003)
   ========================================================================== */
.scratch-date-section {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  text-align: center;
  position: relative;
}

.section-script-title {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 6.5vw, 3.8rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.scratch-hint {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--blue-dark);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.tdr-panels {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 14px;
  max-width: 470px;
  margin: 0 auto;
}

.tdr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tdr-tile {
  position: relative;
  width: 100%;
  height: 86px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid var(--border-soft);
  box-shadow: 0 8px 22px rgba(100, 160, 189, 0.14);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.tdr-tile-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 6px;
}

.tdr-num {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.tdr-num.tdr-month {
  font-size: 1.35rem;
}

.tdr-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.tdr-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 8px;
}

.tdr-married-msg {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--blue-primary);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tdr-married-msg.tdr-show {
  opacity: 1;
  transform: translateY(0);
}

.quick-reveal-btn {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: underline;
}

#tdr-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
}

/* Countdown Boxes inside Date Section */
.countdown-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 460px;
  margin: 26px auto 20px;
}

.cd-card {
  background: var(--bg-soft-blue);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 6px;
}

.cd-val {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.cd-lbl {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.calendar-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.btn-coastal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(100, 160, 189, 0.3);
  transition: all 0.25s ease;
}

.btn-coastal:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-coastal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--blue-dark);
  border: 1.5px solid var(--blue-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.btn-coastal-outline:hover {
  background: var(--blue-primary);
  color: #ffffff;
}

/* ==========================================================================
   OPEN ENVELOPE LETTER SECTION (REC 2442651013)
   ========================================================================== */
.letter-envelope-section {
  padding: 50px 16px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.crest-top {
  width: 96px;
  margin: 0 auto 12px;
}

.birds-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: -18px;
  position: relative;
  z-index: 4;
}

.bird-left {
  width: 92px;
  animation: floatBird 3.2s ease-in-out infinite;
}

.bird-right {
  width: 62px;
  animation: floatBird 3.2s ease-in-out 0.6s infinite;
}

@keyframes floatBird {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.open-envelope-composition {
  position: relative;
  max-width: 490px;
  margin: 0 auto;
  min-height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.env-layer-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.env-letter-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  width: 66%;
  max-width: 315px;
  padding: 28px 22px 46px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(200, 170, 120, 0.35);
  margin-top: -20px;
}

.env-greeting-title {
  font-family: var(--font-script);
  font-size: 2.15rem;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 12px;
}

.env-letter-body {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.6;
}

.env-layer-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================================
   SCHEDULE OF EVENTS SECTION (REC 2442651033)
   ========================================================================== */
.schedule-section {
  padding: 70px 20px;
  background: var(--bg-soft-blue);
  text-align: center;
}

.schedule-container {
  max-width: 580px;
  margin: 0 auto;
}

.sched-top-decor {
  width: 150px;
  margin: 0 auto 14px;
}

.sched-timeline {
  position: relative;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sched-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.sched-card:hover {
  transform: translateY(-2px);
}

.sched-time {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--blue-primary);
  background: var(--bg-soft-blue);
  padding: 8px 16px;
  border-radius: 12px;
  min-width: 92px;
}

.sched-info {
  text-align: left;
  flex: 1;
}

.sched-event-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.sched-event-sub {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WEDDING VENUE & GIFTS SECTION (REC 2442651083)
   ========================================================================== */
.venue-section {
  padding: 80px 20px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.venue-arch-wrapper {
  position: relative;
  width: 290px;
  height: 370px;
  margin: 26px auto;
  border-radius: 150px 150px 20px 20px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-card);
}

.venue-arch-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-title-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.venue-addr-text {
  font-size: 1.12rem;
  color: var(--text-body);
  margin-bottom: 20px;
}

.gifts-card {
  margin-top: 44px;
  background: var(--bg-soft-blue);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 30px 24px;
  max-width: 540px;
  margin-inline: auto;
}

.gift-account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed var(--blue-primary);
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
}

.copy-pill {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 6px;
}

.copy-pill:hover {
  background: var(--blue-primary);
  color: #fff;
}

/* ==========================================================================
   DRESS CODE, PASTEL SWATCHES & OUTFIT SLIDER (REC 2442651093 - 2442651113)
   ========================================================================== */
.dresscode-section {
  padding: 74px 20px;
  background: var(--bg-cream);
  text-align: center;
}

.dresscode-container {
  max-width: 680px;
  margin: 0 auto;
}

.dresscode-illust {
  width: 220px;
  margin: 18px auto 24px;
}

.swatches-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 28px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease;
}

.color-swatch:hover {
  transform: scale(1.12);
}

.dresscode-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
  margin-bottom: 34px;
}

.dc-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
}

.dc-box h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

/* Outfit Lookbook Carousel */
.lookbook-slider-wrap {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.lookbook-viewport {
  border-radius: 22px;
  overflow: hidden;
  border: 5px solid #ffffff;
  box-shadow: var(--shadow-card);
  aspect-ratio: 3 / 4;
  background: #fff;
  position: relative;
}

.lookbook-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.lookbook-slide.active {
  display: block;
  animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.slider-nav-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.slider-prev { left: -16px; }
.slider-next { right: -16px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(100, 160, 189, 0.35);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--blue-primary);
  transform: scale(1.25);
}

/* ==========================================================================
   RSVP & INSTANT QR PASS SECTION (REC 2442651143 & 2442651153)
   ========================================================================== */
.rsvp-section {
  padding: 80px 20px;
  background: var(--bg-alabaster);
}

.rsvp-card-container {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.rsvp-side-photo {
  position: relative;
  min-height: 420px;
}

.rsvp-side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rsvp-form-side {
  padding: 38px 30px;
  background: linear-gradient(180deg, #f4f9fc 0%, #ffffff 100%);
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-family: var(--font-serif);
  font-size: 1rem;
}

.radio-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
}

.qr-pass-result {
  display: none;
  margin-top: 22px;
  background: #ffffff;
  border: 2px solid var(--blue-primary);
  border-radius: 16px;
  padding: 18px;
  text-align: left;
}

.qr-pass-result.active {
  display: block;
}

.qr-pass-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.qr-code-img {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  padding: 4px;
}

/* ==========================================================================
   FOOTER SECTION (REC 2442651163)
   ========================================================================== */
.footer-section {
  padding: 70px 20px 90px;
  text-align: center;
  background: var(--bg-alabaster);
  border-top: 1px solid var(--border-soft);
}

.footer-art {
  width: 210px;
  margin: 0 auto 18px;
}

.footer-names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 6vw, 4.2rem);
  color: var(--blue-dark);
}

/* ==========================================================================
   FLOATING AUDIO BUTTON & GUEST LINK MODAL
   ========================================================================== */
.floating-audio-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9400;
  box-shadow: 0 8px 25px rgba(100, 160, 189, 0.45);
  border: 2px solid #ffffff;
}

.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35, 43, 48, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal-backdrop.open {
  display: flex;
}

.custom-modal-box {
  background: #ffffff;
  border-radius: 22px;
  max-width: 460px;
  width: 100%;
  padding: 30px 24px;
  position: relative;
  text-align: left;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft-blue);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .dresscode-notes,
  .rsvp-card-container {
    grid-template-columns: 1fr;
  }
  .rsvp-side-photo {
    min-height: 280px;
  }
  .open-envelope-composition {
    min-height: 420px;
  }
  .env-letter-card {
    width: 76%;
  }
}
