/**
 * ============================================================
 * MASTERPIECE SYNTHESIS: IDEAS 1 + 3 + 4 COMBINED
 * Blue Botanical Ultimate Luxury Wedding Invitation
 * 
 * 1. Idea 1: Handmade Deckled-Edge Italian Cotton Paper & Foil Letterpress
 *    (Fixed: Replaced clashing yellow text with Sapphire Navy Metallic Foil & Soft Champagne Accents)
 * 2. Idea 3: Living Botanical Garden Engine (Falling Hydrangea Petals, Stardust & Interactive Butterfly)
 * 3. Idea 4: Vintage Porcelain & Champagne Turntable (Independent Audio + Ducking) & Infinite Polaroid Carousel
 * ============================================================
 */

:root {
  /* 1. Sapphire Royal Navy Metallic Foil (Deep, high-contrast, breathtaking shimmer) */
  --botanical-foil-gradient: linear-gradient(
    135deg,
    #162834 0%,
    #224054 22%,
    #3D657E 45%,
    #7EA9C3 60%,
    #3D657E 75%,
    #1A3140 100%
  );
  --botanical-foil-glow: 0 2px 10px rgba(61, 101, 126, 0.2);
  
  /* 2. Soft Antique Champagne Gold for delicate borders, stars and filigree */
  --champagne-filigree: #C2B49A;
  --champagne-border-foil: linear-gradient(
    90deg,
    rgba(194, 180, 154, 0.2) 0%,
    rgba(216, 206, 186, 0.75) 50%,
    rgba(170, 154, 126, 0.25) 100%
  );

  /* 3. Italian Cotton Paper Deckled Edge Shadow */
  --paper-deckled-shadow: 
    0 25px 55px -12px rgba(62, 90, 108, 0.22),
    0 4px 15px rgba(44, 62, 71, 0.08),
    0 0 0 1px rgba(194, 180, 154, 0.3);
}

/* ============================================================
   A. IDEA 1 CRAFTSMANSHIP: DECKLED EDGES & SAPPHIRE FOIL
   ============================================================ */

/* 1. Handmade Italian Cotton Paper Deckled Edge */
.wedding-stationery-card {
  position: relative;
  background-color: #FFFDF9 !important;
  background-image: 
    radial-gradient(circle at 100% 100%, rgba(235, 242, 246, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 0% 0%, rgba(250, 247, 240, 0.6) 0%, transparent 60%);
  box-shadow: var(--paper-deckled-shadow) !important;
  border-radius: 4px;
}

/* Organic deckled edge feathery outline */
.wedding-stationery-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 6px;
  border: 1.5px dashed rgba(194, 180, 154, 0.42);
  pointer-events: none;
  opacity: 0.85;
}

/* 2. Sapphire Royal Navy Metallic Foil Typography (Harmonious & Classy) */
.hero-name,
.inner-card-names-stacked .card-name,
.inner-card-monogram,
.stage-guest-invitation .guest-invitation-highlight,
.save-the-date-card .std-groom,
.save-the-date-card .std-bride,
.ceremony-couple-name,
.footer-monogram {
  background: var(--botanical-foil-gradient) !important;
  background-size: 260% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: sapphireFoilShimmer 7s ease-in-out infinite alternate !important;
  filter: drop-shadow(0 1px 1.5px rgba(22, 40, 52, 0.22)) !important;
  letter-spacing: 0.03em;
}

@keyframes sapphireFoilShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* 3. Blind Deboss / Letterpress Effect for Badges & Subtitles */
.hero-badge,
.inner-card-tag,
.stage-wedding-tag,
.std-header-tag,
.ceremony-badge,
.recipient-prefix {
  color: #4A6C7E !important;
  letter-spacing: 0.26em !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.95), 0 -1px 1px rgba(44, 62, 71, 0.1) !important;
  font-weight: 600 !important;
}

/* 4. Delicate Champagne Double Frame Lines */
.stationery-double-frame {
  border: 1px solid rgba(194, 180, 154, 0.45) !important;
}

.stationery-double-frame::after {
  border: 0.75px solid rgba(194, 180, 154, 0.28) !important;
}

.inner-card-double-line {
  border: 0.75px solid rgba(194, 180, 154, 0.45) !important;
}

.inner-card-ornament .orn-line {
  background: linear-gradient(90deg, transparent, rgba(194, 180, 154, 0.7), transparent) !important;
}

.inner-card-ornament .orn-star {
  color: #BDB095 !important;
  text-shadow: 0 0 6px rgba(194, 180, 154, 0.4);
}

/* ============================================================
   B. IDEA 3 LIVING BOTANICAL GARDEN ENHANCEMENTS
   ============================================================ */
/* Living Flora Subtle Breathing & Swaying */
.stage-garden-corner,
.welcome-side-accent,
.std-outer-hydrangea-top,
.std-outer-branch,
.deck-decor-hydrangea {
  animation: floraGentleBreathe 4.5s ease-in-out infinite alternate;
}

@keyframes floraGentleBreathe {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.03) rotate(0.8deg); }
}

/* ============================================================
   C. MASTERPIECE BANNER BADGE
   ============================================================ */
.masterpiece-edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(194, 180, 154, 0.5);
  border-radius: 999px;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: #4A6C7E;
  margin-bottom: 12px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(82, 111, 125, 0.08);
}

.masterpiece-edition-badge .sparkle {
  color: #C2B49A;
}

/* ============================================================
   D. VIBRANT BLOOMING BOTANICAL GARDEN LAYERS & STYLING
   Lush, multi-colored floral atmosphere throughout the invitation
   ============================================================ */

/* 1. Hero Garden Botanicals */
.hero-garden-rose-corner {
  position: absolute;
  top: 14px;
  right: -10px;
  width: 96px;
  height: auto;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 4px 10px rgba(82, 111, 125, 0.16));
  opacity: 0.95;
}

.hero-garden-bouquet-wrap {
  width: 100%;
  max-width: 380px;
  margin: -24px auto 8px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 6;
  pointer-events: none;
}

.hero-garden-wildflower-base {
  width: 250px;
  max-width: 82%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(82, 111, 125, 0.18));
  opacity: 0.98;
}

/* 2. Welcome & Vintage Gramophone Garden Accents */
.welcome-garden-orchid {
  position: absolute;
  top: 20px;
  right: -8px;
  width: 72px;
  height: auto;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(82, 111, 125, 0.15));
  opacity: 0.95;
}

.deck-decor-ranunculus {
  position: absolute;
  bottom: -16px;
  left: 18px;
  width: 72px;
  height: auto;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 3px 8px rgba(82, 111, 125, 0.16));
  opacity: 0.95;
}

/* 3. Save The Date Authentic Envelope Cluster Accents */
.std-outer-english-rose {
  position: absolute;
  top: 2px;
  left: 24px;
  width: 82px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 3px 7px rgba(82, 111, 125, 0.12));
}

.std-outer-anemone {
  position: absolute;
  top: -14px;
  right: 46px;
  width: 60px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 3px 7px rgba(82, 111, 125, 0.12));
}

/* 4. Couple Section Floating Blooms: Ranunculus for Groom & Blush Peony for Bride */
.section-couple {
  position: relative;
  overflow: hidden;
}

.couple-garden-ranunculus {
  position: absolute;
  top: 18px;
  left: -12px;
  width: 88px;
  height: auto;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 4px 10px rgba(82, 111, 125, 0.15));
  opacity: 0.94;
}

.couple-garden-peony {
  position: absolute;
  bottom: 20px;
  right: -10px;
  width: 94px;
  height: auto;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 4px 10px rgba(82, 111, 125, 0.15));
  opacity: 0.94;
}

/* 5. Family Section Garden Flanks: Vertical cascade & Crescent arch */
.section-family {
  position: relative;
  overflow: hidden;
}

.family-garden-cascade-left {
  position: absolute;
  top: 24px;
  left: -10px;
  width: 78px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  opacity: 0.94;
  filter: drop-shadow(0 4px 12px rgba(82, 111, 125, 0.15));
}

.family-garden-arch-right {
  position: absolute;
  top: 24px;
  right: -10px;
  width: 82px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  opacity: 0.94;
  filter: drop-shadow(0 4px 12px rgba(82, 111, 125, 0.15));
}

.family-garden-center-rose {
  display: block;
  width: 52px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 2px 6px rgba(82, 111, 125, 0.14));
}

/* 6. Invitation Day Card Garden Accents */
.section-invitation-day {
  position: relative;
  overflow: hidden;
}

.invitation-garden-orchid {
  position: absolute;
  top: -10px;
  right: 12px;
  width: 70px;
  height: auto;
  pointer-events: none;
  z-index: 6;
  opacity: 0.94;
  filter: drop-shadow(0 3px 8px rgba(82, 111, 125, 0.14));
}

.invitation-garden-corner {
  position: absolute;
  bottom: -14px;
  left: -10px;
  width: 78px;
  height: auto;
  pointer-events: none;
  z-index: 6;
  opacity: 0.94;
  filter: drop-shadow(0 3px 8px rgba(82, 111, 125, 0.14));
}

/* 7. Ceremony Section Garden Accents */
.ceremony-corner-tl {
  position: absolute;
  top: -16px;
  left: -12px;
  width: 84px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 3px 8px rgba(82, 111, 125, 0.15));
}

.ceremony-corner-bl {
  position: absolute;
  bottom: -16px;
  left: -10px;
  width: 82px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 3px 8px rgba(82, 111, 125, 0.15));
}

.ceremony-corner-br {
  position: absolute;
  bottom: -18px;
  right: -8px;
  width: 80px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 3px 8px rgba(82, 111, 125, 0.15));
}

/* 8. Timeline Section with Distinct Floret Icons */
.timeline-event {
  position: relative;
}

.timeline-event::before {
  display: none !important;
}

.timeline-floret-wrap {
  position: absolute;
  left: -36px;
  top: 0px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.timeline-floret-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(82, 111, 125, 0.25));
  animation: floretGentlePulse 4s ease-in-out infinite alternate;
}

@keyframes floretGentlePulse {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(4deg); }
}

/* 9. Story Section Garden Blooms */
.section-story {
  position: relative;
  overflow: hidden;
}

.story-garden-peony-accent {
  position: absolute;
  top: 14px;
  right: -10px;
  width: 86px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  opacity: 0.94;
  filter: drop-shadow(0 3px 8px rgba(82, 111, 125, 0.15));
}

.story-peach-corner {
  position: absolute;
  bottom: -12px;
  left: -8px;
  width: 74px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 3px 6px rgba(82, 111, 125, 0.15));
}

/* 10. Gallery Section Garden Accents */
.section-gallery {
  position: relative;
  overflow: hidden;
}

.gallery-garden-swag {
  display: block;
  width: 130px;
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 3px 8px rgba(82, 111, 125, 0.14));
}

/* 11. Connection Section Garden Sprays & Unified Form */
.section-connection {
  position: relative;
  overflow: hidden;
  padding-bottom: 64px !important;
}

.connection-garden-cascade {
  position: absolute;
  top: 80px;
  left: -12px;
  width: 84px;
  height: auto;
  pointer-events: none;
  z-index: 3;
  opacity: 0.94;
  filter: drop-shadow(0 4px 10px rgba(82, 111, 125, 0.14));
}

.connection-garden-orchid-garland {
  position: absolute;
  top: 36px;
  right: -6px;
  width: 52px;
  height: auto;
  pointer-events: none;
  z-index: 3;
  opacity: 0.92;
  filter: drop-shadow(0 4px 10px rgba(82, 111, 125, 0.14));
}

.blessing-garden-ranunculus-top {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 74px;
  height: auto;
  pointer-events: none;
  z-index: 4;
  opacity: 0.9;
  filter: drop-shadow(0 3px 7px rgba(82, 111, 125, 0.12));
}

/* Unified RSVP & Wishes Form Styling */
.unified-connection-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(194, 180, 154, 0.45);
  border-radius: 8px;
  padding: 18px 16px;
  box-shadow: 0 4px 18px rgba(82, 111, 125, 0.08);
  margin-bottom: var(--space-lg);
  box-sizing: border-box;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

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

.rsvp-choice-card {
  background: #FAF7F0;
  border: 1px solid rgba(194, 180, 154, 0.35);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.rsvp-choice-title {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3D657E;
  text-transform: uppercase;
}

.rsvp-choice-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.rsvp-choice-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: #2C3E47;
  cursor: pointer;
  font-weight: 500;
}

.rsvp-choice-label input[type="radio"] {
  accent-color: #3D657E;
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.rsvp-guest-count-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: all 0.3s ease;
}

.guest-count-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: #536F7C;
  letter-spacing: 0.05em;
}

.unified-select {
  background: #FFFDF9 !important;
  border: 1px solid rgba(194, 180, 154, 0.5) !important;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: #2C3E47;
}

.unified-submit-btn {
  width: 100%;
  padding: 13px 20px !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.22em !important;
  font-weight: 700 !important;
  background: var(--botanical-foil-gradient) !important;
  color: #FFFDF9 !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(34, 64, 84, 0.25) !important;
  transition: all 0.25s ease !important;
}

.unified-submit-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(34, 64, 84, 0.35) !important;
}

.blessing-badge-attending {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #2E6B56;
  background: rgba(46, 107, 86, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

@keyframes fadeInHighlight {
  0%   { background-color: rgba(181, 205, 219, 0.35); }
  100% { background-color: transparent; }
}

/* 12. Footer Garden Bed */
.section-footer {
  position: relative;
  overflow: hidden;
  padding-bottom: 0 !important;
}

.footer-hydrangea-bouquet,
.footer-cabbage-rose-bouquet {
  width: 180px !important;
  max-width: 60%;
  margin: 0 auto var(--space-sm) !important;
  filter: drop-shadow(0 6px 14px rgba(82, 111, 125, 0.2)) !important;
}

.footer-garden-bed-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: 24px;
  line-height: 0;
  pointer-events: none;
}

.footer-garden-bed {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 -4px 10px rgba(82, 111, 125, 0.12));
}

