/* ==========================================================================
   MENA HELMY & MOHAMED EL ASHRY - ROYAL WEDDING INVITATION
   Theme: Luxury Egyptian Mosaic Arch, Nile River Midnight & Metallic Gold
   ========================================================================== */

/* ===== CSS RESET & CSS CUSTOM PROPERTIES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette derived from the Invitation Image */
    --color-nile-deepest: #040814;
    --color-nile-dark: #070D1E;
    --color-nile-navy: #0A1329;
    --color-nile-blue: #0F2038;
    --color-nile-teal: #13334C;
    
    /* Metallic & Accent Golds */
    --color-gold-light: #F7E7CE;
    --color-gold-bright: #F5D77F;
    --color-gold-primary: #D4AF37;
    --color-gold-dark: #AA7C11;
    --color-gold-deep: #785705;

    --color-copper: #C57B57;
    --color-lotus-pink: #E8A5B8;
    --color-ivory: #FDFBF7;
    --color-text-gold: #E5C158;
    --color-text-secondary: #C8D6E5;
    --color-text-muted: #8E9BAE;

    /* Gradients */
    --grad-gold: linear-gradient(135deg, #F7E7CE 0%, #D4AF37 50%, #AA7C11 100%);
    --grad-gold-bright: linear-gradient(135deg, #FFF0B8 0%, #F5D77F 50%, #D4AF37 100%);
    --grad-nile-card: linear-gradient(180deg, rgba(15, 32, 56, 0.85) 0%, rgba(7, 13, 30, 0.95) 100%);
    --grad-pocket-arch: linear-gradient(180deg, #0D1935 0%, #070D1E 100%);

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-script: 'Alex Brush', cursive;
    --font-sans: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-nile-deepest);
    color: var(--color-ivory);
    font-family: var(--font-serif);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== CANVAS BACKGROUNDS ===== */
#nile-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#sparkles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.nile-vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(4, 8, 20, 0.2) 0%, rgba(4, 8, 20, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.main-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ===== AUDIO PLAYER TOGGLE ===== */
.audio-control-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

.music-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: rgba(10, 19, 41, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    color: var(--color-gold-bright);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.music-btn:hover {
    border-color: var(--color-gold-bright);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

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

.music-bars span {
    width: 2.5px;
    height: 100%;
    background: var(--grad-gold);
    border-radius: 2px;
    animation: barPulse 1.2s ease-in-out infinite alternate;
}

.music-bars span:nth-child(1) { animation-delay: 0.1s; }
.music-bars span:nth-child(2) { animation-delay: 0.3s; }
.music-bars span:nth-child(3) { animation-delay: 0.5s; }
.music-bars span:nth-child(4) { animation-delay: 0.2s; }

.music-btn:not(.playing) .music-bars span {
    animation-play-state: paused;
    height: 4px;
}

@keyframes barPulse {
    0% { height: 3px; }
    100% { height: 14px; }
}

/* ===== SECTION 1: ENVELOPE LANDING ===== */
.section-envelope {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 2rem;
    position: relative;
}

.header-branding {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crown-svg {
    width: 50px;
    height: 30px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.sub-title-script {
    font-family: var(--font-script);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--color-gold-bright);
    font-weight: 400;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    line-height: 1.1;
}

.main-couples-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.25em;
    background: var(--grad-gold-bright);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.3rem 0;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.tagline-gold {
    font-family: var(--font-sans);
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    letter-spacing: 0.35em;
    color: var(--color-text-secondary);
    opacity: 0.85;
}

/* 3D Envelope Geometry */
.envelope-3d-wrapper {
    perspective: 1200px;
    margin: 1.5rem 0 2.5rem;
    z-index: 10;
}

.envelope-3d {
    position: relative;
    width: min(400px, 88vw);
    height: 260px;
    background: #081126;
    border-radius: 8px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(212, 175, 55, 0.15),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

/* Pocket Back Inside */
.envelope-pocket-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #040814 0%, #0A1329 100%);
    border-radius: 8px;
    z-index: 1;
}

/* Inner Invitation Card inside envelope */
.envelope-card-inner {
    position: absolute;
    top: 10px;
    left: 4%;
    width: 92%;
    height: 240px;
    background: #070D1E;
    border-radius: 6px;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.3, 1);
}

.card-inner-graphic {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.card-foil-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 240, 184, 0.3) 50%, transparent 60%);
    pointer-events: none;
}

/* Pocket Front Cover */
.envelope-pocket-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: var(--grad-pocket-arch);
    border-radius: 0 0 8px 8px;
    z-index: 3;
    overflow: hidden;
    border-top: 2px solid var(--color-gold-primary);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
}

.pocket-mosaic-arch {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.arch-svg {
    width: 100%;
    height: 100%;
}

.pocket-details {
    position: absolute;
    bottom: 1.2rem;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 4;
}

.pocket-monogram {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-gold-bright);
}

.pocket-date {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--color-text-secondary);
}

/* Envelope Flap Top */
.envelope-flap-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 170px;
    transform-origin: top center;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.flap-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

/* Wax Seal Button */
.wax-seal-btn {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 65px;
    background: radial-gradient(circle at 35% 35%, #F5D77F 0%, #D4AF37 40%, #8B6508 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(212, 175, 55, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.wax-seal-btn:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(212, 175, 55, 0.6);
}

.seal-inner-stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed rgba(7, 13, 30, 0.6);
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.seal-initials {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: #070D1E;
    line-height: 1;
}

.seal-crown {
    font-size: 0.65rem;
    margin-top: 1px;
}

.seal-ripple {
    position: absolute;
    inset: -6px;
    border: 2px solid var(--color-gold-bright);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulseRipple 2s ease-out infinite;
}

@keyframes pulseRipple {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* OPEN ENVELOPE STATE ANIMATIONS */
.envelope-3d.opened .envelope-flap-top {
    transform: rotateX(-180deg);
    z-index: 1;
}

.envelope-3d.opened .envelope-card-inner {
    transform: translateY(-160px) scale(1.05);
    z-index: 6;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.3);
}

.wax-seal-btn.broken {
    transform: translateX(-50%) scale(0.2) rotate(180deg);
    opacity: 0;
    pointer-events: none;
}

/* Buttons & Prompts */
.envelope-action-prompt {
    text-align: center;
    margin-top: 1rem;
}

.gold-luxury-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.8rem;
    background: var(--grad-gold-bright);
    border: none;
    border-radius: 50px;
    color: #040814;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    cursor: pointer;
    box-shadow: 
        0 6px 30px rgba(212, 175, 55, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
}

.gold-luxury-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 40px rgba(212, 175, 55, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.click-hint {
    margin-top: 0.8rem;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

.scroll-down-hint {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 1s ease;
}

.scroll-down-hint.show {
    opacity: 1;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--color-gold-bright);
}

.chevron-arrow {
    width: 14px;
    height: 14px;
    border-right: 2px solid var(--color-gold-primary);
    border-bottom: 2px solid var(--color-gold-primary);
    transform: rotate(45deg);
    animation: bounceChevron 1.8s ease-in-out infinite;
}

@keyframes bounceChevron {
    0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.4; }
    50% { transform: translateY(8px) rotate(45deg); opacity: 1; }
}

/* ===== SECTION 2: FULL INVITATION CARD DISPLAY ===== */
.section-full-invitation {
    padding: 5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header-ornament {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    width: min(400px, 90%);
}

.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
}

.ornament-symbol {
    font-size: 1.5rem;
    color: var(--color-gold-bright);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.invitation-frame-container {
    width: min(650px, 92vw);
    position: relative;
}

.invitation-arch-frame {
    background: var(--color-nile-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(212, 175, 55, 0.15);
    border: 1.5px solid var(--color-gold-primary);
    position: relative;
}

.arch-mosaic-header, .arch-mosaic-footer {
    width: 100%;
    line-height: 0;
}

.top-mosaic-svg, .bottom-mosaic-svg {
    width: 100%;
    height: auto;
}

.invitation-image-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.master-invitation-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.image-hover-glass {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 20, 0.85) 100%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.invitation-image-wrapper:hover .master-invitation-img {
    transform: scale(1.02);
}

.invitation-image-wrapper:hover .image-hover-glass {
    opacity: 1;
}

.glass-icon {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--color-gold-bright);
}

/* Quick Details Grid */
.quick-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 3.5rem;
}

.detail-tile {
    background: var(--grad-nile-card);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.detail-tile:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
}

.tile-icon-wrap {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.tile-svg-icon {
    width: 26px;
    height: 26px;
}

.detail-tile h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--color-gold-bright);
    margin-bottom: 0.6rem;
}

.tile-primary {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-ivory);
}

.tile-secondary {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.2rem;
}

/* Calendar Button */
.calendar-action-wrapper {
    margin-top: 2.5rem;
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2rem;
    background: transparent;
    border: 1.5px solid var(--color-gold-primary);
    border-radius: 40px;
    color: var(--color-gold-bright);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    background: var(--color-gold-primary);
    color: #040814;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* ===== SECTION 3: COUNTDOWN SECTION ===== */
.section-countdown {
    padding: 4rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.countdown-backdrop-card {
    background: linear-gradient(135deg, rgba(10, 19, 41, 0.9) 0%, rgba(7, 13, 30, 0.95) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.countdown-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    letter-spacing: 0.2em;
    color: var(--color-gold-bright);
}

.gold-divider-sparkle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.2rem auto 2.5rem;
    color: var(--color-gold-primary);
    font-size: 0.8rem;
}

.gold-divider-sparkle .line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
}

.countdown-timer-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timer-box {
    background: rgba(4, 8, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.timer-num {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--color-gold-bright);
    line-height: 1;
}

.timer-unit {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

.timer-colon {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold-primary);
    opacity: 0.6;
}

.countdown-footer-quote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-secondary);
    margin-top: 2.5rem;
}

/* ===== SECTION 4: ROYAL RSVP FORM ===== */
.section-rsvp {
    padding: 5rem 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.rsvp-glass-card {
    background: var(--grad-nile-card);
    border: 1.5px solid var(--color-gold-primary);
    border-radius: 20px;
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(15px);
}

.rsvp-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.rsvp-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-text-secondary);
}

.rsvp-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.3em;
    color: var(--color-gold-bright);
    margin: 0.3rem 0;
}

.rsvp-deadline {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-ivory);
}

.rsvp-gold-line {
    width: 120px;
    height: 2px;
    background: var(--grad-gold);
    margin: 1.2rem auto 0;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--color-gold-bright);
}

.req {
    color: var(--color-copper);
}

.luxury-input, .luxury-select, .luxury-textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(4, 8, 20, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: var(--color-ivory);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
}

.luxury-input:focus, .luxury-select:focus, .luxury-textarea:focus {
    border-color: var(--color-gold-bright);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(7, 13, 30, 0.9);
}

.luxury-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23D4AF37' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
}

.luxury-select option {
    background: #070D1E;
    color: var(--color-ivory);
}

.attendance-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0.3rem;
}

.attendance-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(4, 8, 20, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attendance-card input[type="radio"] {
    display: none;
}

.radio-custom-box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-gold-primary);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.attendance-card input[type="radio"]:checked ~ .radio-custom-box {
    border-color: var(--color-gold-bright);
    background: var(--color-gold-primary);
}

.attendance-card input[type="radio"]:checked ~ .radio-custom-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #040814;
    border-radius: 50%;
}

.attendance-card input[type="radio"]:checked ~ .attendance-content .attendance-title {
    color: var(--color-gold-bright);
}

.attendance-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-ivory);
    display: block;
}

.attendance-desc {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--color-text-secondary);
}

.form-submit-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

.rsvp-submit-btn {
    position: relative;
    padding: 1.1rem 3.2rem;
    background: var(--grad-gold-bright);
    border: none;
    border-radius: 50px;
    color: #040814;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    cursor: pointer;
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
    transition: all 0.4s ease;
    overflow: hidden;
}

.rsvp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.6);
}

/* Success Card */
.rsvp-success-container {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.8s ease;
}

.success-seal {
    font-size: 3.5rem;
    color: var(--color-gold-bright);
    margin-bottom: 1rem;
}

.success-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-gold-bright);
    margin-bottom: 0.8rem;
}

.success-body {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.reset-btn {
    padding: 0.7rem 1.8rem;
    background: transparent;
    border: 1px solid var(--color-gold-primary);
    border-radius: 30px;
    color: var(--color-gold-bright);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    cursor: pointer;
}

/* ===== SECTION 5: VENUE & LOCATION GUIDE ===== */
.section-location {
    padding: 5rem 1.5rem 6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.location-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.loc-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-text-secondary);
}

.loc-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.25em;
    color: var(--color-gold-bright);
    margin: 0.3rem 0;
}

.loc-desc {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-ivory);
    max-width: 650px;
    margin: 0 auto;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 850px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}

.location-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.loc-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--grad-nile-card);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.loc-card:hover {
    border-color: var(--color-gold-primary);
    transform: translateX(5px);
}

.loc-card-icon {
    width: 46px;
    height: 46px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loc-card-text h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--color-gold-bright);
    margin-bottom: 0.3rem;
}

.loc-card-text p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--color-ivory);
    line-height: 1.4;
}

.loc-card-text .sub-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 0.2rem;
}

.map-action-wrap {
    margin-top: 1rem;
}

.directions-gold-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--grad-gold-bright);
    border-radius: 40px;
    color: #040814;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.directions-gold-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.5);
}

.location-map-column {
    min-height: 400px;
}

.map-frame-box {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--color-gold-primary);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.map-frame-box iframe {
    filter: invert(0.9) hue-rotate(180deg) saturate(0.6) contrast(1.2);
}

/* ===== FOOTER ===== */
.footer-royal {
    padding: 4rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: #040814;
}

.footer-arabic {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-gold-bright);
    margin-bottom: 0.5rem;
}

.footer-names {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--color-ivory);
}

.footer-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-text-secondary);
    margin: 0.4rem 0 1.2rem;
}

.footer-monogram {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gold-primary);
    letter-spacing: 0.2em;
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 20, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(15px);
    animation: fadeIn 0.4s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--color-gold-bright);
    cursor: pointer;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    border: 2px solid var(--color-gold-primary);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
