@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Ms+Madi&family=Viaoda+Libre&display=swap');

:root {
  --primary: #47613e;
  --primary-dark: #294320;
  --text-dark: #35452f;
  --bg-tint: #eef3e8;
  --gold-accent: #c4a962;
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.5),
                  inset -1.5px -1.5px 3px rgba(120, 140, 110, 0.12),
                  0 18px 50px -6px rgba(53, 69, 47, 0.25),
                  0 6px 20px 2px rgba(53, 69, 47, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Libre Baskerville', 'Baskerville', serif;
  background-color: var(--bg-tint);
  background-image: url('assets/images/floral-background.webp');
  background-repeat: repeat;
  background-size: 180% auto;
  background-position: top left;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Floating Ambient Flower Petals */
.petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  pointer-events: none;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(71, 97, 62, 0.15));
  animation-name: ambientFall;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes ambientFall {
  0% {
    top: -40px;
    transform: translateX(0) rotate(0deg) scale(0.9);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  50% {
    transform: translateX(var(--sway)) rotate(180deg) scale(1.05);
  }
  85% {
    opacity: 0.85;
  }
  100% {
    top: 105vh;
    transform: translateX(calc(var(--sway) * -0.5)) rotate(360deg) scale(0.95);
    opacity: 0;
  }
}

/* Floating Audio Toggle */
.audio-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #47613e, #294320);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 15px rgba(41, 67, 32, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.audio-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(41, 67, 32, 0.5);
}

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

.music-bar {
  width: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  animation: equalize 1s infinite alternate ease-in-out;
}

.music-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.music-bar:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.music-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.music-bar:nth-child(4) { height: 14px; animation-delay: 0.4s; }

.audio-toggle-btn.paused .music-bar {
  animation-play-state: paused;
  height: 3px !important;
}

@keyframes equalize {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* =========================================
   ENVELOPE SCREEN (State 1)
   ========================================= */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef3e8 url('assets/images/floral-background.webp') center / 180% auto repeat;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.8s;
  overflow: hidden;
}

.envelope-screen.opened {
  opacity: 0;
  transform: scale(1.12);
  visibility: hidden;
  pointer-events: none;
}

.envelope-blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  pointer-events: none;
}

.envelope-card-wrapper {
  position: relative;
  width: 320px;
  max-width: 90vw;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .envelope-card-wrapper {
    width: 380px;
  }
}

@media (min-width: 768px) {
  .envelope-card-wrapper {
    width: 520px;
  }
}

@media (min-width: 1024px) {
  .envelope-card-wrapper {
    width: 580px;
  }
}

/* Wax Seal */
.wax-seal {
  position: absolute;
  top: 50px;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #47613e, #294320);
  box-shadow: 0 6px 20px rgba(71, 97, 62, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
  cursor: pointer;
  animation: sealPulse 2.2s ease-in-out infinite;
  transition: transform 0.2s;
}

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

.wax-seal svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

@keyframes sealPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 18px rgba(71, 97, 62, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 8px 26px rgba(71, 97, 62, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  }
}

/* Glass Envelope Container */
.envelope-card {
  position: relative;
  border-radius: 18px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35),
              0 8px 24px rgba(0, 0, 0, 0.15),
              0 0 40px rgba(71, 97, 62, 0.15);
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.45);
  overflow: hidden;
  padding: 110px 24px 48px;
  text-align: center;
}

@media (min-width: 768px) {
  .envelope-card {
    padding: 105px 40px 42px;
  }
}

/* Corner Flowers on Envelope */
.envelope-decor-top {
  position: absolute;
  top: -15px;
  left: -25px;
  height: 160px;
  width: auto;
  pointer-events: none;
  transform: scaleX(-1) rotate(8deg);
  opacity: 0.92;
  z-index: 10;
}

.envelope-decor-bottom {
  position: absolute;
  bottom: -20px;
  right: -20px;
  height: 160px;
  width: auto;
  pointer-events: none;
  transform: rotate(82deg);
  opacity: 0.92;
  z-index: 10;
}

@media (min-width: 768px) {
  .envelope-decor-top {
    height: 195px;
    top: -20px;
    left: -30px;
  }
  .envelope-decor-bottom {
    height: 195px;
    bottom: -25px;
    right: -25px;
  }
}

.envelope-title {
  color: var(--primary);
  font-family: 'Viaoda Libre', 'EB Garamond', cursive;
  margin-bottom: 8px;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.envelope-name {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: normal;
  letter-spacing: 0.02em;
}

.envelope-ampersand {
  font-family: 'Libre Baskerville', 'Times New Roman', serif;
  font-size: clamp(18px, 3.5vw, 24px);
  line-height: 1;
  margin: 2px 0;
  opacity: 0.85;
}

.envelope-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 14px;
}

.envelope-line {
  width: 48px;
  height: 1px;
}

.envelope-line.left {
  background: linear-gradient(to right, transparent, var(--primary));
}

.envelope-line.right {
  background: linear-gradient(to left, transparent, var(--primary));
}

.envelope-ornament {
  color: var(--primary);
  font-size: 14px;
  opacity: 0.75;
}

.envelope-date {
  color: rgba(53, 69, 47, 0.85);
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: 18px;
  margin-bottom: 12px;
}

.envelope-invite-text {
  color: rgba(53, 69, 47, 0.8);
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 24px;
}

/* Open Button */
.open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 36px;
  font-size: 18px;
  font-family: 'Lora', 'Times New Roman', serif;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(71, 97, 62, 0.38);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.open-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(71, 97, 62, 0.48);
}

.open-btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-22deg);
  animation: shineSweep 2.8s ease-in-out infinite;
}

@keyframes shineSweep {
  0% { left: -100%; }
  35%, 100% { left: 160%; }
}

/* =========================================
   OPENED INVITATION PAGE
   ========================================= */
.main-invitation-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 16px 12px 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-invitation-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .card-frame {
    max-width: 820px;
  }
}

/* Hero Pill Card */
.hero-pill-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 95px;
}

@media (min-width: 768px) {
  .hero-pill-section {
    padding-top: 72px;
    padding-bottom: 125px;
  }
}

.hero-pill-wrapper {
  position: relative;
  width: 65%;
  max-width: 250px;
}

.hero-pill {
  position: relative;
  z-index: 20;
  width: 100%;
  aspect-ratio: 239 / 368;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 500px;
  padding: 20px;
  text-align: center;
  background-color: var(--glass-bg);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--primary);
}

.hero-name {
  font-family: 'Viaoda Libre', 'EB Garamond', cursive;
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1;
  width: 100%;
}

.hero-ampersand {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1;
  opacity: 0.9;
}

.hero-flower-bottom {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 46%);
  width: 135%;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 30;
}

/* Main Content Card */
.main-card-wrapper {
  position: relative;
  margin: 0 10px;
}

@media (min-width: 768px) {
  .main-card-wrapper {
    margin: 0 20px;
  }
}

.card-flower-top-right {
  position: absolute;
  top: -55px;
  right: -30px;
  width: 44%;
  max-width: 220px;
  height: auto;
  pointer-events: none;
  z-index: 20;
  transform: rotate(-15.8deg);
}

@media (min-width: 768px) {
  .card-flower-top-right {
    top: -75px;
    right: -45px;
    max-width: 250px;
  }
}

.glass-body-card {
  position: relative;
  z-index: 10;
  border-radius: 32px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 34px 16px 160px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .glass-body-card {
    padding: 44px 32px 180px;
    gap: 36px;
  }
}

/* Floral Sprays inside the card */
.card-flower-left {
  position: absolute;
  left: -12%;
  top: 180px;
  width: 46%;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 20;
}

.card-flower-right {
  position: absolute;
  right: -10%;
  top: 560px;
  width: 46%;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 20;
}

/* Sections */
.section-block {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  color: var(--primary);
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

/* Ceremony Parents Grid */
.ceremony-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  color: var(--primary);
  font-family: 'Libre Baskerville', 'Baskerville', serif;
  margin-bottom: 22px;
}

@media (min-width: 768px) {
  .ceremony-grid {
    gap: 28px;
    max-width: 600px;
  }
}

.parent-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.parent-title {
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.parent-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  word-break: break-word;
}

.parent-address {
  font-size: 11px;
  color: var(--text-dark);
  margin-top: 4px;
  line-height: 1.35;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .parent-title { font-size: 14px; }
  .parent-name { font-size: 13px; }
  .parent-address { font-size: 12px; }
}

.grid-divider {
  width: 1px;
  height: 75px;
  background-color: var(--text-dark);
  opacity: 0.45;
  align-self: center;
}

.announcement-banner {
  color: var(--primary);
  font-family: 'Libre Baskerville', 'Baskerville', serif;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.03em;
  margin: 10px 0 20px;
}

@media (min-width: 768px) {
  .announcement-banner {
    font-size: 17px;
  }
}

/* Full Names Showcase */
.couple-showcase {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.full-name {
  font-family: 'EB Garamond', serif;
  font-size: clamp(30px, 6.5vw, 44px);
  color: var(--primary);
  font-weight: normal;
  line-height: 1.25;
}

.role-badge {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.couple-ampersand {
  font-family: 'Ms Madi', 'Alex Brush', cursive;
  font-size: clamp(32px, 7vw, 42px);
  color: var(--primary);
  line-height: 1;
  margin: 2px 0;
}

/* =========================================
   RECEPTION SECTION
   ========================================= */
.reception-subtitle {
  font-family: 'Libre Baskerville', 'Times New Roman', serif;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .reception-subtitle {
    font-size: 18px;
  }
}

.date-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: 'Libre Baskerville', 'Times New Roman', serif;
  margin-bottom: 6px;
}

.date-day-name, .date-month-name {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .date-day-name, .date-month-name {
    font-size: 16px;
  }
}

.date-divider {
  width: 1px;
  height: 28px;
  background-color: var(--text-dark);
  opacity: 0.55;
}

.date-big-number {
  font-size: 34px;
  color: var(--primary);
  line-height: 1;
}

@media (min-width: 768px) {
  .date-big-number {
    font-size: 42px;
  }
}

.date-year {
  font-size: 19px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

/* Auspicious Ceremony Time Badge */
.ceremony-time-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0 10px;
}

.ceremony-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(196, 169, 98, 0.6);
  box-shadow: 0 3px 12px rgba(71, 97, 62, 0.08);
  color: var(--text-dark);
  font-family: 'Libre Baskerville', serif;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-align: center;
}

.ceremony-time-pill strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 14.5px;
}

.ceremony-time-clock {
  color: var(--gold-accent);
  flex-shrink: 0;
}

/* Live Countdown Timer */
.countdown-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 380px;
}

.countdown-unit {
  flex: 1;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(71, 97, 62, 0.25);
  border-radius: 12px;
  padding: 8px 4px;
  box-shadow: 0 4px 10px rgba(71, 97, 62, 0.08);
}

.countdown-num {
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.countdown-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  opacity: 0.8;
  margin-top: 2px;
}

/* November 2026 Calendar */
.calendar-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 26px;
  border: 1px solid rgba(53, 69, 47, 0.85);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.4);
  color: var(--primary);
}

@media (min-width: 768px) {
  .calendar-frame {
    max-width: 370px;
    padding: 20px 24px;
  }
}

.calendar-header {
  text-align: center;
  padding-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(71, 97, 62, 0.28);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1.5px solid var(--primary);
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px 0;
  padding-top: 8px;
}

.cal-cell {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

@media (min-width: 768px) {
  .cal-cell {
    height: 34px;
    font-size: 13px;
  }
}

.cal-wedding-day {
  position: relative;
  width: 28px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-wedding-day img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-contain: contain;
}

.cal-wedding-day span {
  position: relative;
  z-index: 5;
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
}

/* Calendar Links */
.calendar-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Times New Roman', serif;
  transition: opacity 0.2s;
}

.calendar-action-link:hover {
  opacity: 0.75;
}

/* Attendance RSVP Button */
.rsvp-btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: 'Libre Baskerville', serif;
  border: none;
  cursor: pointer;
  margin-top: 22px;
  box-shadow: 0 4px 14px rgba(71, 97, 62, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.rsvp-btn-main:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(71, 97, 62, 0.45);
}

/* Venue Section */
.venue-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-family: 'Times New Roman', serif;
  letter-spacing: 0.03em;
}

.venue-hall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: rgba(71, 97, 62, 0.08);
  border: 1px solid rgba(71, 97, 62, 0.25);
  padding: 5px 16px;
  border-radius: 9999px;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.map-wrapper {
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(71, 97, 62, 0.15);
  border: 1px solid rgba(71, 97, 62, 0.3);
}

@media (min-width: 768px) {
  .map-wrapper {
    max-width: 480px;
  }
}

.map-wrapper iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

@media (min-width: 768px) {
  .map-wrapper iframe {
    height: 280px;
  }
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 14px;
  padding: 6px 18px;
  border-radius: 20px;
  transition: transform 0.2s, background-color 0.2s;
}

.directions-btn:hover {
  transform: scale(1.04);
  background-color: rgba(71, 97, 62, 0.1);
}

/* =========================================
   GUESTBOOK SECTION
   ========================================= */
.guestbook-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(71, 97, 62, 0.35);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(71, 97, 62, 0.08);
  text-align: left;
}

.guestbook-input, .guestbook-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(71, 97, 62, 0.35);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--primary);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guestbook-input:focus, .guestbook-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(71, 97, 62, 0.15);
}

.guestbook-input {
  margin-bottom: 12px;
}

.guestbook-textarea {
  resize: none;
  height: 95px;
}

.guestbook-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.ai-wish-btn {
  background: rgba(71, 97, 62, 0.12);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, background 0.2s;
}

.ai-wish-btn:hover {
  transform: scale(1.05);
  background: rgba(71, 97, 62, 0.2);
}

.send-wish-btn {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.send-wish-btn:hover {
  transform: scale(1.05);
  background-color: #3b5233;
}

/* Wishes Feed */
.wishes-feed {
  width: 100%;
  max-width: 520px;
  max-height: 380px;
  overflow-y: auto;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.wish-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(71, 97, 62, 0.18);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: left;
  animation: fadeIn 0.4s ease;
}

.wish-author {
  font-size: 13px;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wish-time {
  font-size: 10px;
  opacity: 0.6;
  font-weight: normal;
}

.wish-text {
  font-size: 13px;
  color: var(--text-dark);
  margin-top: 6px;
  line-height: 1.4;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer note & Bottom garland */
.footer-note {
  color: var(--primary);
  font-size: 15px;
  line-height: 1.45;
  max-width: 480px;
  margin-top: 10px;
  padding: 0 16px;
}

.card-flower-bottom {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 48%);
  width: 150%;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 5;
}

/* =========================================
   RSVP MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 32px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(71, 97, 62, 0.2);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1;
}

.modal-title {
  color: var(--primary);
  font-family: 'Times New Roman', serif;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
  opacity: 0.85;
}

.rsvp-option-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.rsvp-radio-card {
  flex: 1;
  border: 1.5px solid rgba(71, 97, 62, 0.3);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.rsvp-radio-card.selected {
  border-color: var(--primary);
  background-color: rgba(71, 97, 62, 0.1);
  font-weight: bold;
  color: var(--primary);
}

.rsvp-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(71, 97, 62, 0.3);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  outline: none;
}

.rsvp-submit-btn {
  width: 100%;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.2s, background 0.2s;
}

.rsvp-submit-btn:hover {
  transform: scale(1.02);
  background-color: #3b5233;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #294320;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2000;
}

.toast-msg.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =========================================
   AUTO-SCROLL FLOATING INDICATOR
   ========================================= */
.autoscroll-badge {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(41, 67, 32, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-family: 'Lora', serif;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 990;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.autoscroll-badge.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.autoscroll-badge:hover {
  background: rgba(41, 67, 32, 0.98);
  transform: translateX(-50%) translateY(-2px);
}

.autoscroll-dot {
  width: 7px;
  height: 7px;
  background-color: #a8d59d;
  border-radius: 50%;
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

