/* ==========================================================================
   Sena & Mert Nişan Davetiyesi - CSS Styling
   Theme: Derin Bordo (#5c0111), Gümüş/Krem (#d4cbcd), Sage Yeşili (#8A9A86)
   Font: Demo_ConeriaScript.ttf
   ========================================================================== */

/* Custom Font Declaration */
@font-face {
  font-family: 'ConeriaScript';
  src: url('../Demo_ConeriaScript.ttf') format('truetype'),
       url('Demo_ConeriaScript.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-bordo: #5c0111;
  --bg-bordo-dark: #5c0111;
  --bg-bordo-deep: #40000c;
  --sage-green: #8A9A86;
  --sage-dark: #5A6B56;
  --sage-light: #DCE3DA;
  --gold-accent: #D4AF37;
  --gold-light: #F3E5AB;
  --white: #d4cbcd;
  --off-white: #F9F8F6;
  --text-main: #2C2C2C;
  --text-muted: #666666;
  
  --font-heading: 'Playfair Display', 'Cormorant Garamond', serif;
  --font-script: 'ConeriaScript', 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.35);
  --radius-card: 16px;
  --radius-btn: 30px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

body {
  background-color: #5c0111;
  color: var(--white);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  line-height: 1.5;
}

.snap-section {
  scroll-snap-align: start;
  scroll-margin-top: 15px;
}

/* Background Texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 20%, rgba(138, 154, 134, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 12px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   HEADER & PHOTOBOOTH HERO VIEW
   ========================================================================== */

.top-title-container {
  text-align: center;
  margin-top: clamp(28px, 7vw, 48px);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-tag {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.95;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}

.top-couple-name {
  font-family: var(--font-script);
  font-size: clamp(2.3rem, 8.5vw, 3.4rem);
  font-weight: normal;
  color: var(--white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.05;
  white-space: nowrap;
}

/* Photobooth Chute Frame */
.photobooth-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.photobooth-machine {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.45));
}

.iron-container {
  position: relative;
  width: 100%;
  z-index: 5;
  line-height: 0;
}

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

/* Photo Strip Wrapper */
.photo-strip-slot-wrapper {
  position: absolute;
  top: 14.14%;
  left: 50%;
  transform: translateX(-50%);
  width: 25%;
  z-index: 15;
  pointer-events: auto;
  transition: top 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-strip-mask {
  position: relative;
  width: 100%;
  max-height: 0px;
  overflow: hidden;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  transition: max-height 0.05s linear;
}

.photo-strip-img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(-100%);
  transition: transform 0.05s linear;
  cursor: pointer;
}

.photo-strip-slot-wrapper.dropped {
  top: 22.8%;
  transform: translateX(-50%);
  animation: dropBounceToTarget 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dropBounceToTarget {
  0% { top: 14.14%; }
  70% { top: 24.5%; }
  85% { top: 21.8%; }
  100% { top: 22.8%; }
}

/* Machine Date & Venue Display */
.machine-date-display {
  margin-top: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.date-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  position: relative;
}

.date-text::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage-green), transparent);
  margin: 4px auto 0;
}

.date-subtitle {
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sage-light);
  font-weight: 500;
  opacity: 0.95;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Animated Scroll Indicator Chevron */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  color: var(--white);
  opacity: 0.85;
  animation: bounceIndicator 2s infinite;
  cursor: pointer;
}

.scroll-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.scroll-arrow {
  font-size: 1.3rem;
  line-height: 1;
}

@keyframes bounceIndicator {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(7px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver Classes)
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
  /* Extended exit animation duration (1.8s) when scrolling back up */
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  transform: translateX(-120px) scale(0.92);
}

.reveal-right {
  transform: translateX(120px) scale(0.92);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1) !important;
  /* Extended entrance animation duration (2.6s) when scrolling down into view */
  transition: opacity 2.6s cubic-bezier(0.16, 1, 0.3, 1), transform 2.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   SECTION 1: GREETING CARDS STACK
   ========================================================================== */

.section-cards-greeting {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 15px 0 25px;
}

.tilted-cards-stack {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Framed White Card (White modal, 10px margin around 3px inner frame) */
.canva-card-framed {
  width: 90%;
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.4s ease;
}

.canva-card-framed.card-greeting {
  transform: rotate(-2.5deg);
}

.canva-card-framed.card-guestname {
  transform: rotate(2deg);
}

.canva-card-framed:hover {
  transform: rotate(0deg) scale(1.02) !important;
}

/* Inner 3px Frame (10px inside white card) */
.inner-frame-3px {
  border: 3px solid #5c0111;
  border-radius: 4px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-script-text {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 10.5vw, 4.2rem);
  color: var(--bg-bordo);
  line-height: 1.05;
  font-weight: normal;
}

.card-guest-name {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  color: var(--bg-bordo);
  line-height: 1.1;
  margin-top: 4px;
  margin-bottom: 2px;
  font-weight: normal;
}

.card-tiny-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 4px;
}

.canva-guest-sub {
  font-size: 0.88rem;
  color: var(--sage-dark);
  font-weight: 600;
}

.canva-guest-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
}

/* ==========================================================================
   POLAROID PHOTO FRAME COMPONENT (Square Photo Frames)
   ========================================================================== */

.polaroid-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 25px auto;
  display: flex;
  justify-content: center;
  padding: 0 10px;
}

.polaroid-wrapper.tilt-left .polaroid-card {
  transform: rotate(-3.5deg);
}

.polaroid-wrapper.tilt-right .polaroid-card {
  transform: rotate(3.5deg);
}

.polaroid-card {
  background: #FFFFFF;
  padding: 12px 12px 22px 12px;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  width: 88%;
  max-width: 320px;
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.05) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6);
  z-index: 20;
}

/* Square Photo Frames for Classic Polaroid Proportions */
.polaroid-photo-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: #f0f0f0;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img {
  transform: scale(1.06);
}

.polaroid-caption {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: #38252C;
  text-align: center;
  margin-top: 10px;
  line-height: 1.1;
}

.polaroid-caption.caption-left {
  text-align: left;
  padding-left: 8px;
  padding-right: 50px;
  font-size: 1.55rem;
  line-height: 1.15;
}

/* Specific Alignment & Zoom for Individual Photos */
.frame-photo1 {
  aspect-ratio: 1 / 1 !important;
}

.img-photo1 {
  object-position: center 88% !important; /* Positions viewport to show couple at bottom */
}

.img-photo3 {
  transform: scale(0.90); /* Zooms out slightly for close-up photo 3 */
}

.polaroid-card:hover .img-photo3 {
  transform: scale(0.96) !important;
}

.img-photo4 {
  transform: scale(1.45); /* Zooms in closer for photo 4 */
  object-position: center 35%;
}

.polaroid-card:hover .img-photo4 {
  transform: scale(1.52) !important;
}

.img-photo6 {
  object-position: center 15% !important; /* Positions viewport to focus on top of photo 6 */
}

/* ==========================================================================
   OVERLAPPING STACKED PAGES: PHOTOS & SVG GRAPHICS (30% OVERLAP)
   ========================================================================== */

.stacked-pages-section {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 40px auto 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 580px;
  padding: 0 10px;
}

.stacked-layer {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: center;
}

.stacked-layer.layer-photo {
  top: 0;
  right: 1%;
  left: auto;
  z-index: 10;
}

.stacked-layer.layer-photo .polaroid-card {
  transform: rotate(3.5deg);
  width: 80%;
  max-width: 285px;
}

/* 30% Overlap Position (top: 240px allows comfortable spacing) */
.stacked-layer.layer-svg {
  top: 240px;
  left: 1%;
  right: auto;
  z-index: 20;
  transition-delay: 0.18s;
}

.stacked-layer.layer-svg .svg-card-wrapper {
  transform: rotate(-3deg);
}

/* Alternate Stack Layout (Photo Right, SVG Left) */
.stack-alt .stacked-layer.layer-photo {
  right: 1%;
  left: auto;
}

.stack-alt .stacked-layer.layer-photo .polaroid-card {
  transform: rotate(3.5deg);
}

.stack-alt .stacked-layer.layer-svg {
  left: 1%;
  right: auto;
  top: 240px;
}

.stack-alt .svg-card-wrapper {
  transform: rotate(-3deg);
}

/* Custom Stack Spacing Adjustments */
.stacked-pages-section.stack-first {
  margin-top: 15px;
  margin-bottom: 60px;
}

.stack-shift-down .stacked-layer.layer-svg {
  top: 275px;
}

.stack-wide-gap {
  min-height: 620px;
}

.stack-wide-gap .stacked-layer.layer-svg {
  top: 285px;
}

/* Photo Stamp Overlay Component */
.card-stamp-accent.stamp-photo-overlay {
  position: absolute;
  top: -22px;
  left: -20px;
  width: clamp(85px, 25vw, 115px);
  z-index: 25;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  transform: rotate(-12deg);
  pointer-events: none;
  transition: transform 0.4s ease;
}

.polaroid-card:hover .stamp-photo-overlay {
  transform: rotate(0deg) scale(1.08) !important;
}

/* SVG Decorative Element Styling */
.svg-card-wrapper {
  width: 88%;
  max-width: 335px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: rotate(-3deg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.stacked-layer.layer-photo:hover {
  z-index: 30;
}

.stacked-layer.layer-svg:hover {
  z-index: 30;
}

.stacked-layer.layer-photo:hover .polaroid-card {
  transform: rotate(0deg) scale(1.05) !important;
}

.svg-card-wrapper:hover {
  transform: rotate(0deg) scale(1.05) !important;
}

.svg-element-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

@media (max-width: 380px) {
  .two-column-section {
    gap: 10px;
    padding: 0 4px;
  }

  .polaroid-caption {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   SECTION 2: FORMAL INVITATION DETAILS CARD
   ========================================================================== */

.section-invitation-details {
  width: 100%;
  max-width: 440px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  padding: 0 12px;
}

.canva-card-invitation {
  width: 92%;
  background: #FAFAFA;
  color: var(--text-main);
  border-radius: 8px;
  padding: 26px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(-1deg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.4s ease;
}

.canva-card-invitation:hover {
  transform: rotate(0deg) scale(1.02) !important;
}

.canva-couple-script {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 9vw, 3.5rem);
  color: var(--bg-bordo);
  line-height: 1;
  margin-bottom: 4px;
}

.canva-event-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--sage-dark);
  margin-bottom: 12px;
}

.canva-event-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.canva-meta-box {
  background: rgba(138, 154, 134, 0.12);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-around;
  border: 1px solid rgba(138, 154, 134, 0.25);
}

.canva-meta-item {
  display: flex;
  flex-direction: column;
}

.canva-meta-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--sage-dark);
}

.canva-meta-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg-bordo);
}

/* ==========================================================================
   SECTION 3: WAX SEAL & STORY
   ========================================================================== */

.section-story {
  width: 100%;
  max-width: 440px;
  margin: 25px auto;
  text-align: center;
  padding: 0 16px;
}

.wax-seal-wrapper {
  margin: 35px 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wax-seal-container {
  position: relative;
  width: clamp(140px, 42vw, 175px);
  height: clamp(140px, 42vw, 175px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wax-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wax-seal-container:hover .wax-seal-img {
  transform: scale(1.06) rotate(4deg);
}

/* Card Flower Overlays & Peeking Accents */
.card-flower {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
  opacity: 0.95;
  transition: transform 0.4s ease;
}

.flower-top-right {
  top: -24px;
  right: -22px;
  width: clamp(95px, 28vw, 135px);
  z-index: 25;
  transform: rotate(14deg);
}

.flower-top-right-outer {
  top: -55px;
  right: -48px;
  width: clamp(85px, 24vw, 115px);
  z-index: 25;
  transform: rotate(20deg);
}

.flower-top-left {
  top: -24px;
  left: -22px;
  width: clamp(95px, 28vw, 135px);
  z-index: 25;
  transform: rotate(-14deg);
}

.flower-bottom-left {
  bottom: -24px;
  left: -22px;
  width: clamp(100px, 29vw, 140px);
  z-index: 25;
  transform: rotate(-12deg);
}

.flower-bottom-right {
  bottom: -24px;
  right: -22px;
  width: clamp(100px, 29vw, 140px);
  z-index: 25;
  transform: rotate(12deg);
}

.flower-bottom-right-outer {
  bottom: -30px;
  right: -32px;
  width: clamp(110px, 31vw, 145px);
  z-index: 25;
  transform: rotate(14deg) scaleX(-1);
}

.flower-behind-top-left {
  top: -28px;
  left: -30px;
  width: clamp(105px, 30vw, 145px);
  z-index: -1;
  transform: rotate(-18deg);
}

.flower-behind-top-right {
  top: -28px;
  right: -30px;
  width: clamp(105px, 30vw, 145px);
  z-index: -1;
  transform: rotate(18deg);
}

.flower-behind-bottom-left {
  bottom: -28px;
  left: -30px;
  width: clamp(105px, 30vw, 145px);
  z-index: -1;
  transform: rotate(-16deg);
}

.flower-behind-stamp {
  top: -15px;
  right: -20px;
  width: clamp(110px, 32vw, 150px);
  z-index: -1;
  transform: rotate(22deg);
}

.flower-behind-stamp-left {
  top: -15px;
  left: -20px;
  width: clamp(110px, 32vw, 150px);
  z-index: -1;
  transform: rotate(-22deg);
}

.story-lead-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sage-light);
  line-height: 1.8;
  margin-bottom: 8px;
}

.story-script-signature {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--white);
  margin-top: 6px;
}

/* ==========================================================================
   SECTION 4: CANVA COUNTDOWN TIMER
   ========================================================================== */

.section-canva-countdown {
  width: 100%;
  max-width: 440px;
  margin: 35px auto;
  text-align: center;
  padding: 0 16px;
}

.canva-timer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.canva-timer-num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.canva-timer-sep {
  font-size: 1.6rem;
  color: var(--sage-light);
  opacity: 0.6;
}

.canva-timer-labels {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 6px;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage-light);
  font-weight: 700;
}

.canva-timer-subtitle {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--gold-light);
  margin-top: 12px;
}

/* ==========================================================================
   SECTION 5: VENUE & LOCATION CARD
   ========================================================================== */

.section-canva-location {
  width: 100%;
  max-width: 440px;
  margin: 30px auto;
  padding: 0 16px;
}

.canva-location-card {
  background: var(--off-white);
  color: var(--text-main);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.venue-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-bordo);
}

.venue-address {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-location-map {
  margin-top: 4px;
  background: var(--sage-green);
  color: var(--white);
  text-decoration: none;
  padding: 11px 24px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-location-map:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION 6: RSVP SECTION
   ========================================================================== */

.section-canva-rsvp {
  width: 100%;
  max-width: 440px;
  margin: 30px auto;
  padding: 0 16px;
}

.canva-rsvp-envelope {
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: 12px;
  padding: 26px 20px;
  box-shadow: var(--shadow-deep);
  text-align: center;
}

.rsvp-envelope-title {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--bg-bordo);
  line-height: 1;
  margin-bottom: 4px;
}

.rsvp-envelope-sub {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 18px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--sage-green);
}

.btn-rsvp-submit {
  width: 100%;
  margin-top: 8px;
  background: var(--bg-bordo);
  color: var(--white);
  border: none;
  padding: 13px 20px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-rsvp-submit:hover {
  background: var(--bg-bordo-deep);
}

/* RSVP Success State */
.rsvp-success-container {
  padding: 20px 10px 10px;
  text-align: center;
  animation: fadeInSuccess 0.4s ease-out forwards;
}

@keyframes fadeInSuccess {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.rsvp-success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #f7ebed;
  border-radius: 50%;
  margin-bottom: 14px;
}

.rsvp-success-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--bg-bordo);
  margin-bottom: 10px;
  font-weight: 700;
}

.rsvp-success-desc {
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-rsvp-edit {
  background: transparent;
  color: var(--sage-dark);
  border: 1.5px solid var(--sage-dark);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-rsvp-edit:hover {
  background: var(--sage-dark);
  color: #FFFFFF;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-container.toast-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-bordo);
  color: #FFFFFF;
  padding: 13px 24px;
  border-radius: 50px;
  box-shadow: 0 12px 35px rgba(92, 1, 17, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.9rem;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-height: 80vh;
  max-width: 85vw;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1005;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.45);
}

.lightbox-prev {
  left: -55px;
}

.lightbox-next {
  right: -55px;
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.78rem;
  color: rgba(212, 203, 205, 0.7);
  text-align: center;
}

/* Media Queries */
@media (max-width: 480px) {
  .app-container {
    padding: 10px 8px 40px;
  }

  .top-couple-name {
    font-size: 2.3rem;
  }

  .canva-couple-script {
    font-size: 2.5rem;
  }

  .date-text {
    font-size: 1.5rem;
    letter-spacing: 2.5px;
  }

  .lightbox-prev {
    left: -15px;
  }

  .lightbox-next {
    right: -15px;
  }
}
