:root {
    --primary-color: #523D5A;    
    --lavender-dark: #2A1E2D;    
    --lavender-medium: #705D78;  
    --lavender-light: #F6F1FA;    
    --lavender-slate: #4E4952;   
    --success-green: #2D6A4F;     
    --transition-speed: 0.4s;    
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 15px;
    display: flex;
    justify-content: center;
    background-image: linear-gradient(rgb(214 199 239 / 70%), rgb(196 186 213 / 70%)), url(images/greeting_card_with_watercolor_purple_floral_frame.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: var(--lavender-slate);
}

/* ✒️ TYPOGRAPHY HIERARCHY UPGRADES */
h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.8rem;
    color: var(--lavender-dark); 
    text-align: center;    
    margin-top: 10px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
}


h2, h3 {
    font-family: "Georgia", serif;
    color: var(--primary-color);
    text-align: center;
}

h2.guest-highlight {
    font-size: 24px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

h3 {
    font-size: 18px;
    margin-top: 25px;
    color: var(--lavender-dark);
}

p {
    color: var(--lavender-slate); 
    line-height: 1.6;
    font-size: 14px;
}

/* ==========================================================================
   📅 EVENT METADATA TIMELINE & LOCATION STYLING
   ========================================================================== */

.event-meta {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark, #3a3247);
    text-align: center;
    width: 100%;
    margin-top: 12px !important;
    display: flex;
    flex-direction: column; 
    gap: 6px; 
    align-items: center;
}

.meta-date-time {
    font-weight: 600;
    color: var(--lavender-dark, #513d5c);
    letter-spacing: 0.2px;
}

.meta-location-line {
    font-size: 13.5px;
    color: var(--text-medium, #5c526b);
}

.meta-location-line strong {
    color: var(--lavender-dark, #513d5c);
    font-weight: 600;
    letter-spacing: 0.3px;
}
/* ==========================================================================
   💍 STEP 2 MANIFEST: CLAMPING ANIMATION BEHIND ACTIVE STATE
   ========================================================================== */

/* Base state: The ring sits completely still on load */
.event-meta img {
    display: block;
    margin: 8px auto !important;
    transform-origin: center center !important;
    will-change: transform;
}

/* The Activator: This tells the ring to spin ONLY when this class is added */
.event-meta img.spin-active {
    animation: variableRingSpin 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes variableRingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



@media (max-width: 480px) {
    .event-meta {
        font-size: 13px;
        gap: 4px;
    }
    .meta-location-line {
        font-size: 12.5px;
    }
}


/* ==========================================================================
   🎬 RSVP CARD ENVELOPE LAYER CONTROLLERS (SIBLING ENGINE FIX)
   ========================================================================== */

.rsvp-card {
    background: rgba(251, 249, 252, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(14px);
    width: 100%;
    max-width: 450px;
    min-height: 85vh;
    border-radius: 28px;
    box-sizing: border-box;
    padding: 35px 22px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
    z-index: 100;
}
/* ==========================================================================
   🧼 NESTED RSVP CARD CLEANUP BLOCK (REMOVES REAR GHOST SHAPES)
   ========================================================================== */
body.curtain-active .rsvp-card {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.welcome-music-curtain:not(.hide-curtain) ~ #main-application-card {
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(60px) !important;
    pointer-events: none !important;
}

.step-container {
    display: none;
    width: 100%;
}

.step-container.active {
    display: block;
    animation: slideUpStepPanel 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUpStepPanel {
    from {
        transform: translateY(100%); 
        opacity: 0;
    }
    to {
        transform: translateY(0);   
        opacity: 1;
    }
}

.brand-title {
    font-family: "Georgia", serif;
    color: var(--primary-color);
    text-align: center;
    font-size: 26px;
    margin-bottom: 5px;
}

.seats-banner {
    text-align: center;
    margin: 20px 0;
}

.seats-number {
    display: block;
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
}

.seats-label {
    font-size: 11px;
    letter-spacing: 1px;
    color: #777;
    font-weight: 600;
}

.sub-notice {
    font-size: 12px;
    text-align: center;
    color: #666;
}

.deadline-tag {
    text-align: center;
    font-size: 13px;
    margin-top: 15px;
}

.section-divider {
    height: 1px;
    background: #c9c4c9;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
}

input[type="text"], input[type="tel"] {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #dcdcdc;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: var(--primary-color);
}

.input-tip {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.optional-tag {
    color: #aaa;
    font-size: 11px;
}

/* ==========================================================================
   👥 ACCORDION STYLES (REPLACING OLD GUEST VIEW CARDS)
   ========================================================================== */

.guest-decision-card {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(112, 93, 120, 0.1);
    margin-bottom: 12px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

.guest-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    cursor: pointer; 
}

.status-emoji-indicator {
    font-size: 18px;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.decision-buttons {
    display: flex;
    gap: 10px;
    max-height: 150px; 
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, margin-top 0.3s ease;
}

.guest-decision-card.is-collapsed {
    padding: 12px 16px; 
    background: rgba(255, 255, 255, 0.4); 
}

.guest-decision-card.is-collapsed .guest-name {
    margin-bottom: 0; 
}

.guest-decision-card.is-collapsed .decision-buttons {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

.btn-toggle {
    flex: 1;
    padding: 12px;
    border: 1.5px solid #dcdcdc;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--lavender-slate); 
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle.selected.opt-yes {
    background: var(--success-green);
    color: #ffffff !important; 
    border-color: var(--success-green);
    font-weight: 600; 
}

.btn-toggle.selected.opt-no {
    background: var(--primary-color);
    color: #ffffff !important; 
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: none;
    color: #666;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: underline;
}

.error-text {
    color: red;
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

.status-attending { color: var(--success-green); }
.status-declined { color: var(--primary-color); }


.success-banner {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-radius: 10px;
}

.success-intro {
    text-align: center;
    margin-top: 15px;
}

.info-alert-banner {
    background-color: var(--lavender-light);
    color: var(--primary-color); 
    border: 1px dashed rgba(82, 61, 90, 0.3);
    padding: 14px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(92, 78, 112, 0.04);
}

.autocomplete-wrapper {
    position: relative;
}
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: none; 
    transition: box-shadow 0.2s ease;
}

.autocomplete-dropdown.visible {
    border: 1.5px solid #dcdcdc;
    border-top: none;
    box-shadow: 0 4px 12px rgba(58, 50, 71, 0.08);
}
.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}
.autocomplete-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}
.warning-alert-banner {
    background-color: #fce8e6;
    color: #a51d24;
    border: 1px solid #fad2cf;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
}
.seats-honor-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}
/* ==========================================================================
   EVENT LOGISTICS & DETAIL CARDS STYLING 
   ========================================================================== */
.event-details-guide {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.friendly-gifting {
    font-style: italic;
    color: #666;
    border-left: 2.5px solid var(--primary-color);
    padding-left: 10px;
}

.btn-outline-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    border: 1.5px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    background-color: white;
    transition: all 0.2s ease;
}

.btn-outline-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ==========================================================================
   👗 ADAPTIVE MULTI-ROW COLOR PALETTE CONTROLLERS
   ========================================================================== */
.color-palette-container {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;        
    gap: 12px 14px;      
    margin-top: 15px;
    padding: 0 5px;       
}

.color-swatch {
    width: 34px;            
    height: 34px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 3px 6px rgba(58, 50, 71, 0.12); 
    border: 2px solid #ffffff;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer;
    touch-action: manipulation; 
    -webkit-tap-highlight-color: transparent; 
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(58, 50, 71, 0.2);
}

/* ==========================================================================
   🎨 DYNAMIC COLOR SWATCH LOUPE MODAL STYLES (CINEMATIC FROSTED BLACK)
   ========================================================================== */

.swatch-modal-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(12, 11, 14, 0.75); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease; 
}

.swatch-modal-overlay.active-view {
    opacity: 1;
    pointer-events: auto;
}

.swatch-modal-box {
    text-align: center;
    transform: scale(0.88);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.swatch-modal-overlay.active-view .swatch-modal-box {
    transform: scale(1); 
}

.swatch-modal-preview {
    width: 200px; 
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); 
    border: none; 
}

.swatch-modal-text-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px; 
    margin-top: 18px;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-card {
    background-color: #f0f4f8; 
    text-align: center;
}

.contact-messenger-link {
    display: inline-block;
    margin-top: 8px;
    color: #0084ff; 
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.contact-messenger-link:hover {
    text-decoration: none;
}

.location-grid-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px !important;
}

.card-details-column {
    flex: 1.4;
}

.card-map-column {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-map-wrapper {
    position: relative;
    display: block;
    width: 150px;  
    height: 110px; 
    border-radius: 14px;
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.mini-map-wrapper iframe {
    position: absolute;
    width: 240px; 
    height: 190px;  
    top: -45px;   
    left: -45px;  
    border: none;
    pointer-events: none; 
}

.map-overlay-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(82, 61, 90, 0.9); 
    color: white;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    padding: 5px 0;
    letter-spacing: 0.5px;
    z-index: 10;
}
/* ==========================================================================
   SMOOTH MICRO-ANIMATIONS ENGINE
   ========================================================================== */

.step-container {
    display: none;
    opacity: 0;
    transform: translateY(15px); 
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.step-container.active {
    display: block;
    animation: slideUpFadeIn var(--transition-speed) forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guest-decision-card {
    background-color: var(--lavender-light) !important; 
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guest-decision-card:hover {
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(92, 78, 112, 0.08);
}

.btn-toggle {
    transition: transform 0.1s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-toggle:active {
    transform: scale(0.97); 
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(82, 61, 90, 0.2); 
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #3E2D44; 
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(82, 61, 90, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* ==========================================================================
   🎵 WELCOME ENTRYWAY PORTRAIT FRAME (RENAMED & ISOLATED)
   ========================================================================== */

.welcome-portrait-frame {
    width: 120px;    
    height: 120px;   
    border: 2px solid #d4af37; 
    border-radius: 50%;       
    margin: 15px auto 25px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;         
    box-shadow: 0 6px 16px rgba(58, 50, 71, 0.1); 
    background-color: #ffffff;
}

.welcome-portrait-image {
    width: 100%;       
    height: 100%;      
    object-fit: cover; 
    object-position: center; 
    display: block;
}

.welcome-tagline {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--lavender-medium);
    margin: 0 0 -5px 0;
    opacity: 0.9;
}

.main-wedding-heading {
    font-family: 'Great Vibes', cursive;
    display: flex;
    flex-direction: column;   
    align-items: center;       
    justify-content: center;
    width: 100%;
    margin: 10px auto 20px auto; 
    padding: 0 70px;
    box-sizing: border-box;
}

.partner-name {
    font-size: 3.5rem;        
    color: var(--lavender-dark); 
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
    line-height: 1.1;          
    text-align: center;
    width: 100%;
}

.name-left {
    text-align: left;
}
.name-right {
    text-align: right;
}

.ampersand-divider {
    font-size: 1.9rem;         
    color: var(--lavender-medium); 
    text-align: center;
    text-shadow: none;
}

.countdown-ticker-box {
    text-align: center;
    background-color: var(--lavender-light);
    padding: 10px 20px;
    border-radius: 12px;
    width: fit-content;
    margin: 20px auto 10px auto; 
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px dashed rgba(139, 38, 53, 0.2);
}

.countdown-days-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    background: white;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.countdown-days-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--lavender-medium);
    letter-spacing: 0.2px;
}
/* ==========================================================================
   🎬 3D MECHANICAL FLIP-CLOCK MATRIX STYLES (BALANCED LAYER STACK)
   ========================================================================== */

.countdown-flip-container {
    margin: 25px auto 15px auto;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.countdown-header-tag {
    font-size: 12.5px;
    color: var(--lavender-medium);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 12px;
}

.flip-clock-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.flip-unit-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-digit-card-3d {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    perspective: 300px; 
    background-color: var(--lavender-dark); 
}

.card-flap {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    background-color: var(--lavender-dark); 
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden;
    box-sizing: border-box;
}

/* --- TOP FLAPS (UPPER HALF) --- */
.b-top, .f-top {
    top: 0;
    line-height: 48px; 
    border-radius: 8px 8px 0 0;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.4); 
    transform-origin: 50% 100%; 
}

/* --- BOTTOM FLAPS (LOWER HALF) --- */
.b-bottom, .f-bottom {
    bottom: 0;
    line-height: 0px; 
    border-radius: 0 0 8px 8px;
    border-top: 0.3px solid rgba(255, 255, 255, 0.12); 
    transform-origin: 50% 0%; 
}

.b-top { z-index: 1; }
.b-bottom { z-index: 1; }
.f-bottom { z-index: 2; transform: rotateX(0deg); }
.f-top { z-index: 3; transform: rotateX(0deg); }

/* ==========================================================================
   🎬 FIXED DYNAMIC TIMING SYNCHRONIZATIONS
   ========================================================================== */


.flip-digit-card-3d.animate-flip .f-top {
    animation: flipTopLinear 1.1s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}

@keyframes flipTopLinear {
    0% { 
        transform: rotateX(0deg); 
        z-index: 3; 
    }
    49% {
        z-index: 3; 
    }
    50% { 
        z-index: 1;
    }
    100% { 
        transform: rotateX(-180deg); 
        z-index: 1; 
    }
}

.flip-digit-card-3d.animate-flip .b-top {
    animation: revealBackTop 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes revealBackTop {
    0% { transform: rotateX(20deg); opacity: 0.8; }
    100% { transform: rotateX(0deg); opacity: 1; }
}


.flip-unit-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--lavender-medium);
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.flip-digit-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.25); 
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.flip-unit-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--lavender-medium);
    text-transform: uppercase;
    margin-top: 6px;
    letter-spacing: 0.3px;
}
/* ==========================================================================
   STEP 2: PREMIUM LAYOUT & SECTION CONTRAST STYLES
   ========================================================================== */
.greeting-intro {
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px; 
    color: var(--lavender-medium);
    margin-bottom: 8px;
    margin-top: 15px;
}

.guest-highlight {
    text-align: center;
    font-family: "Georgia", serif; 
    font-size: 26px;
    font-weight: 700;
    color: var(--lavender-dark); 
    margin-top: 0;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

#step-configure h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lavender-dark);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 35px;
    margin-bottom: 5px;
}


.instruction-sub {
    text-align: center;
    font-size: 13px;
    color: var(--lavender-medium);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 500;
}

/* --- LOGISTICS MAP CARDS VISUAL UPGRADES --- */
.event-details-guide {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: var(--lavender-light) !important;
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(112, 93, 120, 0.1);
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: scale(1.01); 
}

.info-card-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.8px; 
    margin: 0 0 8px 0;
    opacity: 0.85;
}

/* Clear, bold focal text for Venue Names */
.venue-name-highlight {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--lavender-dark);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.venue-address-subtext {
    display: block;
    font-size: 12.5px;
    color: var(--lavender-slate);
    line-height: 1.5;
    font-weight: 400;
}

.info-card-text {
    font-size: 13.5px;
    color: var(--lavender-slate);
    line-height: 1.6;
    margin: 0;
}

.friendly-gifting {
    font-family: "Georgia", serif;
    font-style: italic;
    color: var(--lavender-medium);
    font-size: 14px;
    line-height: 1.7;
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

.contact-card {
    background-color: #f1ecf7 !important;
    border: 1px dashed rgba(82, 61, 90, 0.25);
    text-align: center;
}

.contact-messenger-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    background-color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.contact-messenger-link:hover {
    background-color: var(--primary-color);
    color: white;
}
/* ==========================================================================
   DYNAMIC KINETIC EMOJI ANIMATION ENGINE 
   ========================================================================== */
.emoji-pop-zoom {
    animation: popZoomSpring 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.3) forwards;
}

@keyframes popZoomSpring {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4) rotate(8deg); 
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}
.emoji-slam-roll {
    animation: slamRollSpring 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slamRollSpring {
    0% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    20% {
        transform: scale(1.3) translateY(-10px) rotate(-15deg); 
    }
    40% {
        transform: scale(0.9) translateY(2px) rotate(10deg); 
    }
    70% {
        transform: scale(1.1) translateY(0) rotate(-8deg);  
    }
    100% {
        transform: scale(1) translateY(0) rotate(0deg);     
    }
}

/* ==========================================================================
   CUSTOM ELEGANT MODAL COMPONENT STYLES
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(42, 30, 45, 0.4); 
    backdrop-filter: blur(4px); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #ffffff;
    width: 85%;
    max-width: 340px;
    padding: 30px 20px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(42, 30, 45, 0.15);
    text-align: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-box {
    transform: scale(1); 
}

.modal-emoji {
    font-size: 36px;
    margin-bottom: 12px;
}

.modal-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--lavender-dark) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 0 8px 0 !important;
}

.modal-message {
    font-size: 14px;
    color: var(--lavender-slate);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.modal-btn {
    padding: 12px 30px !important;
    width: auto !important;
    min-width: 120px;
    display: inline-block;
}

/* ==========================================================================
   STEP 3: PREMIUM REVIEW SCREEN STYLES OVERHAUL
   ========================================================================== */

#step-review h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-head {
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color); 
    margin-top: 0;
    margin-bottom: 25px;
}

.summary-box {
    border: none; 
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px; 
}

.summary-section {
    background-color: var(--lavender-light);
    border: 1px solid rgba(112, 93, 120, 0.1);
    border-radius: 16px;
    padding: 18px 20px;
    box-sizing: border-box;
}

.status-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-top: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.summary-list {
    margin: 0;
    padding: 0;
    list-style: none; 
}

.summary-list li {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14.5px;
    color: var(--lavender-dark);
    font-weight: 600;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#review-list-attending li::before {
    content: '🎉'; 
    font-size: 14px;
}

#review-list-declined li::before {
    content: '🕊️'; 
    font-size: 14px;
}

.summary-list li.empty-placeholder {
    color: var(--lavender-medium);
    font-weight: 400;
    font-style: italic;
}
.summary-list li.empty-placeholder::before {
    content: '' !important; 
}

.footer-note {
    text-align: center;
    font-size: 13px;
    color: var(--lavender-slate);
    margin: 25px 0;
}
.footer-note strong {
    color: var(--lavender-dark);
}
/* ==========================================================================
   STEP 4: SUCCESS HUB DESIGN INTEGRATIONS
   ========================================================================== */

.success-hub-card {
    text-align: left;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.hub-sub-note {
    font-size: 12px;
    color: var(--lavender-medium);
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

.hub-edit-btn {
    width: auto !important;
    display: inline-block;
    padding: 8px 16px;
    margin-top: 12px;
    margin-bottom: 10px;
    font-size: 12.5px;
}

.hub-deadline-warning {
    font-size: 11.5px;
    color: var(--lavender-slate);
    margin: 4px 0 0 0;
}

.hub-messenger-btn {
    background-color: #ffffff;
    color: #0084ff !important; 
    padding: 10px 18px !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 132, 255, 0.08);
    margin-top: 4px;
    border: 1px solid rgba(0, 132, 255, 0.15);
}

.hub-messenger-btn:hover {
    background-color: #0084ff;
    color: #ffffff !important;
    border-color: #0084ff;
    text-decoration: none;
}
/* ==========================================================================
   SUCCESS SECTION MULTI-FONT EDITORIAL STACK
   ========================================================================== */
.warm-closing-tag.split-closing-lines {
    text-align: center;
    width: 100%;
    margin: 25px auto;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Injects perfect vertical breathing room between your span rows rows */
}

/* 🏢 LINE 1 & 3: Crisp, Minimalist Uppercase Framing Lines */
.warm-closing-tag.split-closing-lines span:first-child,
.warm-closing-tag.split-closing-lines span:last-child {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px; /* Premium tracking spacing spaces out words beautifully */
    color: var(--text-medium, #705d78);
    display: block;
}

/* 🌸 LINE 2: The Beautiful Cursive Script Center Highlight */
.warm-closing-tag.split-closing-lines span:nth-child(2) {
    font-family: 'Great Vibes', cursive !important;
    font-size: 2.8rem !important; /* Upscaled to give the curves sweeping presence */
    color: var(--lavender-dark, #513d5c);
    line-height: 1.1;
    margin: 5px 0 !important;
    font-weight: 400;
    text-transform: none; /* Safeguards script against uppercase overrides */
    display: block;
}

/* ==========================================================================
   🎬 CINEMATIC POST-CREDITS WORD ENGINE 
   ========================================================================== */

.cinematic-blackout {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0c0b0e;
    z-index: 999999;
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.cinematic-blackout.activated-curtain {
    display: flex !important;
    opacity: 1;
}

.cinematic-blackout.fade-out-curtain {
    opacity: 0;
    pointer-events: none;
}

.marvel-text-line {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400; 
    font-size: 22px;  
    color: #e2e8f0;  
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;       
    line-height: 1.5;
}

.font-highlight {
    color: #ffffff;
    font-weight: 500;
}

.m-word {
    opacity: 0;
    display: inline-block;
    animation: wordFadeEntrance 2.0s cubic-bezier(0.25, 1, 0.5, 1) forwards; 
}

@keyframes wordFadeEntrance {
    from {
        opacity: 0;
        transform: scale(1.15); 
        filter: blur(4px);    
    }
    to {
        opacity: 0.9;          
        transform: scale(1);
        filter: blur(0px);
    }
}

/* ==========================================================================
   🖼️ TRANSPARENT VISIBILITY ISOLATION SHEET (NO SOLID TINTS)
   ========================================================================== */

.welcome-music-curtain {
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999999 !important; 
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s ease;
}

body.curtain-active .rsvp-card {
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(60px);
}

body:not(.curtain-active) .rsvp-card {
    visibility: visible !important; 
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.7s ease;
}

.welcome-music-curtain.hide-curtain {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease 0.4s;
}

/* ==========================================================================
   🎬 CINEMATIC ZOOM-AND-FADE ENVELOPE CONFIGURATION
   ========================================================================== */

.envelope-wrapper {
    position: relative;
    display: block !important;
    width: 380px !important;  
    height: 260px !important; 
    background-color: #f0e6f5; 
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 45px rgba(58, 50, 71, 0.18);
    perspective: 800px; 
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
    will-change: transform, opacity;
    z-index: 10000 !important;
}
.envelope-wrapper.seal-broken {
    transform: translateY(-20px) scale(1.3) !important; 
    opacity: 0 !important; 
    pointer-events: none;
}

.envelope-back-pocket {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #e5d5ed; 
    border-radius: 0 0 16px 16px;
    z-index: 11; 
}

.envelope-side-flaps {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: #ffffff !important; 
    background: #ffffff linear-gradient(30deg, #fbf9fc 45%, rgba(0,0,0,0.03) 50%, transparent 55%),
                #ffffff linear-gradient(-30deg, #fbf9fc 45%, rgba(0,0,0,0.03) 50%, transparent 55%);
    background-size: 100% 100%;
    border-radius: 0 0 16px 16px;
    z-index: 13; 
}
.envelope-front-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(35deg, #ffffff 50%, transparent 50.5%), linear-gradient(-35deg, #ffffff 50%, transparent 50.5%);
    background-size: 100% 100%;
    filter: drop-shadow(0 -2px 5px rgba(58, 50, 71, 0.06));
    border-radius: 0 0 16px 16px;
    z-index: 15;
}

.envelope-flap-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: calc(380px / 2) solid transparent;
    border-right: calc(380px / 2) solid transparent;
    border-top: 135px solid #fbf9fc !important; 
    
    transform-origin: 50% 0%; 
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 15; 
}

@media (max-width: 410px) {
    .envelope-wrapper {
        width: 320px !important;
        height: 220px !important;
    }
    .envelope-wrapper.seal-broken {
        transform: translateY(-15px) scale(1.3) !important;
        opacity: 0 !important;
    }
    .envelope-flap-top {
        border-left: calc(320px / 2) solid transparent !important;
        border-right: calc(320px / 2) solid transparent !important;
        border-top-width: 115px !important;
    }
    .interactive-wax-seal {
        top: 95px !important;
    }
    .envelope-front-pocket {
        height: 210px;
        background: linear-gradient(35deg, #ffffff 50%, transparent 50.5%), linear-gradient(-35deg, #ffffff 50%, transparent 50.5%);
    }
}
.interactive-wax-seal {
    position: absolute;
    top: 115px; 
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 54px;
    background-color: #664d73; 
    border-radius: 44% 56% 48% 52% / 50% 45% 55% 50%; 
    box-shadow: 0 6px 15px rgba(58, 50, 71, 0.35), inset 0 2px 4px rgba(255,255,255,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 16; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.interactive-wax-seal:hover {
    transform: translateX(-50%) scale(1.1); 
}

.wax-seal-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.25); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.wax-seal-initials {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    opacity: 0.85;
}
.envelope-wrapper.seal-broken .interactive-wax-seal {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
    pointer-events: none;
}

.envelope-wrapper.seal-broken .envelope-flap-top {
    transform: rotateX(180deg);
    z-index: 9; 
}


/* ==========================================================================
   🎬 ANIMATED MOTION CHOREOGRAPHY STATES
   ========================================================================== */
.envelope-wrapper.seal-broken .interactive-wax-seal {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
    pointer-events: none;
}
.envelope-wrapper.seal-broken .envelope-flap-top {
    transform: rotateX(180deg);
    z-index: 1; 
}


/* ==========================================================================
   🎬 WELCOME TAGLINE KINETIC EDITORIAL SLIDE ENGINE
   ========================================================================== */

.text-mobile-break {
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem !important; 
    color: var(--lavender-dark);
    line-height: 1.2;
    width: 100%;
    max-width: 380px;
    margin: 15px auto;
    display: flex;
    flex-direction: column; 
    padding: 0 18px; 
    overflow: visible !important; 
    box-sizing: border-box;
}

.slide-block {
    display: block !important;
    opacity: 0;
    will-change: transform, opacity;
}

.block-left {
    text-align: left;
    width: 100%;
    transform: translateX(-40px); 
    animation: slideTextToLeftRest 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

.block-right {
    text-align: right;
    width: 100%;
    margin-top: -15px !important; 
    animation: slideTextToRightRest 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

@keyframes slideTextToLeftRest {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0); 
    }
}

@keyframes slideTextToRightRest {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0); 
    }
}

/* ==========================================================================
   RESPONSIVE TEXT BREAKING CONTROLS FOR MOBILE VIEWPORTS
   ========================================================================== */

@media (max-width: 480px) {
    body {
        background-image: linear-gradient(rgb(214 199 239 / 70%), rgb(196 186 213 / 70%)), url(images/greeting_card_with_watercolor_purple_floral_frame.jpg);
    }
    .text-mobile-break span {
        display: block;
        margin-top: 4px; 
    }
    .welcome-tagline {
        font-size: 1.6rem;
    }
    .main-wedding-heading {
        padding: 0 50px;
    }
    .split-closing-lines span {
        display: block;      
        margin-bottom: 4px;  
        text-align: center;
    }
    .intro-line-stack span {
        display: block;     
        margin-top: 5px;   
        text-align: inherit; 
    }
    .banner-line-stack span {
        display: block;     
        margin-top: 5px;   
        font-weight: 600;   
    }
    .instruction-line-stack span {
        display: block;      
        margin-top: 4px;    
    }
    .section-divider {
        background: #c2c9d1;
    }
    .warm-closing-tag.split-closing-lines span:nth-child(2) {
        font-size: 2.4rem !important;
    }
    .warm-closing-tag.split-closing-lines span:first-child,
    .warm-closing-tag.split-closing-lines span:last-child {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

}
/* ==========================================================================
   INVITATION TEXT CONNECTOR ACCENT STYLING
   ========================================================================== */

.wedding-connector-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-style: italic; 
    font-weight: 400;
    color: var(--lavender-medium, #8e7d96);
    text-transform: lowercase;
    letter-spacing: 0.5px;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
    text-align: center;
    width: 100%;
}
@media (max-width: 480px) {
    .wedding-connector-text {
        font-size: 13px;
        margin-top: 8px !important;
        margin-bottom: 10px !important;
    }
}
