/* ==========================================================================
   JULIA & CHARLES — DIGITAL WEDDING INVITATION CSS STYLESHEET
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --color-dusty-blue: #c3d1de;
  --color-burgundy: #1a365d;          /* Slate Navy Accent */
  --color-burgundy-dark: #1e334d;     /* Deep Slate Navy Background 1 */
  --color-burgundy-deep: #122135;     /* Deep Slate Navy Background 2 */
  --color-cream: #f4f7fa;             /* Ice Cream Light */
  --color-cream-dark: #e3ebf2;        /* Muted Ice Cream */
  --color-gold: #c3d1de;              /* Soft Dusty Blue */
  --color-gold-muted: #7991a8;        /* Muted Slate Blue */
  --color-text-light: #f0f5fa;
  --color-text-dark: #122135;
  --color-text-subtle: #5b718a;

  /* Typography Fonts */
  --font-script: 'Great Vibes', 'Alex Brush', 'Pinyon Script', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Cinzel', 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Easing */
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Global Resets & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--color-burgundy-dark);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Music Button --- */
.music-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.music-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.music-waves span {
  width: 2px;
  background: #ffffff;
  height: 100%;
  border-radius: 1px;
  animation: wave 1.2s ease-in-out infinite alternate;
}

.music-waves span:nth-child(2) { animation-delay: 0.2s; }
.music-waves span:nth-child(3) { animation-delay: 0.4s; }

.music-btn.paused .music-waves span {
  animation: none;
  height: 3px;
}

@keyframes wave {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* --- App Container & Screens Router --- */
#app-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.view-screen {
  display: none !important;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.view-screen.active-screen {
  display: block !important;
  opacity: 1 !important;
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal-on-scroll.delay-1 {
  transition-delay: 0.15s;
}

.reveal-on-scroll.delay-2 {
  transition-delay: 0.35s;
}

.reveal-on-scroll.delay-3 {
  transition-delay: 0.55s;
}

/* --- SCREEN 1: COVER LANDING VIEW --- */
#cover-view {
  background: radial-gradient(circle at center, #2b4566 0%, var(--color-burgundy-dark) 70%, var(--color-burgundy-deep) 100%);
}

#cover-view.active-screen {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

.cover-content {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: #ded1c5;
  margin-bottom: 8px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.couple-title {
  font-family: var(--font-script);
  font-size: 3.8rem;
  font-weight: 400;
  color: #fceee3;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeInUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

/* Photostrip Printing Frame with Original Gray Textured Metallic Cavity */
.photostrip-slot-wrapper {
  position: relative;
  width: 210px;
  height: 420px;
  margin: 10px 0 28px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.65));
}

.photobooth-frame-bg {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Original Photobooth Frame Base (Includes Gray Metallic Cavity) */
.frame-base-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: 4px;
}

/* Metallic Top Slot Lip Cover (Masks Photostrip Origin) */
.top-slot-cover {
  position: absolute;
  top: 4.8%;
  left: 10%;
  width: 80%;
  height: 10px;
  background: linear-gradient(180deg, #0a0a0a 0%, #222222 60%, #444444 100%);
  z-index: 10;
  border-radius: 2px 2px 4px 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.4);
}

/* Inner slot clip box where photostrip slides over gray cavity */
.photostrip-clip-box {
  position: absolute;
  top: 6%;
  left: 10%;
  width: 80%;
  height: 88%;
  overflow: hidden;
  z-index: 5;
  border-radius: 2px;
}

.photostrip-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
}

.photostrip-container.animated-drop {
  animation: photostripSlideDown 5.8s cubic-bezier(0.33, 1, 0.68, 1) 0.6s both;
  opacity: 0;
  transform: translateY(-115%);
}

@keyframes photostripSlideDown {
  0% {
    transform: translateY(-115%);
    opacity: 0;
  }
  8% {
    transform: translateY(-100%);
    opacity: 1;
  }
  30% {
    transform: translateY(-68%);
    opacity: 1;
  }
  55% {
    transform: translateY(-36%);
    opacity: 1;
  }
  80% {
    transform: translateY(-6%);
    opacity: 1;
  }
  92% {
    transform: translateY(3px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.photostrip-img {
  width: 90%;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
}

.wedding-date-hero {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: 0.25em;
  color: #f7ede4;
  margin-bottom: 24px;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 3.6s forwards;
}

/* Primary Button */
.btn-primary {
  background: transparent;
  border: 1.2px solid rgba(255, 240, 230, 0.7);
  color: #fceee3;
  padding: 12px 32px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 4.2s forwards;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Fade In Up Keyframes --- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- SCREEN 2: MAIN INVITATION CARD COLLAGE (SPREAD VERTICAL FLOW) --- */
#main-invitation-view {
  background: linear-gradient(180deg, var(--color-burgundy-dark) 0%, #132236 100%);
  overflow-x: hidden;
}

#main-invitation-view.active-screen {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  padding: 60px 0 0 0;
}

.main-invitation-container {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card Collage Wrapper (Stretched Vertical Spacing) */
.card-collage-wrapper {
  position: relative;
  width: 100%;
  min-height: 1180px;
  margin-bottom: 20px;
}

/* Base Collage Card */
.collage-card {
  position: absolute;
  background: #faf6ee;
  color: var(--color-text-dark);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
  padding: 6px;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.clickable-card {
  cursor: pointer;
}

/* Double Line Frame inside Cards */
.card-double-border {
  border: 1px solid #362923;
  padding: 22px 18px;
  position: relative;
  height: 100%;
}

/* Card 1: You Are Invited (Top Left) */
.card-invited {
  top: 20px;
  left: 0;
  width: 50%;
  transform: rotate(-6deg);
  z-index: 10;
  background: #faf6ee;
}

.card-top-right-text {
  font-family: var(--font-heading);
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  color: #5c4f46;
  text-align: right;
  margin-bottom: 12px;
  line-height: 1.5;
}

.script-with-love {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--color-burgundy);
  text-transform: none;
}

.card-script-title {
  font-family: var(--font-script);
  font-size: 3.9rem;
  line-height: 0.92;
  color: var(--color-burgundy);
}

/* Top Right Element: Open Envelope with Photostrip & Silver Wax Seal */
.envelope-photostrip-wrapper {
  position: absolute;
  top: -25px;
  right: -15px;
  width: 328px;
  z-index: 8;
  transform: rotate(6deg);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.envelope-photostrip-wrapper:hover {
  transform: rotate(4deg) scale(1.02) translateY(-3px);
}

.open-envelope-container {
  position: relative;
  width: 100%;
}

.open-envelope-bg-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.45));
}

/* Photostrip sticking out from left side */
.canva-photostrip-wrapper {
  position: absolute;
  top: 85px;
  left: 113px;
  z-index: 3;
  transform: rotate(-10deg);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.canva-photostrip-img {
  width: 72px;
  height: auto;
  background: #ffffff;
  padding: 6px 6px 14px 6px;
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  display: block;
}

.envelope-photostrip-wrapper:hover .canva-photostrip-wrapper {
  transform: rotate(-7deg) translateY(-5px);
}

/* Silver Scalloped Wax Seal Stamp (J&C) */
.wax-seal-silver-badge {
  position: absolute;
  bottom: 25px;
  right: 35px;
  z-index: 6;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4));
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.envelope-photostrip-wrapper:hover .wax-seal-silver-badge {
  transform: scale(1.08);
}

/* Pearls floating below wax seal */
.envelope-pearl-1 {
  position: absolute;
  bottom: 5px;
  right: 58px;
  width: 11px;
  height: 11px;
  z-index: 7;
}

.envelope-pearl-2 {
  position: absolute;
  bottom: -12px;
  right: 42px;
  width: 8px;
  height: 8px;
  z-index: 7;
}

/* Middle Left: Postage Stamps & Flower Accent */
.postage-stamps-group {
  position: absolute;
  top: 277px;
  left: 10px;
  z-index: 14;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.stamp-card {
  width: 150px;
  height: 200px;
  background: #ffffff;
  padding: 4px;
  border: 2px dashed #dcd0c0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.stamp-left {
  transform: rotate(-8deg);
  z-index: 15;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.stamp-right {
  transform: rotate(10deg);
  margin-left: -20px;
  z-index: 16;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.stamp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ultra-Smooth Fluid Hover for Postage Stamps */
.stamp-card:hover {
  box-shadow: 0 16px 36px rgba(0,0,0,0.38);
}

.stamp-left:hover {
  transform: rotate(-5deg) scale(1.03) translateY(-4px);
}

.stamp-right:hover {
  transform: rotate(7deg) scale(1.03) translateY(-4px) translateX(4px);
}

.white-flower-svg {
  position: absolute;
  bottom: -15px;
  left: -15px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* Card 2: Main Announcement (Center Right) */
.card-main-announcement {
  top: 340px;
  right: 0;
  width: 55%;
  transform: rotate(4deg);
  z-index: 12;
  background: #faf6ee;
  text-align: center;
}

.card-to-wedding {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #63564e;
  margin-bottom: 6px;
}

.card-names-title {
  font-family: var(--font-script);
  font-size: 3.4rem;
  line-height: 0.95;
  color: var(--color-burgundy);
  margin-bottom: 12px;
}

.card-event-date {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.card-event-location {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #706259;
}

/* Card 3: Silver Tray Platter RSVP (Center) */
.card-rsvp-tray {
  top: 384px;
  left: 1%;
  width: 92%;
  z-index: 22;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0;
  transform: rotate(-2deg);
}

.card-rsvp-tray:hover {
  transform: scale(1.02) rotate(0deg) translateY(-6px) !important;
}

.tray-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.silver-tray-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,0.6));
}

.envelope-on-tray {
  position: absolute;
  top: 64%;
  left: 27%;
  transform: translate(-50%, -50%);
  width: 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bi-thu-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  display: block;
}

.btn-rsvp-pill {
  position: absolute;
  bottom: -16px;
  background: #faf6ee;
  color: var(--color-burgundy);
  border: 1.5px solid var(--color-burgundy);
  padding: 8px 20px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 10;
}

.btn-rsvp-pill:hover {
  background: var(--color-burgundy);
  color: #ffffff;
  transform: scale(1.05);
}

/* Card 4: Our Story Trigger (Bottom Left) */
.card-story-preview {
  top: 1000px;
  left: 0;
  width: 52%;
  transform: rotate(-6deg);
  z-index: 18;
  background: #faf6ee;
}

.polaroid-mini-wrapper {
  width: 100%;
  background: #ffffff;
  padding: 6px 6px 18px 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 2px;
  margin-bottom: 6px;
}

.polaroid-mini-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.card-story-label {
  text-align: center;
}

.script-subtitle {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--color-burgundy);
}

/* Card 5: The Details Trigger (Bottom Right Envelope Pocket) */
.card-details-preview {
  top: 885px;
  right: -38px;
  width: 343px;
  transform: rotate(5deg);
  z-index: 20;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0;
}

.details-envelope-pocket {
  position: relative;
  width: 100%;
}

.pocket-envelope-bg-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45));
}

/* --- ULTRA-SMOOTH FLUID HOVER MICRO-INTERACTIONS FOR COLLAGE OBJECTS --- */
.card-invited {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.card-invited:hover {
  transform: rotate(-4deg) scale(1.02) translateY(-3px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.card-main-announcement {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.card-main-announcement:hover {
  transform: rotate(2deg) scale(1.02) translateY(-3px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.card-rsvp-tray {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.card-rsvp-tray:hover {
  transform: rotate(-1deg) scale(1.015) translateY(-3px);
}

.card-story-preview {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.card-story-preview:hover {
  transform: rotate(-4deg) scale(1.02) translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35);
}

.card-details-preview {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.card-details-preview:hover {
  transform: rotate(3deg) scale(1.02) translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35);
}

/* --- ENTRANCE MOTION ANIMATIONS FOR COLLAGE OBJECTS ON SCREEN 2 --- */
@keyframes floatInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-50px, -30px, 0) rotate(-14deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(1);
  }
}

@keyframes floatInRight {
  0% {
    opacity: 0;
    transform: translate3d(50px, -40px, 0) rotate(14deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(6deg) scale(1);
  }
}

@keyframes floatInRightCard2 {
  0% {
    opacity: 0;
    transform: translate3d(50px, -20px, 0) rotate(12deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(4deg) scale(1);
  }
}

@keyframes stampPop {
  0% {
    opacity: 0;
    transform: translate3d(-40px, 0, 0) rotate(-12deg) scale(0.7);
  }
  70% {
    transform: translate3d(0, 0, 0) rotate(-4deg) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-5deg) scale(1);
  }
}

@keyframes trayScaleUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 40px, 0) rotate(-6deg) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-2deg) scale(1);
  }
}

@keyframes floatInUpStory {
  0% {
    opacity: 0;
    transform: translate3d(-40px, 50px, 0) rotate(-12deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(1);
  }
}

@keyframes floatInUpDetails {
  0% {
    opacity: 0;
    transform: translate3d(40px, 50px, 0) rotate(12deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(5deg) scale(1);
  }
}

/* CINEMATIC SLOW STAGGERED CASCADING TRIGGERS WHEN #main-invitation-view IS ACTIVE */
#main-invitation-view.active-screen .card-invited {
  animation: floatInLeft 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

#main-invitation-view.active-screen .envelope-photostrip-wrapper {
  animation: floatInRight 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

#main-invitation-view.active-screen .postage-stamps-group {
  animation: stampPop 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

#main-invitation-view.active-screen .card-main-announcement {
  animation: floatInRightCard2 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

#main-invitation-view.active-screen .card-rsvp-tray {
  animation: trayScaleUp 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

#main-invitation-view.active-screen .card-story-preview {
  animation: floatInUpStory 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

#main-invitation-view.active-screen .card-details-preview {
  animation: floatInUpDetails 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both;
}

#main-invitation-view.active-screen .main-footer-burgundy {
  animation: fadeInUpSmooth 1.5s ease 1.5s both;
}

#main-invitation-view.active-screen .pearl-dot {
  animation: scaleBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.25s both;
}

.card-script-heading {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--color-burgundy);
  line-height: 1;
}



/* Anthurium Flower Accent on Polaroid */
.anthurium-flower-accent {
  position: absolute;
  bottom: -15px;
  left: -15px;
  z-index: 25;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  transform: rotate(-10deg);
}





/* Main Footer Burgundy Signature */
.main-footer-burgundy {
  width: 100%;
  text-align: center;
  margin-top: 350px;
  padding: 40px 0 80px 0;
  position: relative;
  z-index: 30;
}

.with-love-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #dbc9bb;
  margin-bottom: 6px;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 3.6rem;
  color: #f7ede4;
}

/* --- FULL-WIDTH CREAM FOOTER SECTION (LIGHT ICE BLUE BEIGE) --- */
.invitation-footer-cream {
  width: 100%;
  background: #e6eef5;
  color: var(--color-text-dark);
  padding: 60px 20px 80px 20px;
  text-align: center;
  border-top: 1px solid #c9d8e6;
}

.cream-footer-content {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Cream Countdown Timer */
.countdown-wrapper-cream {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-digits-row {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-burgundy);
  letter-spacing: 0.15em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.colon-cream {
  font-size: 2.4rem;
  color: var(--color-burgundy);
  display: inline-block;
  animation: pulseColon 1.8s ease-in-out infinite;
}

@keyframes pulseColon {
  0%, 100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.9);
  }
}

.countdown-digits-row span:not(.colon-cream) {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.countdown-digits-row span:not(.colon-cream):hover {
  color: #80121a;
  text-shadow: 0 0 10px rgba(128, 18, 26, 0.25);
}

.countdown-labels-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  margin-top: 6px;
}

.countdown-labels-row label {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: #7d7066;
}

.until-forever-script {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--color-burgundy);
  margin-top: 14px;
}

/* Questions & Contact Section */
.questions-contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.questions-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  color: var(--color-burgundy);
  font-weight: 600;
}

.questions-subtitle {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: #7a6d63;
}

.contact-email-link {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--color-burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--color-burgundy);
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

.contact-email-link:hover {
  opacity: 0.7;
}

/* Go Back Button Cream */
.btn-go-back-cream {
  background: transparent;
  border: 1px solid #b8a999;
  color: var(--color-burgundy);
  padding: 10px 32px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-go-back-cream:hover {
  background: var(--color-burgundy);
  color: #ffffff;
  border-color: var(--color-burgundy);
  box-shadow: 0 8px 22px rgba(107, 14, 20, 0.32);
  transform: translateY(-2px);
}

/* --- SUB-VIEWS SHARED STYLES --- */
.sub-view {
  min-height: 100vh;
  padding: 30px 20px 80px 20px;
}

#story-view.active-screen {
  display: block !important;
  background: var(--color-burgundy-dark);
  color: var(--color-text-light);
}

#details-view.active-screen {
  display: block !important;
  background: #edf3f8;
  color: var(--color-text-dark);
}

.sub-view-header {
  max-width: 540px;
  margin: 0 auto 30px auto;
}

.btn-back {
  background: transparent;
  border: none;
  color: #ebdcd0;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-back:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

/* --- SCREEN 3: OUR STORY VIEW --- */
.story-container {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.story-title {
  font-family: var(--font-script);
  font-size: 4.5rem;
  color: #fceee3;
  margin-bottom: 30px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.story-polaroid-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.polaroid-card-large {
  position: relative;
  background: #ffffff;
  padding: 12px 12px 30px 12px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  border-radius: 4px;
  width: 260px;
  transform: rotate(-2deg);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.polaroid-card-large:hover {
  transform: rotate(0deg) scale(1.05) translateY(-6px);
  box-shadow: 0 28px 55px rgba(0,0,0,0.65);
}

.washi-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  background: rgba(240, 230, 215, 0.75);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 2px dashed rgba(0,0,0,0.1);
  border-right: 2px dashed rgba(0,0,0,0.1);
}

.polaroid-card-large img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.photostrip-clip-side {
  position: absolute;
  top: 30px;
  right: -30px;
  width: 50px;
  height: 140px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transform: rotate(8deg);
  border-radius: 2px;
  background: #000;
  transition: transform 0.35s ease;
}

.polaroid-card-large:hover .photostrip-clip-side {
  transform: rotate(4deg) translateY(-4px);
}

.photostrip-clip-side img {
  width: 100%;
  height: auto;
}

.polaroid-handwritten {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: #2b2320;
  margin-top: 14px;
  transform: rotate(-2deg);
}

/* Narrative Body */
.story-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 10px;
  margin-bottom: 40px;
}

.narrative-p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: #ebdcd0;
  text-transform: uppercase;
  font-weight: 300;
  transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
}

.narrative-p:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.narrative-p.highlight-p {
  color: #ffffff;
  font-weight: 400;
}

.btn-back-bottom {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f7ede4;
  padding: 12px 32px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

.btn-back-bottom:hover {
  background: #f7ede4;
  color: var(--color-burgundy-dark);
  border-color: #f7ede4;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* --- STAGGERED MOTION ANIMATIONS FOR OUR STORY VIEW --- */
#story-view.active-screen .sub-view-header {
  animation: fadeInDownSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

#story-view.active-screen .story-title {
  animation: fadeInUpSmooth 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

#story-view.active-screen .polaroid-card-large {
  animation: scaleBounce 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

#story-view.active-screen .photostrip-clip-side {
  animation: fadeInDownSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

#story-view.active-screen .narrative-p:nth-child(1) {
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

#story-view.active-screen .narrative-p:nth-child(2) {
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

#story-view.active-screen .narrative-p:nth-child(3) {
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both;
}

#story-view.active-screen .narrative-p:nth-child(4) {
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

#story-view.active-screen .narrative-p:nth-child(5) {
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.35s both;
}

#story-view.active-screen .story-footer {
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
}

/* --- SCREEN 4: THE CELEBRATION VIEW (Cream Theme) --- */
.cream-theme {
  background: var(--color-cream);
  color: var(--color-text-dark);
}

.cream-back {
  color: var(--color-burgundy);
  padding: 8px 18px;
  border: 1px solid rgba(112, 16, 23, 0.3);
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cream-back:hover {
  color: #ffffff;
  background: var(--color-burgundy);
  border-color: var(--color-burgundy);
  box-shadow: 0 6px 16px rgba(112, 16, 23, 0.25);
  transform: translateY(-2px);
}

.details-container {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.celebration-title {
  font-family: var(--font-script);
  font-size: 4.5rem;
  color: var(--color-burgundy);
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(112, 16, 23, 0.08);
}

.celebration-section {
  padding: 20px 0;
}

.sec-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: #8c786b;
  margin-bottom: 12px;
}

.sec-accent-date {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--color-burgundy);
  margin-bottom: 6px;
}

.sec-location-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.sec-location-address, .sec-reception-desc {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #635750;
  line-height: 1.6;
}

.cream-divider {
  border: none;
  height: 1px;
  background: #e2d6c7;
  margin: 10px auto;
  width: 60%;
}

/* Dress Code Swatches */
.swatches-palette {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: inline-block;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.swatch:hover {
  transform: scale(1.35) translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.dress-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--color-burgundy);
  margin-bottom: 6px;
  margin-top: 10px;
}

.dress-desc {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #6a5e56;
}

/* Schedule Timeline Cards */
.schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 1px solid #ebdcd0;
  text-align: left;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 28px rgba(112, 16, 23, 0.12);
  border-color: var(--color-burgundy);
}

.timeline-item:hover .timeline-icon {
  background: var(--color-burgundy);
  color: #ffffff;
  transform: rotate(10deg) scale(1.1);
}

.timeline-icon {
  color: var(--color-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #f7eee6;
  border-radius: 50%;
  transition: all 0.35s ease;
}

.timeline-time {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-burgundy);
  min-width: 70px;
}

.timeline-event {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--color-text-dark);
}

/* --- STAGGERED ANIMATIONS FOR THE CELEBRATION VIEW --- */
@keyframes fadeInUpSmooth {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDownSmooth {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleBounce {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  70% {
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lineExpand {
  0% {
    width: 0%;
    opacity: 0;
  }
  100% {
    width: 60%;
    opacity: 1;
  }
}

#details-view.active-screen .sub-view-header {
  animation: fadeInDownSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

#details-view.active-screen .celebration-title {
  animation: fadeInUpSmooth 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

#details-view.active-screen .date-loc-section {
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

#details-view.active-screen .cream-divider {
  animation: lineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

#details-view.active-screen .reception-section {
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

#details-view.active-screen .dresscode-section {
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

#details-view.active-screen .swatch:nth-child(1) { animation: scaleBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both; }
#details-view.active-screen .swatch:nth-child(2) { animation: scaleBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.88s both; }
#details-view.active-screen .swatch:nth-child(3) { animation: scaleBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.96s both; }
#details-view.active-screen .swatch:nth-child(4) { animation: scaleBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.04s both; }
#details-view.active-screen .swatch:nth-child(5) { animation: scaleBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.12s both; }

#details-view.active-screen .schedule-section .sec-label {
  animation: fadeInUpSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

#details-view.active-screen .timeline-item:nth-child(1) { animation: fadeInUpSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both; }
#details-view.active-screen .timeline-item:nth-child(2) { animation: fadeInUpSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.42s both; }
#details-view.active-screen .timeline-item:nth-child(3) { animation: fadeInUpSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.54s both; }
#details-view.active-screen .timeline-item:nth-child(4) { animation: fadeInUpSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.66s both; }
#details-view.active-screen .timeline-item:nth-child(5) { animation: fadeInUpSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.78s both; }

.cream-btn {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.cream-btn:hover {
  background: var(--color-burgundy);
  color: #ffffff;
}

/* --- RSVP MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- REFERENCE RSVP MODAL DESIGN --- */
.modal-card {
  background: #dad5cd;
  color: #0f2952;
  max-width: 460px;
  width: 100%;
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s var(--ease-out-back);
  border: none;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.btn-close-modal {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #0f2952;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.btn-close-modal:hover {
  opacity: 1;
}

.rsvp-notice-text {
  font-family: var(--font-serif), 'Cormorant Garamond', Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #0f2952;
  text-align: center;
  margin-bottom: 24px;
  padding: 0 4px;
  font-weight: 600;
}

.form-group-ref {
  margin-bottom: 16px;
}

.form-group-ref.text-center {
  text-align: center;
}

.ref-section-label {
  display: block;
  font-family: var(--font-serif), 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  color: #0f2952;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.ref-input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  background: #ffffff;
  font-family: var(--font-serif), 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  color: #0f2952;
  outline: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease;
  box-sizing: border-box;
}

.ref-input::placeholder {
  color: #7991a8;
  font-family: var(--font-serif), 'Cormorant Garamond', Georgia, serif;
  font-size: 0.92rem;
}

.ref-input:focus {
  box-shadow: 0 0 0 2px rgba(15, 41, 82, 0.3);
}

.ref-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Attendance Buttons Group */
.attendance-btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

.attendance-btn {
  background: #ffffff;
  color: #0f2952;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-family: var(--font-serif), 'Cormorant Garamond', Georgia, serif;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.attendance-btn.active {
  background: #092652;
  color: #ffffff;
  font-weight: 600;
}

.attendance-btn:hover:not(.active) {
  background: #f0ede8;
}

/* Dietary Checkboxes Grid */
.dietary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  text-align: left;
  margin: 12px 0;
}

.custom-chk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif), 'Cormorant Garamond', Georgia, serif;
  font-size: 0.92rem;
  color: #0f2952;
  cursor: pointer;
  user-select: none;
}

.custom-chk-label input[type="checkbox"] {
  display: none;
}

.chk-box {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-chk-label input[type="checkbox"]:checked + .chk-box {
  background: #092652;
}

.custom-chk-label input[type="checkbox"]:checked + .chk-box::after {
  content: '✓';
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
}

.margin-top-sm {
  margin-top: 10px;
}

.margin-top-md {
  margin-top: 20px;
}

/* Submit Button Navy */
.ref-btn-submit {
  background: #092652;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 11px 48px;
  font-family: var(--font-serif), 'Cormorant Garamond', Georgia, serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(9, 38, 82, 0.25);
}

.ref-btn-submit:hover {
  background: #051838;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(9, 38, 82, 0.4);
}
  gap: 6px;
  font-size: 0.8rem;
  color: #4a3e37;
  cursor: pointer;
}

.radio-btn input {
  accent-color: var(--color-burgundy);
}

.btn-submit-rsvp {
  width: 100%;
  background: var(--color-burgundy);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

.btn-submit-rsvp:hover {
  background: #80121a;
  transform: translateY(-2px);
}

/* Success State */
.hidden-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.hidden-success.show {
  display: block;
}

.success-icon {
  width: 50px;
  height: 50px;
  background: var(--color-burgundy);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px auto;
}

.hidden-success h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--color-burgundy);
  margin-bottom: 8px;
}

.hidden-success p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #61534b;
}

/* --- RESPONSIVE MOBILE ADAPTATIONS --- */
@media (max-width: 600px) {
  .main-invitation-container {
    max-width: 100%;
    padding: 12px;
  }

  .card-collage-wrapper {
    min-height: 800px;
    margin-bottom: 30px;
  }

  /* Card 1: You Are Invited */
  .card-invited {
    top: 10px;
    left: 0;
    width: 58%;
  }

  .card-invited .card-double-border {
    padding: 12px 10px;
  }

  .card-top-right-text {
    font-size: 0.45rem;
    margin-bottom: 6px;
  }

  .card-script-title {
    font-size: 2.6rem;
    line-height: 0.95;
  }

  /* Top Right Envelope & Photostrip */
  .envelope-photostrip-wrapper {
         top: -15px;
        width: 283px;
        right: -45px;
        left: 248px;
  }

  /* Postage Stamps Group */
  .postage-stamps-group {
    top: 235px;
    left: 0px;
    gap: 4px;
  }

  .stamp-card {
    width: 95px;
    height: 130px;
    padding: 3px;
  }

  .stamp-right {
    margin-left: -15px;
  }

  /* Card 2: Main Announcement */
  .card-main-announcement {
    top: 260px;
    right: 0;
    width: 58%;
  }

  .card-main-announcement .card-double-border {
    padding: 14px 10px;
  }

  .card-to-wedding {
    font-size: 0.52rem;
    letter-spacing: 0.18em;
    margin-bottom: 4px;
  }

  .card-names-title {
    font-size: 2.4rem;
    margin-bottom: 6px;
  }

  .card-event-date {
    font-size: 0.72rem;
    margin-bottom: 2px;
  }

  .card-event-location {
    font-size: 0.46rem;
    letter-spacing: 0.12em;
  }

  /* Card 3: Silver Tray RSVP Platter */
  .card-rsvp-tray {
    top: 384px;
    width: 92%;
  }

  .btn-rsvp-pill {
    padding: 6px 14px;
    font-size: 0.58rem;
    bottom: -10px;
  }

  /* Card 4: Our Story Trigger */
  .card-story-preview {
    top: 760px;
    left: 0;
    width: 48%;
  }

  .polaroid-mini-wrapper {
    padding: 4px 4px 10px 4px;
  }

  .polaroid-mini-img {
    height: 95px;
  }

  .script-subtitle {
    font-size: 1.6rem;
  }

  /* Card 5: The Details Envelope Pocket */
  .card-details-preview {
    top: 750px;
    right: -10px;
    width: 225px;
  }

  /* Footer & Countdown Adjustments */
  .footer-names {
    font-size: 3.4rem;
  }

  .countdown-digits-row {
    font-size: 1.8rem;
    gap: 6px;
  }

  .countdown-labels-row label {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }
  .main-footer-burgundy {
    margin-top: 0;
  }
}

@media (max-width: 450px) {
  .main-footer-burgundy{
    margin-top: 0;
  }
  .canva-photostrip-img {
    width: 55px;
  }
  .card-invited {
    width: 60%;
  }

  .card-script-title {
    font-size: 2.2rem;
  }

  .envelope-photostrip-wrapper {
    left: 165px;
  }




  .stamp-card {
    width: 82px;
    height: 112px;
  }

  .card-main-announcement {
    width: 60%;
  }

  .card-names-title {
    font-size: 2.1rem;
  }

  .card-story-preview {
    top: 600px;
    width: 48%;
  }

  .card-details-preview {
    top: 550px;
    width: 195px;
    right: -12px;
  }

  .card-rsvp-tray {
    top: 260px;
  }
}

@media (min-width: 768px) {
  .main-invitation-container { max-width: 580px; }
  .card-collage-wrapper { min-height: 940px; }
}
