/* =========================================================================
   Kashish & Trishla (v2) — ChungDoi "Spring Garden Green" Botanical Theme
   ========================================================================= */

:root {
  --primary: #5d6a57;
  --primary-dark: #465241;
  --secondary: #697a62;
  --leaf-mid: #8a9e82;
  --accent: #bdcdc1;
  --accent-soft: rgba(189, 205, 193, 0.22);
  --card-bg: #ffffff;
  --outer-gradient: linear-gradient(135deg, #f0f4ef 0%, #e8ede6 50%, #dfe5dd 100%);

  --font-script: "Pinyon Script", "Great Vibes", cursive;
  --font-serif: "Libre Baskerville", "Baskerville", "Times New Roman", serif;
  --font-lora: "Lora", "Times New Roman", serif;
  --font-hindi: "Tiro Devanagari Hindi", "Lora", serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  color: var(--primary);
  background: var(--outer-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.envelope-locked,
body.modal-open {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* =========================================================================
   1. ENVELOPE OPENING OVERLAY
   ========================================================================= */

.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--outer-gradient);
  overflow: hidden;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.75s;
}

.envelope-overlay.is-opening {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
  pointer-events: none;
}

.leaves-layer,
.page-leaves-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.leaves-layer {
  z-index: 1;
}

.page-leaves-burst {
  z-index: 950;
}

.leaf-particle {
  position: absolute;
  top: -36px;
  will-change: transform, opacity;
  animation: ambient-fall var(--dur, 19s) ease-in-out var(--delay, 0s) infinite;
}

.leaf-burst-particle {
  position: absolute;
  top: -30px;
  will-change: transform, opacity;
  animation: burst-fall var(--dur, 4.5s) ease-out var(--delay, 0s) forwards;
}

@keyframes ambient-fall {
  0% {
    transform: translate3d(0, -30px, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  50% {
    transform: translate3d(var(--sway, 22px), 52vh, 0) rotate(185deg);
    opacity: 0.75;
  }
  90% {
    opacity: 0.65;
  }
  100% {
    transform: translate3d(calc(var(--sway, 22px) * -0.6), 108vh, 0) rotate(360deg);
    opacity: 0;
  }
}

@keyframes burst-fall {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg) scale(0.9);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(var(--sway, 40px), 105vh, 0) rotate(420deg) scale(1.05);
    opacity: 0;
  }
}

.envelope-wrapper {
  position: relative;
  z-index: 10;
  width: min(100%, 340px);
}

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

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

.wax-seal {
  position: absolute;
  top: 46px;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, #5d6a57, rgb(63, 76, 57));
  box-shadow: 0 4px 20px rgba(93, 106, 87, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  animation: seal-pulse 2.2s ease-in-out infinite;
}

.wax-seal-icon {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

@keyframes seal-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 20px rgba(93, 106, 87, 0.48), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 6px 26px rgba(93, 106, 87, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.38);
  }
}

.envelope-card {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35),
              0 8px 24px rgba(0, 0, 0, 0.14),
              0 0 40px rgba(105, 122, 98, 0.15);
}

.envelope-card-bg {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(105, 122, 98, 0.18);
  overflow: hidden;
}

.envelope-flower-tr {
  position: absolute;
  width: 620px;
  top: -85px;
  right: -120px;
  opacity: 0.68;
  pointer-events: none;
}

.envelope-flower-bl {
  position: absolute;
  width: 620px;
  bottom: -95px;
  left: -125px;
  opacity: 0.65;
  transform: rotate(180deg);
  pointer-events: none;
}

@media (min-width: 768px) {
  .envelope-flower-tr {
    width: 860px;
    top: -120px;
    right: -150px;
  }
  .envelope-flower-bl {
    width: 860px;
    bottom: -130px;
    left: -155px;
  }
}

.envelope-card-body {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 96px 24px 44px;
}

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

.envelope-couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 10px;
}

.envelope-couple .script-name {
  font-family: var(--font-script);
  font-size: clamp(42px, 10vw, 56px);
  display: block;
}

.envelope-amp {
  font-family: var(--font-serif);
  font-size: 19px;
  margin: 2px 0;
  opacity: 0.85;
}

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

.divider-line {
  width: 44px;
  height: 1px;
}

.divider-line-r {
  background: linear-gradient(to right, transparent, var(--secondary));
}

.divider-line-l {
  background: linear-gradient(to left, transparent, var(--secondary));
}

.divider-star {
  color: var(--secondary);
  font-size: 13px;
  opacity: 0.75;
}

.envelope-date {
  font-family: var(--font-lora);
  font-size: 18px;
  color: rgba(93, 106, 87, 0.82);
  margin-bottom: 14px;
}

.envelope-invite {
  font-family: var(--font-lora);
  font-size: 17px;
  font-weight: 400;
  color: rgba(93, 106, 87, 0.76);
  margin-bottom: 6px;
}

.envelope-hashtag {
  font-family: var(--font-lora);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 24px;
}

.envelope-open-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 38px;
  border: none;
  border-radius: 9999px;
  background-color: var(--primary);
  color: #ffffff;
  font-family: var(--font-lora);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(93, 106, 87, 0.38);
  transition: transform 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.envelope-open-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px) scale(1.02);
}

.envelope-open-btn:active {
  transform: scale(0.98);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -60px;
  width: 36px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -60px;
  }
  45%, 100% {
    left: 130%;
  }
}

/* =========================================================================
   2. FLOATING MUSIC TOGGLE BUTTON
   ========================================================================= */

.music-fab {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(93, 106, 87, 0.38);
  transition: transform 0.2s ease, opacity 0.3s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

body.envelope-locked .music-fab {
  opacity: 0;
  pointer-events: none;
}

.music-fab:hover {
  transform: scale(1.06);
  background: var(--primary-dark);
}

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

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

.music-bars span:nth-child(1) { height: 7px; animation-delay: 0s; }
.music-bars span:nth-child(2) { height: 15px; animation-delay: 0.2s; }
.music-bars span:nth-child(3) { height: 10px; animation-delay: 0.4s; }
.music-bars span:nth-child(4) { height: 13px; animation-delay: 0.1s; }

@keyframes sound-bar {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.music-muted-icon {
  width: 20px;
  height: 20px;
}

/* =========================================================================
   3. MAIN INVITATION CARD SHELL & WATERCOLOR FLORALS
   ========================================================================= */

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0;
}

@media (min-width: 768px) {
  .page-shell {
    padding: 32px 20px 48px;
  }
}

.nature-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  background-color: var(--card-bg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .nature-card {
    border-radius: 18px;
    border: 1px solid rgba(93, 106, 87, 0.16);
    box-shadow: 0 24px 64px rgba(58, 70, 53, 0.12);
  }
}

.decor-flower-top {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(1150px, 235vw, 2200px);
  height: clamp(1050px, 420vw, 2000px);
  background: url("assets/decor/flower_top.webp") center top / contain no-repeat;
  opacity: 0.72;
  pointer-events: none;
  z-index: 1;
}

.decor-flower-parallax {
  position: absolute;
  top: 24%;
  left: 50%;
  width: clamp(1100px, 200vw, 2100px);
  height: clamp(700px, 240vw, 1300px);
  background: url("assets/decor/flower_parallax.webp") center / contain no-repeat;
  opacity: 0.18;
  mix-blend-mode: darken;
  transform: translate(-30%, 0px) rotate(221deg);
  will-change: transform;
  pointer-events: none;
  z-index: 2;
}

.decor-flower-bottom {
  position: absolute;
  bottom: -44px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: clamp(1150px, 235vw, 2200px);
  height: clamp(1050px, 420vw, 2000px);
  background: url("assets/decor/flower_top.webp") center top / contain no-repeat;
  opacity: 0.66;
  pointer-events: none;
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 10;
  padding: 96px 18px 56px;
}

@media (min-width: 640px) {
  .card-content {
    padding: 124px 36px 72px;
  }
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* =========================================================================
   4. HERO HEADER
   ========================================================================= */

.hero-header {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px 36px;
}

@media (min-width: 768px) {
  .hero-header {
    min-height: 560px;
    padding: 24px 24px 48px;
  }
}

.blessing-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.ganesha-emblem {
  width: 44px;
  height: 44px;
  opacity: 0.88;
}

.sanskrit-invocation {
  font-family: var(--font-hindi);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--secondary);
}

.sanskrit-shloka {
  font-family: var(--font-hindi);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--secondary);
  max-width: 460px;
  margin: 8px auto 0;
  text-align: center;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  color: var(--primary);
}

.hero-script-name {
  font-family: var(--font-script);
  font-size: clamp(54px, 14vw, 76px);
  line-height: 1.18;
  white-space: nowrap;
}

.hero-ampersand {
  font-family: var(--font-serif);
  font-size: clamp(32px, 7vw, 46px);
  line-height: 1.25;
  margin: 2px 0;
  color: var(--primary);
}

.hero-meta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 9999px;
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-lora);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--secondary);
}

.meta-dot {
  font-size: 11px;
  opacity: 0.7;
}

/* =========================================================================
   5. SHARED SECTION TYPOGRAPHY & WEDDING ALBUM
   ========================================================================= */

.section-block {
  margin-top: 44px;
}

@media (min-width: 768px) {
  .section-block {
    margin-top: 60px;
  }
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--primary);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 25px;
  }
}

.album-section {
  padding: 0 6px 12px;
}

.album-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.album-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: block;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(93, 106, 87, 0.16);
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.5s ease;
}

.album-card:hover img {
  transform: scale(1.05);
}

/* =========================================================================
   6. CEREMONY INFORMATION, 2-COLUMN FAMILY GRID & ANNOUNCEMENT
   ========================================================================= */

.ceremony-info-section {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding: 0 6px;
}

@media (min-width: 768px) {
  .ceremony-info-section {
    gap: 56px;
    padding: 0 16px;
  }
}

.section-heading-group {
  text-align: center;
}

.family-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
  padding: 8px 0;
}

.family-grid::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 1px;
  background: rgba(189, 205, 193, 0.8);
}

.family-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
}

.family-label {
  font-family: var(--font-lora);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--secondary);
  opacity: 0.85;
  margin-bottom: 4px;
}

.family-parent {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--secondary);
  overflow-wrap: anywhere;
}

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

.family-subnote {
  font-family: var(--font-lora);
  font-size: 12px;
  line-height: 1.45;
  font-style: italic;
  color: var(--secondary);
  opacity: 0.85;
  max-width: 240px;
  margin-top: 2px;
}

.announcement-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.announcement-lines {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--primary);
}

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

.announcement-quote {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--secondary);
  max-width: 500px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(189, 205, 193, 0.16);
  border: 1px solid rgba(189, 205, 193, 0.65);
}

.couple-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.feature-script-name {
  font-family: var(--font-script);
  font-size: clamp(48px, 12vw, 66px);
  line-height: 1.15;
  color: var(--primary);
}

.feature-ampersand {
  font-family: var(--font-serif);
  font-size: clamp(30px, 6vw, 42px);
  color: var(--primary);
}

/* =========================================================================
   7. CEREMONIES CARDS & MAIN WEDDING SHOWCASE
   ========================================================================= */

.ceremonies-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ceremony-card {
  text-align: center;
  padding: 24px 18px;
  border-radius: 16px;
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ceremony-card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

@media (min-width: 768px) {
  .ceremony-card-title {
    font-size: 19px;
  }
}

.ceremony-card-subtitle {
  font-family: var(--font-lora);
  font-size: 14px;
  line-height: 1.55;
  color: var(--secondary);
  max-width: 460px;
}

.ceremony-card-time {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--primary);
  margin-top: 2px;
}

.signature-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .signature-date-row {
    gap: 26px;
  }
}

.date-part {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  min-width: 84px;
}

@media (min-width: 768px) {
  .date-part {
    font-size: 15px;
    min-width: 105px;
  }
}

.date-day-num {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
  color: var(--primary);
}

@media (min-width: 768px) {
  .date-day-num {
    font-size: 40px;
  }
}

.date-vbar {
  width: 2px;
  height: 26px;
  background-color: var(--primary);
  display: inline-block;
}

.date-year {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.ceremony-dir-link {
  font-family: var(--font-lora);
  font-size: 13px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 2px;
}

.ceremony-dir-link:hover {
  opacity: 0.72;
}

/* Main Wedding Ceremony Showcase */
.main-wedding-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-top: 8px;
}

.venue-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  max-width: 520px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .venue-headline {
    font-size: 20px;
  }
}

.venue-main-time {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--primary);
}

@media (min-width: 768px) {
  .venue-main-time {
    font-size: 26px;
  }
}

.subtimings-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 6px;
}

.subtiming-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subtiming-label {
  font-family: var(--font-lora);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
}

.subtiming-value {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--primary);
  margin-top: 3px;
}

/* Countdown */
.countdown-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 16px;
  border: 1px solid var(--accent);
  background: rgba(189, 205, 193, 0.18);
}

@media (min-width: 640px) {
  .countdown-row {
    gap: 16px;
    padding: 14px 28px;
  }
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.cd-unit span {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary);
  line-height: 1.15;
}

@media (min-width: 640px) {
  .cd-unit span {
    font-size: 26px;
  }
}

.cd-unit small {
  font-family: var(--font-lora);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-top: 2px;
}

.cd-sep {
  font-size: 18px;
  color: var(--secondary);
  opacity: 0.6;
  margin-top: -12px;
}

.calendar-link {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.calendar-link:hover {
  opacity: 0.7;
}

.rsvp-cta-wrap {
  margin-top: 6px;
}

.confirm-attendance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  padding: 12px 30px;
  background-color: var(--primary);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(93, 106, 87, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.confirm-attendance-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.03);
}

/* =========================================================================
   8. INTERACTIVE VENUE MAP SECTION
   ========================================================================= */

.map-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 6px 0;
}

.map-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.map-tab-btn {
  padding: 7px 16px;
  border-radius: 9999px;
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.8);
  color: var(--secondary);
  font-family: var(--font-lora);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.venue-address-block {
  max-width: 500px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(93, 106, 87, 0.16);
}

.active-map-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 4px;
}

.active-map-address {
  font-family: var(--font-lora);
  font-size: 14px;
  line-height: 1.55;
  color: var(--secondary);
}

.map-frame-wrap {
  width: 100%;
  max-width: 560px;
  height: 290px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 8px 24px rgba(93, 106, 87, 0.1);
}

@media (min-width: 768px) {
  .map-frame-wrap {
    height: 360px;
  }
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.directions-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  font-family: var(--font-lora);
  font-size: 13.5px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.directions-link:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* =========================================================================
   9. WEDDING CELEBRATIONS TIMELINE
   ========================================================================= */

.timeline-section {
  padding: 8px 10px;
}

.timeline-list {
  position: relative;
  max-width: 520px;
  margin: 28px auto 0;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1.5px;
  background: var(--accent);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(189, 205, 193, 0.45);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--primary);
}

.timeline-date-pill {
  padding: 2px 9px;
  border-radius: 9999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  font-family: var(--font-lora);
  font-size: 11.5px;
  color: var(--secondary);
}

.timeline-label {
  font-family: var(--font-lora);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--secondary);
}

/* =========================================================================
   10. HASHTAG (#TriKash), INSTAGRAM & FOOTER
   ========================================================================= */

.card-footer {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 0 8px 16px;
}

.hashtag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hashtag-eyebrow {
  font-family: var(--font-lora);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
}

.hashtag-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  border-radius: 9999px;
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hashtag-pill:hover {
  transform: scale(1.02);
  background: var(--accent-soft);
}

.copy-badge {
  font-family: var(--font-lora);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: var(--primary);
  color: #ffffff;
}

.insta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.insta-chip {
  font-family: var(--font-lora);
  font-size: 13.5px;
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.insta-chip:hover {
  color: var(--primary);
}

.insta-sep {
  color: var(--accent);
}

.rsvp-families-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rsvp-eyebrow {
  font-family: var(--font-lora);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}

.rsvp-families-names {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--primary);
}

.rsvp-compliments {
  font-family: var(--font-lora);
  font-size: 13px;
  font-style: italic;
  color: var(--secondary);
}

.thank-you-card {
  width: 100%;
  max-width: 580px;
  padding: 18px 24px;
  border-radius: 16px;
  background: rgba(189, 205, 193, 0.2);
  border: 1px solid var(--accent);
  box-shadow: 0 2px 10px rgba(93, 106, 87, 0.06);
}

.thank-you-text {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--primary);
}

@media (min-width: 768px) {
  .thank-you-text {
    font-size: 16.5px;
  }
}

/* =========================================================================
   11. LIGHTBOX PHOTO VIEWER
   ========================================================================= */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(24, 30, 22, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-stage {
  max-width: min(92vw, 820px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
  font-family: var(--font-lora);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

/* =========================================================================
   12. CONFIRM ATTENDANCE (RSVP) MODAL
   ========================================================================= */

.rsvp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgba(42, 51, 39, 0.58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.rsvp-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 28px 24px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  max-height: 92vh;
  overflow-y: auto;
}

.rsvp-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid var(--accent);
  background: rgba(189, 205, 193, 0.2);
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.rsvp-modal-tag {
  font-family: var(--font-lora);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  text-align: center;
}

.rsvp-modal-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--primary);
  text-align: center;
  margin-top: 4px;
}

.rsvp-modal-subtitle {
  font-family: var(--font-lora);
  font-size: 14px;
  color: var(--secondary);
  text-align: center;
  margin-top: 4px;
  margin-bottom: 18px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-family: var(--font-lora);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: rgba(248, 250, 247, 0.9);
  color: var(--primary);
  font-family: var(--font-lora);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93, 106, 87, 0.14);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.attendance-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.att-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: rgba(248, 250, 247, 0.9);
  font-family: var(--font-lora);
  font-size: 13px;
  color: var(--secondary);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.att-option input {
  display: none;
}

.att-option.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.rsvp-submit-btn {
  margin-top: 6px;
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 9999px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.rsvp-submit-btn:hover:not(:disabled) {
  background: var(--primary-dark);
}

.rsvp-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.rsvp-success-view {
  text-align: center;
  padding: 16px 8px 8px;
}

.success-check {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 9999px;
  background: rgba(189, 205, 193, 0.35);
  border: 1px solid var(--accent);
  color: var(--primary);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
