*{box-sizing:border-box;margin:0;padding:0}
img{display:block;max-width:100%}
/* Improve SVG and image rendering quality and performance on mobile */
img[src$=".svg"]{shape-rendering:geometricPrecision;image-rendering:optimizeQuality}

:root{
  --bg:#E5E1D8;
  --text:#605843;
  --green:#566841;
  --paper:#ffffff;
}

body{
  text-align: center;
  align-items: center;
	min-height:100vh;
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)),
                url('../IMG/bgtexture.JPG') repeat-y;
    color:var(--text);
    max-width: 100vw;
    overflow-x:hidden;
}
@media (max-width: 450px){
    html, body {
        overflow-x: hidden;
    }
}

.bg-music {
  display: none;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(96, 88, 67, 0.92);
  color: #efeade;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
}

.music-toggle:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.music-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.music-icon-off {
  display: none;
}

.music-toggle.is-muted {
  background: rgba(75, 69, 52, 0.95);
}

.music-toggle.is-muted .music-icon-on {
  display: none;
}

.music-toggle.is-muted .music-icon-off {
  display: inline-block;
}

.music-toggle.is-muted .music-toggle-text {
  opacity: 0.85;
}

@media (max-width: 540px) {
  .music-toggle {
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    font-size: 13px;
  }
}

.mail_box_wrapper{
	width:100%;
	display:flex;
	align-items: center;
	text-align: center;
	justify-content:center;
	animation: envelopeContainerFadeIn 0.8s ease-out0.5s both;
	/* limit 3D perspective to envelope area to reduce page repainting */
	perspective:1200px;
	opacity:0;
}

.Img_popup {
  display: flex;
  position:absolute;
  width:150px;
  margin-top: 190px;
  margin-left: 100px;
  z-index:4;
  transform-style:preserve-3d;
	animation: mailBox3DFlip 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
  opacity:0;
}
@keyframes mailBox3DFlip{
	0%{
		opacity:0;
		transform:translateY(30px);
	}
	100%{
		opacity:1;
		transform:translateY(0);
	}
}

.I1,.I2{
  position: relative;
  background:var(--paper);
  padding:6px;
  border-radius:2px;
  box-shadow:0 16px 24px rgba(0,0,0,.18);
  opacity:0;
}
.I1{animation: slideOut 1.5s cubic-bezier(.22,1,.36,1) 0.6s forwards;}
.I2{animation: slideOuts 1.5s cubic-bezier(.22,1,.36,1) 0.6s forwards;}

@keyframes slideOut{
  0%{left: 45%;transform: rotate(0deg) translateY(60px);opacity: 0;}
  100%{left:12%; transform: rotate(-8deg) translateY(-115px);opacity: 1;}
}

@keyframes slideOuts{
  0%{right: 45%;transform: rotate(0deg) translateY(60px);opacity: 0;}
  100%{right:12%; transform: rotate(8deg) translateY(-115px);}
}



/* ===== Envelope block (top) ===== */
.mail_box{
  align-items: center;
  justify-content: center;
  margin-left: -26px;
  margin-top: 80px;
  margin-bottom: -100px;
  position: absolute;
  width:490px;
  aspect-ratio: 400/649;
  background:transparent;
  user-select:none;
  /* entrance */
  position: relative;
}
.mail_box.is-loaded{
  opacity:1;
  transform: translateY(0);
}

.mail_body{
  position:absolute;
  left:50%;
  top: 18.5%;
  transform:translateX(-50%);
  width: 454px;
  z-index:4;
  filter: drop-shadow(0 22px 22px rgba(0,0,0,.10));
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.2,.9,.2,1);
}

/* lid/flap svg */
.mail {
  position:absolute;
  width:100%;
  left:50%;
  top: 8%;
  transform:translateX(-50%);
  z-index:4;
}

/* Photos (polaroids) */


.mail_box.is-loaded .I1{ opacity:1; transform: rotate(-8deg) translateY(0); }
.mail_box.is-loaded .I2{ opacity:1; transform: rotate(6deg) translateY(0); }

.Flower_popup_left{
  display: flex;
  position: relative;
  transform-style:preserve-3d;
	animation: mailBox3DFlips .8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s forwards;
  opacity: 0;
  z-index: 9;
}
@keyframes mailBox3DFlips{
	0%{
		opacity:0;
    transform: translateY(0px);
	}
	100%{
		opacity:1;
    transform: translateY(100px);
	}
}
.Flower_popup_right{
  display: flex;
  position: relative;
	animation: mailBox3DFlips .8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s forwards;
  opacity: 0;
  z-index: 10;
}
@keyframes mailBox3DFlipss{
	0%{
		opacity:0;
		transform:translateY(390px);
	}
	100%{
		opacity:1;
		transform:translateY(290px);
	}
}


/* Flowers */
.flower_bottom{
  position:absolute;
  left:-1%;
  top: 49.3%;
  width:200px;
  z-index:7;
  transform-style:preserve-3d;
	animation: mailBox3DFlipss 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s forwards;
  opacity: 0;
}
.flower_top{
  position:absolute;
  right:-3.5%;
  top:26%;
  width:200px;
  z-index:7;
  transform: translateY(8px);
  transform-style:preserve-3d;
	animation: mailBox3DFlips 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s forwards;
  opacity: 0;
}

.poenie {
	position: absolute;
	top: 18%;
	left: 1%;
	transform: translateX(-50%);
	width: 140px;
	z-index: 1;
	animation: fadeInUp 0.9s ease-out 0.2s forwards;
}

.mail_box.is-loaded .flower_bottom,
.mail_box.is-loaded .flower_top{
  opacity:1;
  transform: translateY(0);
}

/* Wax seal */
.seal{
  position:absolute;
  left:50%;
  top: 34%;
  width:175px;
  z-index:8;
  transform: translateX(-50%) scale(.86);
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.16));
}
@keyframes slideInFromLeft{
	0%{opacity:0;transform:translateX(-60px)}
	100%{opacity:1;transform:translateX(0)}
}

/* "Save our date" text on envelope */
.latter_on_mail{
  display: flex;
  position:absolute;
  top: 10%;
  left: 23%;
  transform:translateX(-50%,-50%);
  font-family:"Kapakana", cursive;
  font-size: 50px;
  color: var(--text);
  white-space:nowrap;
  transition: opacity 1s ease;
  z-index: 9;
}
.mail_box.is-loaded .latter_on_mail{ opacity:1; }

/* ===== Big photo section (middle) ===== */
.I3{
  position: relative;
  width: 460px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.ltt_countdown{
  font-family:'Kapakana', cursive;
  font-size:60px;
  color:var(--text);
  text-align:center;
  opacity:0;
}
.latter_container {
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heading , .sub_latter{
  opacity: 0;
}

/* ===== Text section (bottom) ===== */
.latter{
  flex-direction: column;
  width:100%;
  text-align:center;
  color: var(--text);
  overflow-x: hidden;
  align-items: center;
  padding: 20px 10px;
}

.maskgroup_top {
  margin-left: 280px;
  margin-right: 0;
  margin-bottom: -150px;
  margin-top: -20px;
  width: 280px;
  display: block;
}

.maskgroup_btm {
  margin-left: -285px;
  margin-top: -170px;
  width: 280px;
}

.logo{
  display: flex;
  width: 300px;
  margin: 0 40px 16px;
  display: block;
}

.Date {
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 30px;
}

.latter h1{
  font-family:"Alice", serif;
  font-size: 44px;
  line-height:1.2;
  margin: 6px 0 10px;
  text-transform:uppercase;
}

.latter h3{
  font-family:"Alice", serif;
  line-height:1.7;
  font-size: 23px;
  text-transform:uppercase;
  margin-top: 14px;
  margin-bottom:-50px;
}

.latter h4{
  font-family:"Alice", serif;
  font-weight:400;
  font-size: 25px;
  line-height:1;
  margin-top: -70px;
  margin-bottom: 20px;
  color: var(--text);
}

.address {
  font-family: "Alice", serif;
  margin-top: 20px;
  font-size: 21px;
  color: var(--text);
}

.locat_ic{
  display: flex;
  position: relative;
  width: 1000px;
  left: 5%;
  transform-origin: 50% 50%;
  /* pulse animation */
  animation: heartPulses 1s ease-in-out infinite;
}

.locat_ic img {
  width: 50px;
  margin-left: -35px;
  margin-bottom: -35px;
}

.location {
  position: relative;
  margin: 0 auto 0;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  width: fit-content;
  
}
@keyframes heartPulses {
  0%  { transform: scale(1.1); }
  50% { transform: scale(0.96); }
  100% { transform: scale(1.1); }
}

/* ================= LOVE SECTION (refined layout) ================= */

.love_section{
  position:relative;
  width:100%;
  min-height:650px;
  display: flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  margin-bottom: -150px;
  transition: all 1s ease-in;
  opacity: 0;
}

.I4{
  max-width: 460px;
  width: 100%;
  display: block;
  margin: 0 auto;
  opacity:0;
  transition: opacity 900ms ease, transform 900ms ease;
  animation: fadeInUp 0.9s ease-out 0.9s forwards;
}

/* Collage area — central framed composition */
.love_collage{
  position:relative;
  width:100%;
  max-width:550px;
  height: 660px;
}

/* ================= Polaroids (styled like the design) ================= */
.polaroid{
  position:absolute;
  width:160px;
  background:#fff;
  padding: 2px;
  border-radius:4px;
  border:3px solid #ffffff;
  box-shadow:0 28px 40px rgba(0,0,0,.18);
  z-index:3;
}

.polaroid img{
  width: 100%;
  display:block;
  object-fit:cover;
}

/* Left polaroid — top-left, slightly tilted */
.polaroid_left{
  left:12%;
  top:8%;
  transform:rotate(-12deg);
  z-index:4;
}

/* Right polaroid — lower-right, slightly tilted */
.polaroid_right{
  height: 235px;
  right:13%;
  top:36%;
  transform:rotate(7deg);
  z-index:4;
}

/* ================= Wax Seal (central, overlapping photos) ================= */
.wax_seal{
  position:absolute;
  left:53%;
  top:37%;
  transform:translate(-50%,-50%);
  width:180px;
  z-index:6;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.18));
}

.love_poenie{
  position:absolute;
  left:45%;
  top:20%;
  width:120px;
  transform:rotate(45deg);
  z-index:5;
}

/* Flowers remain decorative — keep off the main stacking context */
.love_flower_top,
.love_flower_bottom{
  position:absolute;
  width:190px;
  z-index:20;
}

.love_flower_top{ left:-10%; top:1%; }
.love_flower_bottom{ right:-9.8%; bottom:10.8%;}

/* ================= LOVE TEXT (centered composition + vertical accents) ================= */
.love_text{
  position:absolute;
  right: 3%;
  top:10%;
  transform:translate(-50%,-50%);
  z-index:5;
  color:var(--text);
  font-family:"Alice", serif;
}

.love_text span{ display:block; }

/* Decorative stacked letters near the top-right (if used) */
.love_text span:nth-child(1),
.love_text span:nth-child(2){
  letter-spacing:8px;
  font-size:45px;
  transform: rotate(-10deg);
}

.love_small, .love_smalls{ 
  position:absolute;
  font-size:40px;
}
.love_small{  left: 38%;top:55%;transform:translate(-50%,-50%) rotate(10deg);}
.love_smalls{ left: 25%;top:61%;transform:translate(-50%,-50%) rotate(-10deg);}


.love_big_word{
  position:absolute;
  left: 35%;
  top:70%;
  transform:translate(-50%,-50%);
  font-size:46px;
  z-index:5;
  display:flex;
  color:var(--text);
  font-family:"Alice", serif;
}

/* Mobile tuning */
@media (max-width:480px){
  .love_text{
    padding-top:150px;
  }

  .polaroid_left{
    left:13%;
    top:10%;
  }

  .polaroid_right{
    right:13%;
    bottom:10%;
  }
}

.countdown {
  font-family:'Alice', serif;
  font-size:35px;
  color:var(--text);
  text-align:center;
  margin:20px 0 80px;
  opacity: 0;
}

.calendar-title {
  margin-top: 20px;
  margin-bottom: 40px;
  text-align: center;
  font-family: 'Kapakana', cursive;
  font-size: 75px;
  color: var(--text);
}

.mail_wallpaper {
  width: 100%;
  max-width: 540px;
  display: block;
  margin: 0 auto;
  opacity: 0;
}

.calendar {
  width: 460px;
  max-width: 100%;
  margin: 20px auto;
  z-index: 2;
}

/* ── HTML Calendar styles ── */
.cal-inner {
  background: #62764A;
  border-radius: 12px;
  padding: 20px 16px 24px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.cal-title {
  font-family: 'Great Vibes', cursive;
  font-size: 48px;
  color: #fff;
  text-align: center;
  margin-bottom: 14px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-head {
  font-family: 'Alice', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 6px 0;
}

.cal-day, .cal-empty {
  font-family: 'Alice', serif;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 10px 4px;
  position: relative;
}

/* The special date cell */
.cal-target {
  font-weight: bold;
  color: #fff;
  position: relative;
}

/* Heart sits perfectly over date 9 — always correct regardless of app */
.heart {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  z-index: 12;
  pointer-events: none;
  animation: heartPulse 1s ease-in-out infinite;
}

@keyframes heartPulse {
  0%  { transform: translate(-50%, -50%) scale(1); }
  14% { transform: translate(-50%, -50%) scale(1.23); }
  28% { transform: translate(-50%, -50%) scale(0.96); }
  45% { transform: translate(-50%, -50%) scale(1.18); }
  100%{ transform: translate(-50%, -50%) scale(1); }
}

/* smaller screens */
@media (max-width: 480px) {
  .cal-title { font-size: 36px; }
  .cal-head  { font-size: 11px; }
  .cal-day   { font-size: 13px; padding: 8px 2px; }
  .heart     { width: 100px; }
}
.Story {
  align-items: center;
  text-align: center;
  font-family: 'Alice', serif;
  font-size: 19px;
  opacity: 0;
}
/* Scroll animation state */
.scroll-animate {
  animation: scrollFadeIn 1s ease-out forwards !important;
  opacity: 1 !important;
}

.scroll-animate-up {
  animation: scrollFadeOut 1s ease-in forwards !important;
}

/* Typed animations: assignable via JS classes anim-fade / anim-left / anim-right */
.scroll-animate.anim-fade {
  animation: scrollFadeIn 0.6s ease-out forwards !important;

}
.scroll-animate-up.anim-fade {
  animation: scrollFadeOut 0.7s ease-in forwards !important;
}

.scroll-animate.anim-left {
  animation: fadeInLeft 0.9s ease-out forwards !important;
}
.scroll-animate-up.anim-left {
  animation: slideToRight 0.8s ease-in forwards !important;
}

.scroll-animate.anim-right {
  animation: fadeInRight 0.9s ease-out forwards !important;

}
.scroll-animate-up.anim-right {
  animation: slideToLeft 0.8s ease-in forwards !important;

}

.scroll-animate.calendar-container {
	animation: slideInFromLeft 1s ease-out forwards !important;
}

.scroll-animate-up.calendar-container {
	animation: slideOutToLeft 1s ease-in forwards !important;
}

.scroll-animate.Event_timeline {
	animation: slideInFromLeft 1s ease-out forwards !important;
}

.scroll-animate-up.Event_timeline {
	animation: slideOutToLeft .8s ease-in forwards !important;
}



@keyframes fadeInLeft{
	0%{opacity:0;transform:translateX(-30px)}
	100%{opacity:1;transform:translateX(0)}
}

@keyframes fadeInRight{
	0%{opacity:0;transform:translateX(30px)}
	100%{opacity:1;transform:translateX(0)}
}

@keyframes fadeInUp{
	0%{opacity:0;transform:translateY(20px);}
	100%{opacity:1;transform:translateY(0)}
}

@keyframes mailOpen{
	0%{
		opacity:0;
		transform:scale(0.8) rotateX(90deg);
		filter:brightness(.98) blur(4px);
	}
	60%{
		opacity:1;
		transform:scale(1.05) rotateX(-10deg);
		filter:brightness(.98) blur(0);
	}
	100%{
		opacity:1;
		transform:scale(1) rotateX(0deg);
		filter:brightness(.98);
	}
}

@keyframes scrollFadeIn{
	0%{opacity:0;transform:translateY(70px)}
	100%{opacity:1;transform:translateY(0)}
}

@keyframes scrollFadeOut{
	100%{opacity:0;transform:translateY(70px)}
}

@keyframes slideInFromLeft{
	0%{opacity:0;transform:translateX(-60px)}
	100%{opacity:1;transform:translateX(0)}
}

@keyframes slideOutToLeft{
	0%{opacity:1;transform:translateX(0)}
	100%{opacity:0;transform:translateX(-70px)}
}

@keyframes slideFromLeft {
	0% {
		opacity: 0;
		transform: translateX(-100%);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideFromRight {
	0% {
		opacity: 0;
		transform: translateX(100%);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideToRight {
	0% {
		opacity: 1;
		transform: translateX(0);
	}
	100% {
		opacity: 0;
		transform: translateX(100%);
	}
}

@keyframes slideToLeft {
	0% {
		opacity: 1;
		transform: translateX(0);
	}
	100% {
		opacity: 0;
		transform: translateX(-100%);
	}
}

/* ── Performance: reduce paint/layout during animations ── */
.image {
  will-change: transform;
  contain: layout style;
}
.carousel-container {
  contain: layout;
}
.I1, .I2, .Flower_popup_left, .Flower_popup_right {
  will-change: transform, opacity;
}
.mail_box {
  contain: layout style;
}
/* Reduce repaints from scroll observer on mobile */
.will-animate {
  will-change: transform, opacity;
}
/* Hardware-accelerate the petal canvas */
#petal-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.calendar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 460px;
  width: 100%;
  margin: 1px auto;
  padding: 0 1px;
  opacity: 0;
}

.carousel-container {
	display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
  flex-direction: column;
}

.image {
  position: absolute;
  width: 360px;
  height: auto;
  cursor: pointer;
  transition: all .5s ease-in-out;
  transform-style: preserve-3d;
}

.carousel-container {
  position: relative;
  width: 530px;
  margin: 0 auto;
}

.carousel-container img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.previous2 {
  transform: translateX(-70px) translateY(10px) scale(0.6);
  left: -5%;
  z-index: -20;
}
.previous {
  transform: translateX(-70px) translateY(10px) scale(0.7);
  left: 3%;
  z-index: -10;
}

.active {
  transform:  translateY(10px) translateX(-70px);
  left: 23%;
  z-index: 20;
  box-shadow: rgba(0,0,0,0.35) 0px 5px 15px;
}

.next {
  transform: translateX(-70px) translateY(10px) scale(0.7);
  left: 40%;
  z-index: -10;
}
.next2 {
  transform: translateX(-70px) translateY(10px) scale(0.6);
  left: 45%;
  z-index: -20;
}

@media (max-width: 480px) {
  .calendar-container, .I3{
    width: 100%;
  }
  
  .lifetime {
    max-width: 100%;
  }
  
  .lifetime .I2_lifetime {
    width: 100%;
    height: 300px;
  }
  
  .latter_lifetime {
    width: 100%;
    padding: 50px 30px;
    font-size: 32px;
  }
  
  .flower_lifetime {
    left: 50px;
    bottom: -50px;
  }
}

/* ===== Event Timeline Section ===== */
.Event_timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 30px auto;
  padding: 40px 30px;
}

.Event_timeline .heading {
  font-family: "Kapakana", cursive;
  font-size: 55px;
  color: var(--text);
  text-align: center;
  margin-bottom: 20px;
}

.Event_timeline .Monday {
  position: relative;
  margin-left: -280px;
  font-family: "Kapakana", cursive;
  font-size: 30px;
  color: #5a4a3a;
  margin-bottom: -30px;
}

.Event_timeline .time_date {
  font-family: "Alice", serif;
  font-size: 24px;
  color: #5a4a3a;
  text-align: center;
  margin-bottom: 40px;
}

/* Timeline event items */
.Event_timeline .timeline-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 20px;
}


.sompeas_icon { position: absolute;width: 120px; left: 110px; top: 295px;z-index: -100;}

.sompeas_ison{opacity: 0;;transition: all 1s ease;}


.time {
  font-family: "Alice", serif;
  font-size: 20px;
  color: var(--text);
  min-width: 80px;
  line-height: 55px;
}

.divider {
  width: 2px;
  height: 250px;
  background: var(--green);
}
.icon {
  width: 40px;
  text-align: center;
}

.icon img {
  width: 100%;
  height: auto;
}

.home_icon {
  transform: translateY(-5px);
}

.camera_icon , .party_icon, .sompeas_icon{
  transform: translateY(5px);
}

.event-text {
  text-align: left;
  font-family: "Alice", serif;
  font-size: 20px;
  color: var(--text);
  line-height: 2.7;
}

.heading_dc {
  font-family: "Kapakana","Alice" ,cursive;
  font-size: 40px;
  color: var(--text);
  text-align: center;
  margin-bottom: 20px;
  margin-top: -50px;
}
.DC {
  position: relative;
  margin: 0 auto;
  width: 340px;
}

/* ===== Lifetime Section ===== */
.lifetime {
  display: flex;
  align-items: stretch;
  width: 460px;
  max-width: 100%;
  margin: 50px auto 60px;
  border-radius: 0;

  position: relative;
}

.lifetime .I2_lifetime {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.toguest {
  margin-top: 80px;
  text-align: center;
  font-family: "Alice", serif;
  font-size: 20px;
  color: var(--text);
  opacity: 0;
}

/* ===== RSVP Form ===== */
.rsvp-form-container {
  width: 100%;
  max-width: 860px;
  margin: 48px auto 80px;
  padding: 0 32px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-input {
  width: 100%;
  border: 2px solid #7b7260;
  border-radius: 999px;
  background: transparent;
  color: #665f4f;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
  padding: 14px 20px;
  outline: none;
}

.form-input::placeholder {
  color: #6f6757;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6f6757 50%),
    linear-gradient(135deg, #6f6757 50%, transparent 50%);
  background-position:
    calc(100% - 28px) calc(50% - 4px),
    calc(100% - 18px) calc(50% - 4px);
  background-size: 10px 10px, 10px 10px;
  background-repeat: no-repeat;
  padding-right: 56px;
}

.message-input {
  border-radius: 42px;
  min-height: 170px;
  resize: vertical;
  padding-top: 20px;
}

.submit-btn {
  margin-top: 16px;
  border: none;
  border-radius: 999px;
  background: #6e6656;
  color: #f4f0e8;
  font-family: "Cinzel", serif;
  font-size: clamp(14px, 2vw, 34px);
  letter-spacing: 0.02em;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.form-message {
  min-height: 26px;
  font-family: "Playfair Display", serif;
  font-size: clamp(16px, 2vw, 24px);
  text-align: center;
}

.form-message.success {
  color: #3f6a3f;
}

.form-message.error {
  color: #9a3030;
}

@media (max-width: 880px) {
  .rsvp-form-container {
    padding: 0 16px;
    margin-top: 28px;
  }

  .form-input {
    font-size: clamp(18px, 5.4vw, 26px);
    padding: 12px 16px;
  }

  .message-input {
    min-height: 130px;
    border-radius: 30px;
  }

  .submit-btn {
    font-size: clamp(12px, 4vw, 18px);
    padding: 10px 14px;
  }
}

/* RSVP form styles matching the provided design */
.rsvp-form-container {
  max-width: 720px;
  margin: 36px auto 80px;
  padding: 0 28px;
}

.rsvp-form {
  display:flex;
  flex-direction:column;
  gap:18px;
}

.form-input {
  background: rgba(229,225,216,0.9);
  border: 2px solid rgba(96,88,67,0.9);
  padding: 14px 22px;
  border-radius: 26px;
  font-size: 20px;
  color: var(--text);
  outline: none;
  transition: box-shadow .18s ease, transform .12s ease;
}

.form-input::placeholder { color: rgba(96,88,67,0.7); }

.form-input:focus {
  box-shadow: 0 6px 18px rgba(86,104,65,0.12);
  transform: translateY(-2px);
}

.message-input {
  border-radius: 32px;
  padding: 20px 26px;
  min-height: 120px;
}

.submit-btn {
  background: var(--green);
  color: #efeade;
  border: none;
  padding: 12px 18px;
  font-size: 18px;
  border-radius: 22px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.08);
  cursor: pointer;
  letter-spacing: .6px;
  
}

.submit-btn:hover { filter: brightness(.95); }
.submit-btn:active { transform: translateY(1px); box-shadow: 0 3px 0 rgba(0,0,0,0.06); }

.form-message { font-size: 14px; color: var(--text); margin-top: 8px;}
/* ── Success Message — Polaroid card style (like the video) ── */
.hidden { display: none !important; }
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 20px;
  width: min(320px, 88vw);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-message.show {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* ── Flower corners container ── */
.success-message .Flower_crop {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Top-right flower */
.success-message .Top_Flower {
  position: absolute;
  top: -55px;
  right: -35px;
  width: 160px;
  transform: rotate(0deg);
}

/* Bottom-left flower */
.success-message .Bottom_Flower {
  position: absolute;
  bottom: -35px;
  left: -33px;
  width: 130px;
  transform: rotate(10deg);
}

/* Photo fills the card */
.success-message .thank_pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}

/* Dark gradient — stronger at bottom where text sits */
.success-message::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.08) 50%,
    rgba(0,0,0,0.65) 75%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 1;
}

/* All text/buttons sit above overlay */
.success-message .checkmark,
.success-message p,
.success-message .submit-btn {
  position: relative;
  z-index: 2;
}

/* Date stamp top-left */
.success-message .success-date {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: 'Alice', serif;
  font-size: 25px;
  color: rgba(255,255,255,0.9);
  text-align: center;
  line-height: 1.49;
  z-index: 4;
}
.success-date span {
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 4px 8px;
}
.spant {

  border-radius:0 0 12px 12px;
}
.spann{
  border-radius:12px 12px 0 0;
}

/* Spacer to push content to bottom */
.success-message .checkmark {
  font-size: 36px;
  color: #ffffff;
  margin-top: 280px;
  margin-bottom: 4px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.success-message p {
  font-family: 'Alice', serif;
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 0 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.success-message .submit-btn {
  background: var(--green);
  color: #efeade;
  border: none;
  padding: 10px 32px;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition: filter 0.2s ease;
}

.success-message .submit-btn:hover {
  filter: brightness(0.9);
}



/* ── Thanks Section — like video pic 2 ── */
.Thanks {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  background-color: #3a3a2a;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  text-align: center;
}

/* Background couple photo — covers full section */
.Thanks .Img_closing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.75;
  display: block;
  z-index: 0;
}

/* All text above the image */
.Thanks > *:not(.Img_closing) { position: relative; z-index: 1; }

.thanks_message {
  font-family: 'Great Vibes', cursive;
  font-size: 70px;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
  margin-top: 120px;
  margin-bottom: 20px;
  line-height: 1;
}

.thanks_submessage {
  font-family: 'Alice', serif;
  font-size: 17px;
  color: rgba(255,255,255,0.92);
  line-height: 1.8;
  max-width: 100%;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Music pill button (if visible over thanks) */
.Thanks .music-toggle { z-index: 10; }