/* 
   Ultra-Luxury Wedding Invitation Suite Stylesheet
   Designed for: Elite Wedding Planners & Royal Wedding Invitations
   Typography: Playfair Display, Cormorant Garamond, Great Vibes
*/

:root {
    --color-ivory: #535138; /* New luxury deep olive-gold color */
    --color-ivory-dark: #E8E5DB;
    --color-gold-light: #DDE2D3;
    --color-gold: #535138; /* New luxury deep olive-gold color */
    --color-gold-dark: #3B3A29; /* Harmonious rich shadow tone */
    --color-rose-gold: #DDE2D3;
    --color-charcoal: #2E2C20; /* Ultra-deep charcoal gold for extreme readability and elite contrast */
    --color-charcoal-light: #535138; /* Main deep gold-olive for primary subheadings */
    --color-white: #F7F8F3;
    --font-heading: 'Playfair Display', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Montserrat', sans-serif;
    --font-pinyon-script: 'Pinyon Script',serif;
    --gold-gradient: #535138; /* Consistent elegant solid new tone */
    --gold-foil-glow: 0 0 15px rgba(83, 81, 56, 0.3);
}

/* Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--color-ivory);
    /* Parallax scrolling effect utilizing fixed attachment with smooth linear gradient overlay blending */
    background-image: linear-gradient(rgba(247, 248, 243, 0.92), rgba(247, 248, 243, 0.88)), url('../assets/Screenshot 2026-06-12 at 11.26.44 PM.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-charcoal);
    font-family: var(--font-serif);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-ivory);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

/* Loader / Envelope Section */
#envelope-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #2D3028; /* Luxurious Deep, Rich Dark Olive Backdrop */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background Atmosphere */
.ambient-glow {
    position: absolute;
    width: 150vmax;
    height: 150vmax;
    background: radial-gradient(circle, rgba(86, 91, 72, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Envelope Container */
.envelope-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    z-index: 10;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.4));
    transition: filter 0.5s ease;
}

.envelope-container.active-hover:hover {
    filter: drop-shadow(0 30px 60px rgba(83, 81, 56, 0.15)) drop-shadow(0 25px 50px rgba(0,0,0,0.5));
}

/* Realistic Ivory Paper Texture */
.paper-texture {
    background-color: #535138; /* New Luxury Deep Gold-Olive Envelope Background */
    background-image: 
        radial-gradient(rgba(255,255,255,0.01) 1px, transparent 0),
        radial-gradient(rgba(255,255,255,0.01) 1px, transparent 0);
    background-size: 4px 4px;
    background-position: 0 0, 2px 2px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

/* Envelope Components */
.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(86, 91, 72, 0.2);
    z-index: 1;
    overflow: hidden;
}

/* Flaps - using 2D flat layer styling */
.flap {
    position: absolute;
    backface-visibility: visible;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.flap.top {
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    transform-origin: top center;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 6;
    border-bottom: none;
}

.flap.top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    padding: 2.5px;
}

.flap.top-inner {
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    width: calc(100% - 5px);
    height: calc(100% - 3.5px);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.flap.bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    transform-origin: bottom center;
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
    z-index: 4;
}

.flap.bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
    padding: 1.5px;
}

.flap.bottom-inner {
    position: absolute;
    bottom: 1.5px;
    left: 1.5px;
    width: calc(100% - 3px);
    height: calc(100% - 2.5px);
    clip-path: polygon(0 100%, 100% 100%, 50% 0);
}

.flap.left {
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    transform-origin: left center;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
    z-index: 3;
}

.flap.left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    clip-path: polygon(0 0, 0 100%, 100% 50%);
    padding: 1.5px;
}

.flap.left-inner {
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    width: calc(100% - 2.5px);
    height: calc(100% - 3px);
    clip-path: polygon(0 0, 0 100%, 100% 50%);
}

.flap.right {
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    transform-origin: right center;
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
    z-index: 3;
}

.flap.right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
    padding: 1.5px;
}

.flap.right-inner {
    position: absolute;
    top: 1.5px;
    right: 1.5px;
    width: calc(100% - 2.5px);
    height: calc(100% - 3px);
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

/* Beautiful Gold Lining & Details Inside Flaps */
.gold-embossed-line {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* Invitation Card - nested inside the envelope - Redesigned for true luxurious full-screen */
.invitation-letter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fffdfa;
    border-radius: 0; /* Full screen sharp modern edges */
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(86, 91, 72, 0.3);
    outline: 8px double rgba(86, 91, 72, 0.15);
    outline-offset: -12px;
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.letter-monogram {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--color-gold-dark); /* Solid elegant olive green */
    margin-bottom: 5px;
    line-height: 1;
    text-shadow: 0px 1px 1px rgba(255,255,255,0.8);
}

.letter-subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--color-charcoal);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.letter-names {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.letter-names span {
    font-family: var(--font-script);
    font-size: 2.6rem;
    display: block;
    margin: 2px 0;
    color: var(--color-gold-dark);
}

.letter-date {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-charcoal);
    letter-spacing: 0.03em;
    margin-top: 10px;
    line-height: 1.3;
}

/* Wax Seal Styling - Masterpiece element */
.wax-seal {
    position: absolute;
    width: 84px;
    height: 84px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 10;
    cursor: pointer;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
}

.wax-seal:hover {
    transform: translate(-50%, -50%) scale(1.08);
    filter: drop-shadow(0 10px 18px rgba(83, 81, 56, 0.25)) drop-shadow(0 8px 15px rgba(0,0,0,0.5));
}

/* Beautiful organic wax base split in two */
.seal-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, #6C6A4F 0%, #535138 70%, #2A2A1D 100%); /* Perfect Elegant Solid New Gold-Olive Wax Texture */
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.4), 
        inset 2px 2px 5px rgba(255,255,255,0.25),
        inset -2px -2px 5px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Customize with subtle gold foil flecks in wax */
.seal-half::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(223,186,115,0.2) 1px, transparent 0);
    background-size: 10px 10px;
    opacity: 0.35;
    pointer-events: none;
}

.seal-half.left {
    left: 0;
    border-radius: 46px 0 0 46px;
    transform-origin: left center;
    border-right: 1px solid rgba(0,0,0,0.3);
}

.seal-half.right {
    right: 0;
    border-radius: 0 46px 46px 0;
    transform-origin: right center;
    border-left: 1px solid rgba(0,0,0,0.3);
}

/* Embellished Inner Crest inside the Wax Seal */
.seal-crest {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 12px;
    border-radius: 50%;
    border: 2px double rgba(86, 91, 72, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
}

.seal-half.left .seal-crest {
    left: 12px;
    width: 60px;
}

.seal-half.right .seal-crest {
    right: 12px;
    width: 60px;
}

/* White Initials inside Crest */
.seal-initials {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFFF; /* Pure White Characters AR */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    pointer-events: none;
    letter-spacing: -1px;
}

.seal-half.left .seal-initials {
    transform: translateX(15px); /* Aligns monogram in half */
}

.seal-half.right .seal-initials {
    transform: translateX(-15px); /* Aligns monogram in half */
}

/* Crack Line Overlay */
.seal-crack {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 12;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    opacity: 0.3;
}

/* Click Indicator / Call to Action */
.seal-hint {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-white);
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.7;
    animation: pulseGlow 2.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 20;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        text-shadow: 0 0 2px rgba(83, 81, 56, 0);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(83, 81, 56, 0.6);
    }
}


/* MAIN WEBSITE STRUCTURE (Initially hidden/behind) */
#main-website {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
    z-index: 10;
    opacity: 0; /* Animated in by GSAP */
    visibility: hidden;
    overflow-x: hidden;
}

/* Ultra Luxury Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #0d0c0b;
}

/* Cinematic Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13,12,11,0.25) 0%, rgba(13,12,11,0.15) 50%, rgba(13,12,11,0.35) 100%); /* Lighter overlay for brighter video */
    z-index: 2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Full opacity for brighter, more visible video */
}

/* Luxury Overlay Frame */
.luxury-frame {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35); /* Elegant crisp white outer frame border */
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.luxury-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Elegant crisp white inner frame border */
}

/* Corner Ornaments for Gold Frame */
.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-gold);
    pointer-events: none;
}

.frame-corner.top-left {
    top: -1px;
    left: -1px;
    border-bottom: none;
    border-right: none;
}

.frame-corner.top-right {
    top: -1px;
    right: -1px;
    border-bottom: none;
    border-left: none;
}

.frame-corner.bottom-left {
    bottom: -1px;
    left: -1px;
    border-top: none;
    border-right: none;
}

.frame-corner.bottom-right {
    bottom: -1px;
    right: -1px;
    border-top: none;
    border-left: none;
}

/* Hero Typography Content & Cinematic Reveals */
.reveal-wrapper {
    overflow: hidden;
    margin-bottom: 15px;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    text-align: center;
    max-width: 950px;
    padding: 0 20px;
    opacity: 1; /* Animated at sub-element level */
}

.hero-welcome {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(100%);
}

.hero-names {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 15px;
    text-shadow: 0 4px 25px rgba(0,0,0,0.6);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(100%);
}

.hero-names .bride-name,
.hero-names .groom-name {
    font-size: 3.8rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #ffffff;
    display: inline-block;
}

.hero-names .ampersand {
    font-family: var(--font-script);
    font-size: 5.5rem;
    color: var(--color-gold-light);
    display: inline-block;
    margin: 0 15px;
    vertical-align: middle;
    text-shadow: 0 2px 15px rgba(83, 81, 56, 0.4);
}

@media (max-width: 992px) {
    .hero-names .bride-name,
    .hero-names .groom-name {
        font-size: 2.6rem;
    }
    .hero-names .ampersand {
        font-size: 4.2rem;
    }
}

@media (max-width: 768px) {
    .hero-names .bride-name,
    .hero-names .groom-name {
        font-size: 2.2rem;
        display: block;
    }
    .hero-names .ampersand {
        font-size: 3.5rem;
        display: block;
        margin: 5px 0;
    }
}

.hero-event-info {
    margin-top: 15px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(100%);
}

.wedding-date {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--color-gold-light);
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.wedding-venue {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .wedding-date {
        font-size: 1.15rem;
    }
    .wedding-venue {
        font-size: 0.7rem;
        letter-spacing: 0.18em;
    }
}

.hero-cta {
    opacity: 0;
    transform: translateY(100%);
}

/* Call to Action - Luxury Button */
.btn-gold-foil {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--gold-gradient);
    border: none;
    padding: 18px 45px;
    border-radius: 0;
    position: relative;
    z-index: 1;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(83, 81, 56, 0.25), 0 5px 10px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    text-decoration: none !important;
}

.btn-gold-foil::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 2;
    transition: all 0.4s ease;
}

.btn-gold-foil:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(83, 81, 56, 0.4), 0 8px 15px rgba(0,0,0,0.15);
    color: var(--color-charcoal);
}

.btn-gold-foil:hover::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Luxury Ribbon / Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-sans);
    font-size: clamp(0.75rem, 2.2vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-white);
    opacity: 0.85;
    width: 65%;
    max-width: 420px;
    text-align: center;
    line-height: 1.9;
    margin-top: 32px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-gold) 0%, rgba(223,186,115,0) 100%);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollDot 2s infinite ease-in-out;
}

@keyframes scrollDot {
    0% {
        transform: translateY(-100%);
    }
    80%, 100% {
        transform: translateY(100%);
    }
}

/* Sound Toggle / Ambient Player Controller */
.ambient-sound-toggle {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(83, 81, 56, 0.3);
    background: rgba(22, 20, 18, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.ambient-sound-toggle:hover {
    border-color: var(--color-gold);
    box-shadow: 0 4px 20px rgba(83, 81, 56, 0.25);
    transform: scale(1.05);
}

.sound-waves {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 16px;
    height: 14px;
}

.sound-wave {
    width: 2px;
    background-color: var(--color-gold);
    border-radius: 1px;
    transition: height 0.3s ease;
}

.sound-wave:nth-child(1) { height: 40%; }
.sound-wave:nth-child(2) { height: 80%; }
.sound-wave:nth-child(3) { height: 50%; }
.sound-wave:nth-child(4) { height: 90%; }

.ambient-sound-toggle.muted .sound-wave {
    height: 10% !important;
}


/* MAIN WEB STYLES & LUXURY CONTENT SECTIONS */
.section-padding {
    padding: 140px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* Section Title block with luxury golden details */
.luxury-title-block {
    text-align: center;
    margin-bottom: 70px;
}

.luxury-title-subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: 15px;
    display: block;
}

.luxury-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-gold-dark); /* Using Olive for titles */
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .luxury-title {
        font-size: 2.2rem;
    }
}

.luxury-title-decorator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.luxury-title-decorator .line {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, rgba(223,186,115,0) 0%, var(--color-gold) 100%);
}

.luxury-title-decorator .line:last-child {
    background: linear-gradient(to left, rgba(223,186,115,0) 0%, var(--color-gold) 100%);
}

.luxury-title-decorator .crest {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-gold-dark);
    line-height: 1;
}

/* Beautiful interactive Invitation Details section */
.invitation-details-section {
    background-color: rgba(232, 229, 219, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

/* Beautiful Interactive Glassmorphic Schedule Cards */
.luxury-schedule-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(117, 115, 90, 0.25);
    padding: 50px 30px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 45px rgba(111, 120, 93, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Inner gold-foil frame */
.luxury-schedule-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(83, 81, 56, 0.12);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover premium enhancements */
.luxury-schedule-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(83, 81, 56, 0.55);
    box-shadow: 
        0 30px 60px rgba(83, 81, 56, 0.08), 
        0 20px 40px rgba(0, 0, 0, 0.05), 
        inset 0 0 25px rgba(255, 255, 255, 0.9);
}

.luxury-schedule-card:hover::before {
    border-color: rgba(83, 81, 56, 0.35);
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

/* Icon Animation */
.schedule-icon-container {
    display: inline-block;
    width: 90px; /* Perfect elegant size for the natural olive branch icon */
    height: 90px; /* Perfect elegant size for the natural olive branch icon */
    margin-bottom: 25px;
    position: relative;
    /* Removed background, circle border, border-radius, and clipping as requested for a clean organic look */
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.luxury-schedule-card:hover .schedule-icon-container {
    transform: scale(1.1) rotate(4deg);
}

.schedule-card-icon {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows the natural, unclipped organic branches perfectly */
}

/* Card Typography */
.schedule-card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--color-gold-dark); /* Elegant Olive Title */
    letter-spacing: 0.02em;
    margin-bottom: 15px;
}

.schedule-divider {
    width: 40px;
    height: 1px;
    background: var(--gold-gradient);
    margin: 15px auto;
    opacity: 0.6;
}

.schedule-card-date {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold-dark);
    margin-bottom: 4px;
}

.schedule-card-time {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-charcoal-light);
}

.schedule-card-venue {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-charcoal);
    margin-top: 30px;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.schedule-card-address {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--color-charcoal-light);
    opacity: 0.85;
}

/* Luxury Interactive Countdown Section */
.countdown-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(83, 81, 56, 0.22);
    padding: 35px 20px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.02), inset 0 0 15px rgba(255,255,255,0.5);
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(83, 81, 56, 0.1);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.countdown-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(83, 81, 56, 0.5);
    box-shadow: 0 25px 50px rgba(83, 81, 56, 0.08), inset 0 0 15px rgba(255,255,255,0.7);
}

.countdown-card:hover::before {
    border-color: rgba(83, 81, 56, 0.3);
}

.countdown-num-wrapper {
    position: relative;
    overflow: hidden;
    height: 4.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--color-gold-dark); /* Elegant solid olive green */
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Number transition state when modified via JS */
.countdown-number.changed {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-charcoal-light);
    margin-top: 12px;
    display: block;
}

@media (max-width: 768px) {
    .countdown-card {
        padding: 25px 15px;
    }
    
    .countdown-num-wrapper {
        height: 3rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 0.18em;
        margin-top: 8px;
    }
}

/* Luxury Venue & Destination Section */
.venue-section {
    background-color: #fffdf9 !important; /* Soft luxury cream */
}

.venue-image-container {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.venue-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.venue-image.active {
    opacity: 1;
    z-index: 2;
}

.venue-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13,12,11,0.15) 0%, rgba(13,12,11,0) 50%, rgba(13,12,11,0.3) 100%);
    pointer-events: none;
    z-index: 3;
}

.venue-image-frame {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(83, 81, 56, 0.45);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 4;
}

/* Venue Carousel Dots styling */
.venue-carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(83, 81, 56, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
}

.indicator-dot.active {
    background: var(--color-gold);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(83, 81, 56, 0.6);
}

/* Venue Image Hover Interactions */
.venue-image-container:hover .venue-image.active {
    transform: scale(1.05);
}

.venue-image-container:hover .venue-image-frame {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-color: rgba(83, 81, 56, 0.75);
    box-shadow: 0 0 15px rgba(83, 81, 56, 0.25);
}

.venue-estate-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--color-gold-dark); /* Timeless Olive Title */
    margin-top: 25px;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.venue-description {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--color-charcoal-light);
    margin-bottom: 18px;
}

.venue-meta-info {
    display: flex;
    border-top: 1px solid rgba(83, 81, 56, 0.22);
    border-bottom: 1px solid rgba(83, 81, 56, 0.22);
    padding: 18px 0;
    margin-top: 25px;
    gap: 50px;
}

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

.meta-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: 5px;
}

.meta-val {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-charcoal);
}

/* Luxury Full-Bleed Map Card */
.map-iframe-container {
    position: relative;
    width: 100%;
    height: 480px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    background-color: var(--color-ivory-dark);
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.2) sepia(0.2) hue-rotate(-10deg) saturate(0.9);
    transition: filter 0.6s ease;
}

.map-iframe-container:hover .map-iframe {
    filter: none; /* Interactive mode on hover */
}

.map-frame-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(83, 81, 56, 0.35);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 3;
}

.map-iframe-container:hover .map-frame-border {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-color: rgba(83, 81, 56, 0.65);
}

/* Floating Luxury Glass Card Overlay over Map */
.map-floating-details {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    background: rgba(18, 16, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(83, 81, 56, 0.4);
    padding: 25px;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: all 0.5s ease;
}

.map-floating-details:hover {
    border-color: rgba(83, 81, 56, 0.65);
    box-shadow: 0 20px 45px rgba(223,186,115,0.15), 0 15px 35px rgba(0,0,0,0.5);
}

.details-mini-tag {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: 5px;
    display: block;
}

.floating-estate-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.floating-estate-address {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    line-height: 1.4;
}

.floating-estate-note {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-gold-light);
    margin-bottom: 0;
    opacity: 0.85;
}

.btn-sm-custom {
    padding: 12px 24px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.22em !important;
}

/* Auxiliary Secondary Gold Button */
.btn-gold-foil-outline {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-white);
    background: transparent;
    border: 1px solid rgba(83, 81, 56, 0.7);
    padding: 17px 35px;
    border-radius: 0;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none !important;
}

.btn-gold-foil-outline:hover {
    background: var(--gold-gradient);
    color: var(--color-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(83, 81, 56, 0.25);
}

@media (max-width: 992px) {
    .venue-image-container {
        height: 350px;
    }
    
    .map-iframe-container {
        height: 420px;
    }
}

@media (max-width: 576px) {
    .venue-meta-info {
        gap: 30px;
    }
    
    .meta-val {
        font-size: 0.95rem;
    }
    
    .map-floating-details {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 20px;
        background: rgba(18, 16, 15, 0.95);
        padding: 20px 15px;
    }
    
    .map-iframe-container {
        height: auto;
    }
    
    .map-iframe {
        height: 300px;
    }
}

/* Luxury Glassmorphic RSVP Form styling */
.rsvp-section {
    background-color: rgba(232, 229, 219, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.rsvp-title-description {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-charcoal-light);
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-form-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(83, 81, 56, 0.22);
    padding: 60px 45px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04), inset 0 0 20px rgba(255, 255, 255, 0.5);
    overflow: visible;
}

.rsvp-card-inner-frame {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(83, 81, 56, 0.12);
    pointer-events: none;
    z-index: 5;
}

/* Elegant Underline Floating Inputs */
.luxury-input-group {
    position: relative;
    margin-top: 10px;
    width: 100%;
}

.luxury-input {
    width: 100%;
    background: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(83, 81, 56, 0.35);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    padding: 12px 5px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-charcoal);
    outline: none;
    transition: border-color 0.4s ease;
}

/* Label styling and animation */
.luxury-label {
    position: absolute;
    left: 5px;
    top: 14px;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Floating labels when focused or filled */
.luxury-input:focus ~ .luxury-label,
.luxury-input:not(:placeholder-shown) ~ .luxury-label {
    top: -12px;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--color-gold-dark);
}

/* ── Luxury Phone Field ─────────────────────────────────────── */
.phone-field-wrap {
    margin-top: 10px;
    width: 100%;
}
.phone-field-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: 10px;
}

/* Single underline row containing toggle + divider + input */
.phone-field-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid rgba(83, 81, 56, 0.35);
    transition: border-color 0.4s ease;
    padding-bottom: 2px;
    overflow: visible;
    position: relative;
}
.phone-field-row:focus-within {
    border-color: var(--color-gold-dark);
}

/* Custom dropdown trigger (replaces native select) */
.phone-code-drop {
    position: relative;
    flex-shrink: 0;
    user-select: none;
    z-index: 100;
}
.phone-code-selected {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 6px 8px 2px;
}
.phone-code-val {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-charcoal);
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.phone-code-arrow {
    font-size: 0.5rem;
    color: var(--color-gold-dark);
    opacity: 0.75;
    line-height: 1;
    transition: transform 0.2s ease;
}
.phone-code-drop.open .phone-code-arrow {
    transform: rotate(180deg);
}
.phone-code-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #faf9f6;
    border: 1px solid rgba(139, 115, 85, 0.25);
    box-shadow: 0 8px 28px rgba(83, 81, 56, 0.13);
    min-width: 90px;
    z-index: 9999;
}
.phone-code-drop.open .phone-code-list {
    display: block;
}
.phone-code-item {
    padding: 9px 16px;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--color-charcoal);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.phone-code-item:hover,
.phone-code-item.active {
    background: rgba(139, 115, 85, 0.08);
    color: var(--color-gold-dark);
}

/* Thin vertical divider between toggle and number input */
.phone-field-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(83, 81, 56, 0.2);
    margin: 0 10px;
    flex-shrink: 0;
}

/* Number input — no box, no border, no shadow, ever */
.phone-field-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 8px 4px;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--color-charcoal);
    letter-spacing: 0.06em;
}
.phone-field-input::placeholder {
    color: rgba(83, 81, 56, 0.3);
    font-style: italic;
    letter-spacing: 0.08em;
}
.phone-field-input:focus {
    outline: none;
    box-shadow: none;
}
.phone-field-error {
    margin-top: 5px;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #c0392b;
}


/* Custom luxury dropdown styles to ensure crisp presentation and legible options */
.custom-select-group {
    position: relative;
    width: 100%;
}

.luxury-select-trigger {
    width: 100%;
    background: transparent;
    border-bottom: 1px solid rgba(83, 81, 56, 0.35);
    padding: 12px 5px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-charcoal);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    min-height: 48px;
    transition: all 0.4s ease;
}

.trigger-val {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.trigger-arrow {
    font-size: 0.55rem;
    color: var(--color-gold);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    margin-left: 10px;
}

.custom-select-group.open .trigger-arrow {
    transform: rotate(180deg);
}

.custom-select-group.open .luxury-select-trigger {
    border-bottom-color: var(--color-gold);
}

.custom-select-label {
    position: absolute;
    left: 5px;
    top: 14px;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Float label if open or has value selected */
.custom-select-group.open .custom-select-label,
.custom-select-group.has-value .custom-select-label {
    top: -12px;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--color-gold-dark);
}

.luxury-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(83, 81, 56, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(83, 81, 56, 0.05);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-select-group.open .luxury-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(2px);
}

.luxury-option {
    padding: 13px 20px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-charcoal);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.luxury-option:hover {
    background: rgba(246, 235, 208, 0.45);
    color: var(--color-gold-dark);
    padding-left: 26px; /* Elegant slight indentation reveal */
}

/* Custom invalid status for group selector */
.custom-select-group.invalid .luxury-select-trigger {
    border-bottom-color: #b52a3a !important;
}

.custom-select-group.invalid .invalid-feedback-custom {
    display: block;
}

.luxury-textarea {
    resize: none;
}

/* Premium underline focusing animation */
.luxury-input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--gold-gradient);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.luxury-input:focus ~ .luxury-input-line {
    left: 0;
    width: 100%;
}

/* Input validation feedback */
.invalid-feedback-custom {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-style: italic;
    color: #b52a3a;
    margin-top: 5px;
    display: none;
    text-align: left;
}

.was-validated .luxury-input:invalid ~ .invalid-feedback-custom {
    display: block;
}

.was-validated .luxury-input:invalid {
    border-bottom-color: #b52a3a !important;
}

/* RSVP Form Alert Overlays (States) */
.rsvp-alert-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.rsvp-crest-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    background: var(--color-ivory);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(83, 81, 56, 0.2);
}

.rsvp-crest-circle.error-crest {
    border-color: #b52a3a;
    box-shadow: 0 10px 30px rgba(181, 42, 58, 0.15);
}

.rsvp-crest-circle.error-crest .crest-monogram {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #b52a3a;
    font-weight: 300;
}

.crest-monogram {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--color-gold-dark);
    padding-right: 20px;
}

.alert-state-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-charcoal);
}

.alert-state-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-charcoal-light);
    max-width: 480px;
}

/* === Success Box — Luxury Elegant Design === */
.rsvp-success-state {
    justify-content: center;
    align-items: center;
}

.success-box {
    position: relative;
    background: #ffffff;
    border: 1px solid #e0ded6;
    border-radius: 6px;
    padding: 50px 40px 40px 40px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.success-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    z-index: 10;
}

.success-close-btn:hover {
    color: #535138;
}

.success-box-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-monogram-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #535138;
    margin: 0 0 12px 0;
}

.char-monogram-title {
    font-family: var(--font-pinyon-script);
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #535138;
    margin: 0 0 12px 0;
}


.success-divider {
    width: 50px;
    height: 1px;
    background: #535138;
    margin: 0 auto 20px auto;
    opacity: 0.5;
}

.success-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    color: #2E2C20;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
}

.success-message {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.7;
    color: #6b6b6b;
    max-width: 360px;
    margin: 0 0 24px 0;
}

.success-checkmark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #535138;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: #535138;
    font-weight: 300;
    opacity: 0.7;
}

/* Spinner adjustment */
.spinner-border {
    border-width: 1.5px;
    width: 1.1rem;
    height: 1.1rem;
}

@media (max-width: 768px) {
    .rsvp-form-card {
        padding: 40px 25px;
    }
}

/* VIP Multi-Guest RSVP Redesign */
.rsvp-wrapper {
    position: relative;
    width: 100%;
}

.guest-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(117, 115, 90, 0.25); /* Elegant light sage green outline */
    padding: 45px 30px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(111, 120, 93, 0.03), inset 0 0 15px rgba(255, 255, 255, 0.5);
    border-radius: 8px; /* Smooth elegant curves */
}

.guest-card-inner-frame {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(117, 115, 90, 0.15); /* Light sage interior lining */
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 6px;
}

/* Guest Card Hover States */
.guest-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(83, 81, 56, 0.5); /* Olive border focus */
    box-shadow: 0 20px 40px rgba(111, 120, 93, 0.08), 0 10px 20px rgba(0,0,0,0.02);
}

.guest-card:hover .guest-card-inner-frame {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-color: rgba(83, 81, 56, 0.3); /* Olive interior lining */
}

/* Active Card State */
.guest-card.active {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: var(--color-gold) !important; /* Sage green focus */
    box-shadow: 0 25px 50px rgba(111, 120, 93, 0.12), inset 0 0 15px rgba(255, 255, 255, 0.9);
}

.guest-card.active .guest-card-inner-frame {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-color: rgba(117, 115, 90, 0.45);
}

/* Completed Card State */
.guest-card.completed {
    border-color: var(--color-gold-dark) !important; /* Olive Green focus */
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(111, 120, 93, 0.08), inset 0 0 15px rgba(255, 255, 255, 0.9);
}

.guest-card.completed .guest-card-inner-frame {
    border-color: rgba(83, 81, 56, 0.35);
}

/* Guest Card Icon styling */
.guest-card-icon-wrapper {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(117, 115, 90, 0.1); /* Elegant soft sage green background */
    border: 1px solid rgba(117, 115, 90, 0.2);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.guest-card:hover .guest-card-icon-wrapper,
.guest-card.active .guest-card-icon-wrapper {
    transform: scale(1.08);
    background: rgba(117, 115, 90, 0.18);
    border-color: rgba(83, 81, 56, 0.4); /* Solid Olive */
}

.guest-icon {
    width: 36px;
    height: 36px;
    transition: transform 0.5s ease;
}

.guest-card:hover .guest-icon {
    transform: scale(1.05);
}

.guest-card-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--color-charcoal-light); /* Olive text headers */
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}

.guest-card-subtitle {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-charcoal); /* Sage green descriptions */
    opacity: 0.85;
}

/* Luxury Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(117, 115, 90, 0.12); /* Soft sage */
    border: 1px solid rgba(117, 115, 90, 0.25);
    color: var(--color-gold-dark); /* Solid Olive text */
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border-radius: 4px; /* Smooth corners */
}

.guest-card.completed .status-indicator {
    background: rgba(83, 81, 56, 0.12); /* Olive background */
    border-color: rgba(83, 81, 56, 0.35);
    color: var(--color-gold-dark);
    box-shadow: 0 0 10px rgba(83, 81, 56, 0.1);
}

.status-dot {
    font-size: 1rem;
    line-height: 1;
    color: var(--color-gold); /* Sage green dot */
}

.guest-card.completed .status-dot {
    color: var(--color-gold-dark); /* Olive dot */
}

/* Accordion Collapsible Forms container */
.guest-form-accordion {
    display: none;
    height: 0;
    overflow: visible;
    opacity: 0;
    transition: none; /* Managed completely via high-fidelity GSAP */
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--color-charcoal);
    letter-spacing: 0.02em;
    margin-bottom: 0;
}

.close-form-btn {
    font-size: 1.8rem;
    font-weight: 200;
    color: var(--color-charcoal-light);
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}

.close-form-btn:hover {
    opacity: 1;
    color: var(--color-gold-dark);
}

/* Save Details Gold Outline Button */
.btn-save-guest {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid var(--color-gold);
    color: var(--color-gold-dark);
    background: transparent;
    padding: 15px 30px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-save-guest:hover {
    background: var(--gold-gradient);
    color: var(--color-charcoal);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(83, 81, 56, 0.22);
}

/* Final Action Button customization */
#btn-submit-final-rsvp {
    transition: all 0.4s ease;
}

#btn-submit-final-rsvp:disabled {
    background: rgba(83, 81, 56, 0.15) !important;
    border-color: rgba(83, 81, 56, 0.2) !important;
    color: var(--color-charcoal-light) !important;
    opacity: 0.6;
    box-shadow: none !important;
    cursor: not-allowed;
}

.final-btn-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* Luxury Footer Styles */
.luxury-footer {
    background-color: rgba(247, 248, 243, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(83, 81, 56, 0.15);
    padding: 60px 0;
    position: relative;
    z-index: 5;
}

.small-crest {
    font-size: 1.5rem !important;
    opacity: 0.7;
}

.copyright-text {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-charcoal-light);
    opacity: 0.7;
    margin: 0;
    line-height: 1.8;
}

.footer-company-link {
    color: var(--color-gold-dark);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.footer-company-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-company-link:hover {
    color: var(--color-gold);
}

.footer-company-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Floating Music Control Button — Luxury Design */
.music-control-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(131, 147, 125, 0.95); /* Elegant sage green matching theme */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.music-control-btn:hover {
    transform: scale(1.08);
    background: rgba(131, 147, 125, 1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2), 0 3px 12px rgba(0, 0, 0, 0.12);
}

.music-control-btn:active {
    transform: scale(0.96);
}

.music-icon {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-icon.play-icon {
    margin-left: 2px; /* Slight offset for optical centering */
}

.music-icon.pause-icon {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Music button pulse animation when playing */
.music-control-btn.is-playing {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(131, 147, 125, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(131, 147, 125, 0); }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .music-control-btn {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }

    .music-icon {
        font-size: 0.95rem;
    }

    .music-icon.pause-icon {
        font-size: 0.8rem;
    }
}

/* Forcing the native prayer emoji to match #535138 styling */
.prayer-hands-match {
    display: inline-block;
    vertical-align: -2px;
    margin-left: 2px;
    /* CSS Filter to shift OS native yellow emoji colors directly to #535138 */
    filter: sepia(100%) saturate(140%) hue-rotate(33deg) brightness(95%);
}

/* Specific Layout Fixes for Android Devices to Prevent Viewport Overlaps */
body.is-android .hero-section {
    align-items: flex-start !important; /* Shift vertical alignment from center to top starting point */
    padding-top: 10vh !important; /* Beautiful, elegant margin from the top of the Android viewport */
}

body.is-android .btn-gold-foil {
    padding: 14px 32px !important; /* Scale down CTA button size on Android to conserve vertical space */
    font-size: 0.68rem !important;
    letter-spacing: 0.22em !important;
}

body.is-android .scroll-indicator {
    bottom: 30px !important;
    font-size: clamp(0.7rem, 2vw, 0.9rem) !important;
    letter-spacing: 0.3em !important;
    width: 65% !important;
    line-height: 1.8 !important;
}

body.is-android .scroll-line {
    height: 35px !important;
    margin-top: 10px !important;
}

/* iOS iPhone — push scroll indicator down so it doesn't crowd content above */
@media only screen and (max-width: 430px) and (-webkit-min-device-pixel-ratio: 2) {
    .scroll-indicator {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
        margin-top: 48px !important;
    }
}





