/* ==========================================================================
   JOBITRA TEMPLATE #3: WESTERN EDITORIAL BIRTHDAY INVITATION
   Style Sheet - High-End Fashion & Magazine Aesthetic
   ========================================================================== */

/* 1. ROOT VARIABLES & THEME PRESETS */
:root {
    /* Default Western Editorial Theme: Terracotta & Champagne */
    --bg-page: #F4F1EA;
    --bg-container: #FAF8F5;
    --bg-card: #FFFFFF;
    --bg-card-alt: #F7F4EF;

    --text-main: #242424;
    --text-secondary: #6F6F6F;
    --text-muted: #9E9E9E;

    --border-color: #EAE4DD;
    --border-dark: #242424;

    --accent: #F5EBE6;
    --accent-secondary: #FFD6C2;
    --accent-vibrant: #E08E79;
    --accent-highlight: #FFF0A8;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(36, 36, 36, 0.05);
    --shadow-polaroid: 0 12px 28px rgba(0, 0, 0, 0.07);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* AGE DYNAMIC THEME PRESETS */
.theme-peach-pink {
    --accent: #F6C7D7;
    --accent-secondary: #FFD6C2;
    --accent-vibrant: #E96B70;
    --accent-highlight: #FFF0A8;
}

.theme-butter-coral {
    --accent: #FFF0A8;
    --accent-secondary: #FFD6C2;
    --accent-vibrant: #F28C8C;
    --accent-highlight: #F5B26B;
}

.theme-lavender-blue {
    --accent: #DED2F5;
    --accent-secondary: #CFE8F7;
    --accent-vibrant: #7C73E6;
    --accent-highlight: #F6C7D7;
}

.theme-mint-sage {
    --accent: #D9F0E3;
    --accent-secondary: #CFE8F7;
    --accent-vibrant: #4EA685;
    --accent-highlight: #FFF0A8;
}

.theme-terracotta-champagne {
    --accent: #F5EBE6;
    --accent-secondary: #FFD6C2;
    --accent-vibrant: #E08E79;
    --accent-highlight: #FFF0A8;
}

.theme-rose-ivory {
    --accent: #FADCD9;
    --accent-secondary: #F8AFA6;
    --accent-vibrant: #E05A47;
    --accent-highlight: #FFF0A8;
}

/* 2. BASE RESET & BODY SETUP */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* 3. DESKTOP CENTERED WRAPPER & MOBILE VIEWPORT CONTAINER */
.invitation-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 15px;
    background-color: var(--bg-page);
}

.mobile-viewport {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-container);
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 12px rgba(255, 255, 255, 0.6);
    overflow: hidden;
    position: relative;
    padding: 24px 20px 40px 20px;
}

@media (max-width: 520px) {
    .invitation-wrapper {
        padding: 0;
        background-color: var(--bg-container);
    }

    .mobile-viewport {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 20px 16px 36px 16px;
    }
}

/* 4. DECORATIVE SVG LAYER */
.hero-decorations-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.decor-shape {
    position: absolute;
    color: var(--accent-vibrant);
    opacity: 0.25;
    animation: floatSlow 6s ease-in-out infinite alternate;
}

.shape-star-1 {
    top: 40px;
    right: 24px;
    width: 28px;
    height: 28px;
}

.shape-star-2 {
    top: 360px;
    left: 16px;
    width: 22px;
    height: 22px;
    animation-delay: -3s;
}

.shape-blob-1 {
    top: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.shape-circle-1 {
    top: 500px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: var(--accent-secondary);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.5;
}

.shape-sparkle-1 {
    top: 140px;
    left: 20px;
    font-size: 20px;
}

.shape-sparkle-2 {
    top: 680px;
    right: 30px;
    font-size: 24px;
}

@keyframes floatSlow {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-12px) rotate(8deg);
    }
}

/* 5. HERO SECTION DESIGN (EDITORIAL MAGAZINE STYLE) */
.hero-section {
    position: relative;
    padding-top: 16px;
    padding-bottom: 32px;
    text-align: center;
    z-index: 2;
}

.hero-oversized-age {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 160px;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-vibrant);
    opacity: 0.08;
    user-select: none;
    pointer-events: none;
    z-index: -1;
    letter-spacing: -0.05em;
}

.hero-header-tagline {
    margin-bottom: 12px;
}

.editorial-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-main);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-dark);
    background-color: var(--bg-card);
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-main-title .title-line-1 {
    display: block;
    font-style: italic;
    font-weight: 400;
}

.hero-main-title .title-line-2 {
    display: block;
    font-weight: 900;
    color: var(--text-main);
}

/* PHOTO FRAME STYLES */
.hero-image-wrapper {
    position: relative;
    margin: 0 auto 24px auto;
    width: 86%;
    max-width: 320px;
}

.hero-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-smooth);
}

.hero-photo-frame.arch-frame {
    border-radius: 160px 160px 24px 24px;
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-photo-frame img {
    transform: scale(1.04);
}

/* STICKER BADGE */
.hero-sticker-badge {
    position: absolute;
    bottom: -12px;
    right: -10px;
    background-color: var(--accent-highlight);
    color: var(--text-main);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: rotate(4deg);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticker-star {
    color: var(--accent-vibrant);
}

.hero-person-block {
    margin-bottom: 20px;
}

.person-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-main);
    line-height: 1.1;
}

.person-age-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-card);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.dot-separator {
    color: var(--accent-vibrant);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(6px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* 6. EDITORIAL SECTIONS COMMON LAYOUT */
.editorial-section {
    position: relative;
    margin-top: 36px;
    z-index: 2;
}

.section-header {
    margin-bottom: 20px;
}

.section-header.align-center {
    text-align: center;
}

.section-header.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-vibrant);
    margin-bottom: 4px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 1.1;
}

/* 7. CARDS & EDITORIAL STYLES */
.editorial-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.editorial-quote {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-main);
    margin: 16px 0;
}

.author-signature {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* 8. COUNTDOWN SECTION */
.countdown-editorial-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--bg-card);
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.cd-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-top: 4px;
}

.cd-divider {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-vibrant);
    opacity: 0.5;
}

.countdown-finished-msg {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-vibrant);
    margin-top: 12px;
}

/* 9. POLAROID STACK SECTION */
.polaroid-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.polaroid-card {
    background-color: #FFFFFF;
    padding: 14px 14px 20px 14px;
    border-radius: 4px;
    box-shadow: var(--shadow-polaroid);
    border: 1px solid #EFECE6;
    transition: transform var(--transition-smooth);
    position: relative;
}

.polaroid-card:nth-child(odd) {
    transform: rotate(-1.8deg);
}

.polaroid-card:nth-child(even) {
    transform: rotate(1.8deg);
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 5;
}

.polaroid-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--bg-card-alt);
    border-radius: 2px;
}

.polaroid-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-caption-block {
    margin-top: 12px;
    text-align: center;
}

.polaroid-year-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent-vibrant);
}

.polaroid-caption-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-main);
    margin-top: 2px;
}

/* 10. MASONRY GALLERY */
.gallery-count-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.editorial-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-grid-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.gallery-grid-item:nth-child(3n + 1) {
    grid-row: span 2;
    aspect-ratio: 1/2;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-grid-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(36, 36, 36, 0.6) 0%, transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    transition: opacity var(--transition-fast);
}

.gallery-grid-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-caption {
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
}

/* 11. FAVORITE THINGS (KIDS / TEENS) */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.favorite-card {
    background-color: var(--bg-card);
    padding: 18px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.fav-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.fav-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.fav-value {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
}

/* 12. LIFE CHAPTERS TIMELINE (MILESTONES 40+) */
.chapters-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
}

.chapters-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 6px;
    width: 2px;
    background-color: var(--border-color);
}

.chapter-node {
    position: relative;
    background-color: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.chapter-node::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-vibrant);
    border: 2px solid var(--bg-container);
}

.chapter-year {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent-vibrant);
}

.chapter-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.chapter-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 13. SCHEDULE TIMELINE ("THE NIGHT") */
.schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.schedule-time-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-main);
    background-color: var(--accent);
    padding: 8px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.schedule-details {
    flex: 1;
}

.schedule-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.schedule-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 14. DRESS CODE & PLAYLIST */
.dress-code-card {
    background-color: var(--accent);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
}

.dress-code-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.dress-code-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 4px 0;
}

.dress-code-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.playlist-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--bg-card);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.track-number {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-vibrant);
    width: 24px;
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.track-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* 15. FAMILY & CREW SECTION */
.family-avatars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.family-member-card {
    background-color: var(--bg-card);
    padding: 16px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.family-avatar-initial {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
}

.family-relation {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent-vibrant);
    text-transform: uppercase;
}

.family-names {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

/* 16. EVENT DETAILS ("THE PLAN") */
.event-details-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 28px 20px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.event-detail-row {
    margin: 12px 0;
}

.event-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--accent-vibrant);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.event-value-large {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.event-value-medium {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.event-address-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.event-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 16px 0;
}

.event-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* BUTTON STYLES */
.btn-editorial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    width: 100%;
}

.btn-primary {
    background-color: var(--text-main);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--bg-card-alt);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* 17. GIFT SECTION */
.gift-editorial-card {
    background-color: var(--bg-card-alt);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-dark);
    padding: 24px;
    text-align: center;
}

.gift-headline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.gift-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-wishlist-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent-vibrant);
    text-decoration: underline;
}

/* 18. RSVP FORM */
.rsvp-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 28px 20px;
    box-shadow: var(--shadow-card);
}

.rsvp-options-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.rsvp-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card-alt);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rsvp-option-btn.active {
    background-color: var(--accent);
    border-color: var(--border-dark);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card-alt);
    color: var(--text-main);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    border-color: var(--text-main);
    background-color: #FFFFFF;
}

.form-textarea {
    resize: vertical;
}

.guest-counter-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background-color: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 16px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: #FFFFFF;
    color: var(--text-main);
    font-weight: 800;
    cursor: pointer;
}

.counter-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
}

/* RSVP SUCCESS BOX */
.rsvp-success-box {
    display: none;
    text-align: center;
    padding: 20px 10px;
}

.rsvp-success-box.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
}

.success-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 8px 0 20px 0;
}

/* 19. FINAL CTA & FOOTER */
.final-cta-card {
    text-align: center;
    padding: 32px 16px;
}

.final-headline {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 4px 0;
}

.final-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.share-buttons-group {
    display: flex;
    justify-content: center;
}

.editorial-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.jobitra-branding {
    margin-top: 6px;
    font-weight: 600;

    .jobitra-branding strong {
        color: var(--text-main);
    }

    /* 20. FLOATING MUSIC BUTTON */
    .music-fab {
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background-color: var(--accent-secondary);
        color: var(--text-main);
        border: 1.5px solid var(--text-main);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 999;
        transition: transform var(--transition-fast);
    }

    .music-fab:hover {
        transform: scale(1.08);
    }

    .music-fab.playing .music-pulse {
        position: absolute;
        inset: -6px;
        border-radius: 50%;
        border: 1.5px solid var(--accent-vibrant);
        animation: pulseRing 1.8s infinite;
    }

    @keyframes pulseRing {
        0% {
            transform: scale(0.9);
            opacity: 1;
        }

        100% {
            transform: scale(1.4);
            opacity: 0;
        }
    }

    /* 21. DEMO PRESET SWITCHER WIDGET */
    .demo-widget {
        position: fixed;
        bottom: 24px;
        left: 24px;
        z-index: 999;
    }

    .demo-widget-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background-color: var(--text-main);
        color: #FFFFFF;
        padding: 10px 16px;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        border: none;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .demo-panel {
        display: none;
        position: absolute;
        bottom: 54px;
        left: 0;
        width: 300px;
        background-color: #FFFFFF;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
        padding: 16px;
    }

    .demo-panel.active {
        display: block;
        animation: fadeIn 0.2s ease;
    }

    .demo-panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.82rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-color);
    }

    .btn-close-demo {
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .demo-preset-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-height: 260px;
        overflow-y: auto;
    }

    .preset-btn {
        padding: 8px 10px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color);
        background-color: var(--bg-card-alt);
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--text-main);
        cursor: pointer;
        text-align: left;
    }

    .preset-btn.active,
    .preset-btn:hover {
        background-color: var(--accent);
        border-color: var(--border-dark);
    }

    /* 22. LIGHTBOX MODAL */
    .lightbox-modal {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(36, 36, 36, 0.92);
        z-index: 10000;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(8px);
    }

    .lightbox-modal.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .lightbox-content {
        max-width: 90%;
        max-height: 85vh;
        text-align: center;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 75vh;
        border-radius: var(--radius-md);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        margin: 0 auto;
    }

    .lightbox-caption {
        color: #FFFFFF;
        font-family: var(--font-heading);
        font-size: 1.1rem;
        margin-top: 12px;
    }

    .lightbox-close {
        position: absolute;
        top: 24px;
        right: 24px;
        background: none;
        border: none;
        color: #FFFFFF;
        font-size: 2.5rem;
        cursor: pointer;
    }

    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #FFFFFF;
        font-size: 3rem;
        padding: 8px 16px;
        border-radius: 50%;
        cursor: pointer;
    }

    .nav-prev {
        left: 24px;
    }

    .nav-next {
        right: 24px;
    }

    /* 23. CONFETTI CANVAS */
    #confetti-canvas {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 9999;
    }

    /* 24. SCROLL REVEAL OBSERVER ANIMATION */
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @media (prefers-reduced-motion: reduce) {

        *,
        ::before,
        ::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
}