 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        @font-face {
            font-family: 'fg';
            font-weight: 300;
            src: url('fonts/FoundersGrotesk-Light.otf') format('opentype');
        }

        @font-face {
            font-family: 'fg';
            font-weight: 500;
            src: url('fonts/FoundersGrotesk-Medium.otf') format('opentype');
        }

        @font-face {
            font-family: 'c';
            font-weight: 500;
            src: url('fonts/Canela-Medium.ttf') format('truetype');
        }

        @font-face {
            font-family: 'cb';
            src: url('fonts/Canela-Bold.otf') format('opentype');
        }

        @font-face {
            font-family: 'bl';
            src: url('fonts/FoundersGrotesk-Light.otf') format('opentype');
        }
        
        ::selection{
            background:#000;
            color:white;
        }
        
        ::-moz-selection{
            background:#000;
            color:white;            
        }
        
        :root {
            --primary: #284135;
            --accent: #c3c2c0;
            --light-bg: #f3f2f1;
            --dark-text: #000000;
            --light-text: #999790;
            --transition: cubic-bezier(0.23, 1, 0.32, 1);
        }

        html {
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
            font-size: 16px;
        }

        body {
            font-family: fg;
            font-weight: 300;
            overflow-x: hidden;
            color: var(--dark-text);
            background: var(--light-bg);
            overflow: auto;
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: 0px;     /* Firefox */
        }


        body::-webkit-scrollbar {
        display: none;
        }
       
        /* Navigation */
        #nav {
            position: fixed;
            z-index: 3;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            user-select: none;
        }

        /* Logo */
        #nav-logo-w {
            position: absolute;
            top: 2.77778vw;
            left: 2.77778vw;
        }

        #nav-logo {
            display: table;
            padding: 0.55556vmax 1.11111vmax;
            pointer-events: all;
            color: var(--primary);
            text-decoration: none;
            font-family: c;
            font-size: 0.83333vmax;
            line-height: 1.38889vmax;
        }

        #nav-logo:hover {
            opacity: 0.7;
        }

        /* Date */
        #nav-date-w {
            position: absolute;
            top: 2.77778vw;
            right: 2.61111vw;
        }

        #nav-date {
            display: table;
            padding: 0.55556vmax 1.11111vmax;
            pointer-events: all;
            color: #B18640;
            font-family: c;
            font-size: 1.23333vmax;
            line-height: 1.58889vmax;
            text-align: center;
            text-decoration: none;
        }

        #nav-date:hover {
            opacity: 0.7;
        }

        /* Dodecagon Icon */
        #nav-dodeca-wrap {
            position: absolute;
            bottom: 3.94444vw;
            left: 20.77778vw;
            width: 4.33333vw;
            height: 4.33333vw;
            pointer-events: all;
            cursor: pointer;
        }

        #nav-dodeca-w {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            animation: rotation 10s linear infinite;
            animation-play-state: paused;
        }

        #nav-dodeca-wrap:hover #nav-dodeca-w {
            animation-play-state: running;
        }

        @keyframes rotation {
            0% {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        .nav-dodeca {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            pointer-events: none;
        }

        .nav-dodeca-poly {
            fill: none;
            opacity: 0;
        }

        .nav-dodeca:first-child .nav-dodeca-poly {
            stroke: var(--light-bg);
            stroke-width: 0.5px;
        }

        .nav-dodeca:nth-child(2) .nav-dodeca-poly {
            stroke: var(--light-bg);
            stroke-width: 0.5px;
        }

        .nav-dodeca:last-child {
            opacity: 0.7;
            transform: scaleX(-1);
        }

        .nav-dodeca:last-child .nav-dodeca-poly {
            stroke: var(--accent);
            stroke-width: 1px;
        }

        /* Scroll Indicator */
        #n-br {
            position: absolute;
            bottom: 3.5vw;
            right: 4.11111vw;
            overflow: hidden;
            text-align: right;
        }

        #n-br-scroll-w {
            transform: translate3d(0, -100%, 0);
        }

        #n-br-scroll {
            pointer-events: all;
            cursor: pointer;
            color: var(--light-bg);
            font-family: c;
            font-size: 0.72222vw;
            line-height: 1.38889vw;
            letter-spacing: 0.02778vw;
            font-weight: 500;
        }

        /* Arrow */
        #nav-arrow-wrap {
            position: absolute;
            left: 22.66667vw;
            bottom: 5.77778vw;
            width: 0.55556vw;
            height: 4.27778vw;
            pointer-events: none;
            overflow: hidden;
        }

        #nav-arrow-w {
            transform: translate3d(0, -102%, 0);
        }

        #nav-arrow,
        #nav-arrow-w {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
        }

        #nav-arrow svg {
            fill: var(--primary);
        }

        /* Navigation Links */
        #nav-link-w {
            position: absolute;
            left: 3.38889vw;
            bottom: 2.66667vw;
            transform: rotate(-90deg);
            transform-origin: 0 0;
            list-style: none;
        }

        #nav-link-w li {
            float: left;
            overflow: hidden;
        }

        #nav-link-w li:first-child {
            margin: 0 13.6087vh 0 0;
        }

        #nav-link-w li:nth-child(2),
        #nav-link-w li:nth-child(3),
        #nav-link-w li:nth-child(4) {
            margin: 0 4.43478vh 0 0;
        }

        #nav-link-w li:not(:first-child) .nav-link {
            cursor: pointer;
            pointer-events: all;
            display: inline-block;
            color: #134772;
            text-decoration: none;
        }

        #nav-link-w li:not(:first-child) {
            position: relative;
            overflow: hidden;
        }

        #nav-link-w li:not(:first-child)::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #B18640 0%, #27548A 100%);
            transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        }

        #nav-link-w li:not(:first-child):hover .nav-link {
            color: #27548A;
            transition: color 0.3s ease;
        }

        #nav-link-w li:not(:first-child):hover::after {
            width: 100%;
        }

        .nav-link {
            position: relative;
            display: table;
            color: #134772;
            text-decoration: none;
            font-family: c;
            font-size: 0.87222vmax;
            line-height: 1.38889vmax;
            letter-spacing: 0.02778vmax;
            font-weight: 500;
        }

        /* Progress Bar */
        #nav-prog-w {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 0.33333vw;
            overflow: hidden;
        }

        #nav-prog {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: var(--accent);
            transform: translate3d(0, -100%, 0);
        }
        
.lang-switcher {
    pointer-events: all;
    margin-top: 2vh;
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    display: inline-block;
    z-index: 999;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background:transparent;
}

.lang-button:hover {
    border-color: #667eea;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

.globe-icon {
    font-size: 18px;
}

.lang-text {
    min-width: 80px;
    text-align: left;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.lang-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    line-height:1vw;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.lang-option.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    font-weight: 600;
}

.flag {
    font-size: 14px;
}
        /* Main Content */
        .main-content {
            position: relative;
            width: 100%;
        }

        .section {
            height: 100vh;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: start;
            position: relative;
        }

        .section-content {
            max-width: 800px;
            padding: 2rem;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .section h1 {
            font-family: c;
            font-size: 3vmax;
            margin-bottom: 1vmax;
            letter-spacing: -0.02em;
            color: var(--primary);
        }

        .section h2 {
            font-family: c;
            font-size: 2.5vmax;
            margin-bottom: 1.5vmax;
            color: var(--primary);
        }
        

        .section p {
            font-family: fg;
            font-size: 1.25vmax;
            line-height: 1.8;
            margin: 2vmax 0;
            color: var(--light-text);
        }

        /* Section backgrounds */
        #SD {
            background-image: url('lake.png');
            background-size: cover;
            background-position: center;
            color: rgb(250, 229, 171);
        }

        #SD .section-content h1,
        #SD .section-content p {
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        #03 {
            position: relative;
            background-color: var(--light-bg);
            overflow: hidden;
        }

        #03::before {
            content: "";
            position: absolute;
            inset: 0;
            background-color: var(--light-bg);
            background-image: url('gondola3.png');
            background-repeat: no-repeat;
            background-position: right bottom;
            background-size: auto 70%;
            filter: contrast(120%) brightness(95%);
            z-index: 0;
        }

        #03 > * {
            position: relative;
            z-index: 1;
        }

        #03 .section-content h2,
        #03 .section-content p {
            color: #134772;
        }

        #10 {
            background-color: var(--light-bg);
            color: var(--dark-text);
        }

        #10 .section-content h2,
        #10 .section-content p {
            color: #134772;
        }

        #2026 {
            background-image: url('mountains.png');
            background-size: auto 60%;
            background-repeat: no-repeat;
            background-position: left bottom;
            background-color: var(--light-bg);
        }

        #2026 .section-content h2,
        #2026 .section-content p {
            color: var(--primary);
        }

        .lang-links {
            margin-top: 2rem;
            display: flex;
            gap: 2rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .lang-links a {
            color: var(--primary);
            text-decoration: none;
            padding: 0.8rem 1.5rem;
            border: 2px solid var(--primary);
            transition: all 0.3s var(--transition);
            font-weight: 500;
            font-family: fg;
            display: inline-block;
        }

        .lang-links a:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        #section1 {
            background-image: url('lake.png');
            background-size: cover;
            background-position: center;
            color: rgb(250, 229, 171);
        }

        #section1 .section-content{
            max-width: 80%;
            margin-top: 10vw;
        }

        #section1 .section-content h1,
        #section1 .section-content p {
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            color: #134772;
            font-size: 4vmax;
            font-family: 'c';
            line-height: 1.3;
            margin-top: 5vh;
        }

        #section1 h2 {
            font-size: 10vmax;
            background: -webkit-linear-gradient(65deg, #B18640 35%, #27548A);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 200;
            -webkit-text-stroke: 0.5px #B18640;
        }

        #section2,
        #section3,
        #section4 {
            position: relative;
            background-color: var(--light-bg);
            overflow: hidden;
            align-items: start;
            padding-top: 10rem;
        }

        #section2::before {
            content: "";
            position: absolute;
            inset: 0;
            background-color: var(--light-bg);
            background-image: url('gondola3.png');
            background-repeat: no-repeat;
            background-position: right bottom;
            background-size: auto 70%;
            filter: contrast(120%) brightness(95%);
            z-index: 0;
        }

        #section2 > *,
        #section3 > *,
        #section4 > * {
            position: relative;
            z-index: 1;
        }
        #section2 .section-content{
            max-width: 100%;
            width:100%;
            /* removed min-width:100vh which blocked responsiveness on narrower screens */
            min-width: auto;
        }

        #section2 .section-content h2 {
            font-size: 4vmax;
            color:#B18640;
        }

        #section2 .section-content .section-text{
            width:80%;
            padding-top:1vh;
            text-align:left;
        }

        #section2 .section-content p,
        #section2 .section-content .section-text p {
            color: #B18640;
            font-size: 1.8vmax;
            padding: 2px;
            margin:0;
        }

        #section2 .box-box{
            width:100%;
            text-align:left;
            margin-bottom:3vh;
            /*border:2px solid #b18640;*/
        }

        #section3 {
            background-color: var(--light-bg);
            color: var(--dark-text);
        }

        #section3 .section-content,
        #section4 .section-content {
            max-width: 100%;
            width:100%;
            /* removed min-width:100vh which blocked responsiveness on narrower screens */
            min-width: auto;
        }

        #section3 .section-content h2,
        #section4 .section-content h2 {
            font-size: 4vmax;
            color:#B18640;
        }
        #section3 .section-content p,
        #section4 .section-content p {
            color: #134772;
        }

        #section4 {
            background-image: url('mountains.png');
            background-size: auto 60%;
            background-repeat: no-repeat;
            background-position: left bottom;
            background-color: var(--light-bg);
            z-index: 0 !important;
        }


        @media (max-width: 768px) {
            .section {
                height: auto;
                min-height: 100vh;
            }

            .section h1 {
                font-size: 2rem;
            }

            #section3 .section-content h2,
            #section4 .section-content h2,
            .section h2 {
                font-size: 1.8rem !important;
            }

            .section p,
            .section-text .collapsible,
            .section-text .collapsible-content p {
                font-size: 1.2rem !important;
            }

            .nav-link {
                font-size: 1rem !important;
            }

            #nav-date {
                font-size: 1rem !important;
            }

            #h-s1-0, #h-s1-1, #h-s1-2, #h-s1-3, #h-s1-4, #h-s1-5, #h-s1-6 {
                padding-top: 3rem !important;
            }

            .entitled {
                font-size: 1rem !important;
            }

            .txt-1 {
                font-size: 1.1rem !important;
                line-height: 1.4 !important;
            }
        }
        
        /* --- Collapsible Section (Minimal + Animated Hover Line) --- */
        .section-text input[type="checkbox"] {
        display: none;
        }

        /* The clickable label */
        .section-text .collapsible {
        position: relative;
        display: inline-block;
        cursor: pointer;
        font-family: 'c';
        color: #B18640;
        font-size: 1.33333vmax;
        font-weight: 500;
        text-align: left;
        margin-bottom: 1rem;
        transition: color 0.3s ease;
        }
        
        @media (max-width: 768px) {
            .section-text .collapsible {
                font-size: 1.2rem !important;
            }
        }

        /* Hover color shift */
        .section-text .collapsible:hover {
        color: #27548A;
        }

        /* Animated line */
        .section-text .collapsible::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 0%;
        height: 2px;
        background: linear-gradient(90deg, #B18640 0%, #27548A 100%);
        transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        }

        /* On hover, animate underline */
        .section-text .collapsible:hover::after {
        width: 100%;
        }

        /* Collapsible content animation */
        .section-text .collapsible-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        }

        /* When opened */
        .section-text input[type="checkbox"]:checked ~ .collapsible-content {
        max-height: 350px; /* Adjust if needed */
        }

        /* Text inside collapsible */
        .section-text .collapsible-content p {
        color: #B18640;
        font-size: 1.8rem;
        padding: 2px;
        margin: 0;
        }

        #h-s1-0, #h-s1-1, #h-s1-2, #h-s1-3, #h-s1-4, #h-s1-5, #h-s1-6 {
    position: absolute;
}
#h-s1-0 {
    left: 41.66667vw;
}

.entitled-w {
    position: relative;
    transform: translateZ(0);
}
.entitled {
    color: #134772;
    font-size: 1.2vmax;
    line-height: 1.38889vmax;
    letter-spacing: .02778vmax;
    font-weight: 500;
    transform: rotateX(90deg);
    text-align:left;
}
.line {
    margin: 1vw 0 0;
    width: 1.66667vw;
    height: .22222vw;
    background: #c3c2c0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    font-size:100%;
}
.title-1 {
    margin: 1vw 0 0;
    font-size: 2.66667vw !important;
    line-height: 3vw;
    letter-spacing: -.08333vw;
}
.title-2 {
    margin: 1vw 0 0;
    font-size: 2.36667vw !important;
    line-height: 3vw;
    letter-spacing: -.08333vw;
}
.title-0, .title-1, .title-2 {
    position: relative;
    transform: translateZ(0);
    color: #134772;
    font-family: c;
}
#h-s1-1 {
    top: 14.11111vw;
    left: 62.5vw;
}
#h-s1-2{
    top: 22.11111vw;
    left: 22.5vw;
}
#h-s1-3{
    padding-top: 0.5rem;
    top: 8.1111vw;
    left: 10vw;
    min-width:25vw;
}
#h-s1-4{
    padding-top: 0.5rem;
    top: 8.1111vw;
    right: 12vw;
    min-width:30vw;
}
#h-s1-5{
    top: 8.1111vw;
    left: 10vw;
    min-width:25vw;
}
#h-s1-6{
    top: 8.1111vw;
    right: 12vw;
    min-width:30vw;
}
.txt-1, .txt-2 {
    color: #999790;
    letter-spacing: -.01389vw;
    opacity: 0;
}
    .txt-1 {
        margin: 1vmax 0 0 !important;
        font-size: 1.33333vmax !important;
        line-height: 1.57778vmax !important;
        width: 15.66667vmax !important;
    }
    
    @media (max-width: 768px) {
        .txt-1 {
            width: 100% !important;
        }
    }/* Animated reveal for the h-s1 elements (match Untitled-1 behavior) */
.entitled {
    /* initial state kept (rotated out of view) */
    transform: rotateX(90deg);
    transform-origin: top center;
    backface-visibility: hidden;
    transition: transform 0.6s var(--transition) 0.12s, opacity 0.4s var(--transition) 0.12s;
    opacity: 1;
}

/* When IntersectionObserver applies inline animation style to .section-content, reveal children */
.section-content[style] .entitled {
    transform: rotateX(0deg);
}

.line {
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.6s var(--transition) 0.18s;
}
.section-content[style] .line {
    transform: scaleX(1);
}

.txt-1 {
    opacity: 0;
    transform: translateY(0.6rem);
    transition: opacity 0.6s var(--transition) 0.28s, transform 0.6s var(--transition) 0.28s;
}
.section-content[style] .txt-1 {
    opacity: 1;
    transform: translateY(0);
}

/* RSVP link styling (small, non-invasive) */
.txt-0 {
    display: block;
    margin-top: 1.2rem;
    color: #134772;
    font-weight: 500;
    text-decoration: none;
    pointer-events: all;
}

/* Force visibility for the h-s1 date/invite blocks (no animation required) */
#h-s1-0 .entitled,
#h-s1-1 .entitled,
#h-s1-2 .entitled,
#h-s1-3 .entitled,
#h-s1-4 .entitled,
#h-s1-5 .entitled,
#h-s1-6 .entitled {
    transform: none !important;
    opacity: 1 !important;
}

#h-s1-0 .line,
#h-s1-1 .line,
#h-s1-2 .line,
#h-s1-3 .line,
#h-s1-4 .line,
#h-s1-5 .line,
#h-s1-6 .line {
    transform: scaleX(1) !important;
}

#h-s1-0 .txt-1,
#h-s1-1 .txt-1,
#h-s1-0 .txt-2,
#h-s1-1 .txt-2,
#h-s1-2 .txt-1,
#h-s1-3 .txt-1,
#h-s1-4 .txt-1,
#h-s1-5 .txt-1,
#h-s1-6 .txt-1,
#h-s1-2 .txt-2,
#h-s1-3 .txt-2,
#h-s1-4 .txt-2,
#h-s1-5 .txt-2,
#h-s1-6 .txt-2 {
    opacity: 1 !important;
    transform: none !important;
}

#h-s1-0 .title-1,
#h-s1-0 .title-2,
#h-s1-1 .title-1,
#h-s1-1 .title-2,
#h-s1-2 .title-1,
#h-s1-2 .title-2,
#h-s1-3 .title-1,
#h-s1-3 .title-2,
#h-s1-4 .title-1,
#h-s1-4 .title-2,
#h-s1-5 .title-1,
#h-s1-5 .title-2,
#h-s1-6 .title-1,
#h-s1-6 .title-2 {
    color: #134772;
}
.h-s1-no {
    position: absolute;
    font-family: c;
    font-weight: 700;
    font-size: 22.22222vw;
    line-height: 22.22222vw;
    letter-spacing: -.88889vw;
    -webkit-text-stroke-color: #c3c2c0;
    -webkit-text-stroke-width: 1px;
    color: transparent;
    opacity: .7;
}

li, ul {
    list-style: none;
}
        .progress-bar {
            height: 0px;
            background: rgba(255, 255, 255, 0.2);
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: white;
            transition: width 0.3s ease;
        }

        .form-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            min-height: 600px;
            gap: 0;
        }

        .form-container[data-step="0"] {
            grid-template-columns: 1fr;
        }

        .form-container[data-step="0"] .form-right {
            display: none;
        }

        .form-left {
            border-right: 2px solid #f0f0f0;
            overflow-y: auto;
            position: relative;
        }

        .form-right {
            background: var(--light-bg);
            overflow-y: auto;
            padding: 80px 60px;  /* Changed from 40px 30px */
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
        }

        .details-panel {
            display: none;
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .details-panel.show {
            display: block;
            max-height: 3000px;
        }

        .details-title {
            color: #667eea;
            margin-bottom: 24px;
            font-size: 18px;
            font-weight: 600;
        }

        .form-right.show {
            opacity: 1;
            pointer-events: auto;
        }

        .form-slide {
            display: none;
            padding: 80px 60px;  /* Changed from 40px 30px */
            animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .form-slide.active {
            display: block;
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(100%);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .step-counter {
            text-align: center;
            color: #B18640;
            font-size: 1.3333vw;
            margin-bottom: 2rem;
        }

        .form-group {
            margin-bottom: 2rem;
        }

        .age-range-wrapper {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-top: 1rem;
        }

        .age-range {
            flex: 1;
            height: 16px;
            background: #B18640;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }

        .age-range::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 44px;
            height: 44px;
            background: linear-gradient(90deg, #B18640 0%, #27548A 100%);
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
            transition: all 0.2s;
        }

        .age-range::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
        }

        .age-range::-moz-range-thumb {
            width: 24px;
            height: 24px;

            background: linear-gradient(90deg, #B18640 0%, #27548A 100%);
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
            transition: all 0.2s;
        }

        .age-range::-moz-range-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
        }

        .age-range::-moz-range-track {
            background: transparent;
            border: none;
        }

        .age-display {
            min-width: 3rem;
            padding: 1rem 1rem;
            background: #f0f0f0;
            border: 2px solid #e0e0e0;
            text-align: center;
            font-weight: 600;
            color: #333;
            font-size: 1.1vw;
        }

        label {
            display: block;
            color: #134772;
            font-size: 1.3333vw !important;
            text-align:left;
        }

        input[type="text"],
        input[type="email"],
        input[type="number"],
        select {
            width: 100%;
            padding: 1rem 1.2rem;
            border: 2px solid #e0e0e0;
            font-size: 1vw;
            font-family: inherit;
            transition: border-color 0.2s;
        }

        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="number"]:focus,
        select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .radio-group,
        .checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .radio-option,
        .checkbox-option {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            cursor: pointer;
            transition: all 0.2s;
        }

        .radio-option:hover,
        .checkbox-option:hover {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.05);
        }

        input[type="radio"],
        input[type="checkbox"] {
            margin-right: 12px;
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #667eea;
        }

        .buttons {
            display: flex;
            gap: 12px;
            justify-content: space-between;
            margin-top: 30px;
        }

        button {
            flex: 1;
            padding: 1rem 1.2rem;
            border: none;
            font-size: 1vw;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-prev {
            background: #f0f0f0;
            color: #333;
        }

        .btn-prev:hover {
            background: #e0e0e0;
        }

        .btn-next {
            background: linear-gradient(90deg, #B18640 0%, #27548A 100%);
            color: white;
            flex: 2;
        }

        .btn-next:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .error-message {
            background: #fee;
            color: #c33;
            padding: 1.5rem 2rem;
            margin-bottom: 1rem;
            font-size: 1.333vmax;
            border-left: 4px solid #c33;
        }

        .error-message.hidden {
            display: none;
        }

        .success-message {
            text-align: center;
            padding: 6rem 3rem;
        }

        .success-message h2 {
            color: #667eea;
            font-size: 1.667vw;
            margin: 1.5rem 0;
        }

        .success-message p {
            color: #666;
            line-height: 1.6;
        }

        .checkmark {
            font-size: 48px;
            color: #4caf50;
        }

        .other-input {
            margin-top: 8px;
            padding-left: 30px;
            display: none;
        }

        .other-input.show {
            display: block;
        }

        .details-title {
            color: #667eea;
            margin-bottom: 2rem;
            font-size: 1.667vw;
            font-weight: 600;
        }

        .attendee-dots {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .dot {
            width: 40px;
            height: 40px;
            background: #e0e0e0;
            border: 2px solid transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 14px;
            color: #666;
            transition: all 0.2s;
        }

        .dot:hover {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.1);
        }

        .dot.active {
            background: linear-gradient(90deg, #B18640 0%, #27548A 100%);
            color: white;
            border-color: #667eea;
        }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            animation: fadeIn 0.3s ease;
        }

        .modal-overlay.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .modal-content {
            background: white;
            width: 90%;
            max-width: 1000px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideInUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            position: relative;
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #999;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
            z-index: 1001;
        }

        .modal-close:hover {
            color: #333;
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .overnight-options {
            max-height: 1000px;
            overflow: hidden;
            transition: max-height 0.3s ease, opacity 0.3s ease;
            opacity: 1;
        }

        .overnight-options.hidden {
            max-height: 0;
            opacity: 0;
            display: none;
        }

            .wdg-container {
      min-width:25vw !important;
      margin: 0 auto;
      position: relative;
    }

    .wdg-timeline {
      border: 2px solid #134772;
      padding: 2rem;
      transition: opacity 0.3s ease;
      padding-bottom:0.5rem;
      padding-top:0.5rem;
    }

    .wdg-timeline.wdg-dimmed {
      opacity: 0.3;
    }

    .wdg-timeline-header {
      text-align: center;
    }

    .wdg-ornament {
      font-size: 1.5rem;
      color: #134772;
    }

    .wdg-timeline-header h2 {
      font-size: 1.75rem;
      color: #134772;
      letter-spacing: 0.25rem;
      margin: 0.5rem 0;
      font-weight: normal;
    }

    .divider {
      width: 4rem;
      height: 4px;
      background-color: #134772;
      margin: 0.5rem auto 0;
    }

    /* Timeline Line */
    .wdg-timeline-line {
      position: relative;
    }

    .wdg-timeline-line::before {
      content: '';
      position: absolute;
      left: 2rem;
      top: 0;
      bottom: 0;
      width: 4px;
      background-color: #B18640;
    }

    .wdg-events {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    #w25, #w25a {
        width: 25vw !important;
    }

    .wdg-event-item {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      padding: 1rem 0 1rem 5rem;
      position: relative;
      cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23B18640"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') 12 12, auto;
      transition: background-image 0.3s ease, opacity 0.3s ease;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .wdg-event-item:hover {
      opacity: 0.85;
      background-color: rgba(19, 71, 114, 0.05);
    }

    /* Timeline Dot and Icon Container */
    .wdg-event-icon-wrapper {
      position: absolute;
      left: 0.5rem;
      top: 0.5rem;
      width: 3rem;
      height: 3rem;
      background-color: #B18640;
      border: 4px solid #f3f2f1;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      flex-shrink: 0;
    }

    .wdg-event-icon {
      font-size: 1.25rem;
      color: #134772;
    }

    .wdg-event-content {
      flex: 1;
      text-align:left;
      padding-top:0.6rem;
    }

    .wdg-event-name {
      font-size: 1rem;
      color: #134772;
      letter-spacing: 0.125rem;
      text-transform: uppercase;
      font-weight: bold;
      margin-bottom: 0rem;
    }

    .wdg-event-time {
      font-size: 0.75rem;
      color: #B18640;
      letter-spacing: 0.1rem;
      text-transform: uppercase;
    }

    .wdg-timeline-footer {
      text-align: center;
      font-size: 1.5rem;
      color: #134772;
      margin-bottom: 0rem;
      padding-bottom:0rem;
    }

    /* Overlay */
    .wdg-overlay {
      position: fixed;
      inset: 0;
      background-color: rgba(0, 0, 0, 0);
      pointer-events: none;
      transition: background-color 0.3s ease;
      z-index: 40;
    }

    .wdg-overlay.active {
      background-color: rgba(0, 0, 0, 0.4);
      pointer-events: auto;
    }

    /* Modal */
    .wdg-modal-container {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      visibility: hidden;
      transition: visibility 0.3s ease;
      z-index: 50;
      padding: 1rem;
    }

    .wdg-modal-container.active {
      visibility: visible;
      pointer-events: auto;
    }

    .wdg-modal {
      background-color: #f3f2f1;
      border: 2px solid #134772;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
      width: 100%;
      max-width: 600px;
      overflow: hidden;
      animation: openModal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes openModal {
      0% {
        clip-path: inset(50% 50% 50% 50%);
        opacity: 0;
      }
      100% {
        clip-path: inset(0% 0% 0% 0%);
        opacity: 1;
      }
    }

    .wdg-modal-image {
      position: relative;
      height: 320px;
      overflow: hidden;
    }

    .wdg-modal-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .wdg-modal-gradient {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, #f3f2f1, rgba(243, 242, 241, 0.3), transparent);
    }

    .wdg-modal-content {
      padding: 2.5rem;
      position: relative;
    }

    .wdg-modal-ornament-top {
      font-size: 1.5rem;
      color: #134772;
      margin-bottom: 1rem;
    }

    .wdg-modal-title {
      font-size: 2.5rem;
      color: #B18640;
      margin-bottom: 1.5rem;
      font-weight: normal;
    }

    .wdg-modal-divider {
      width: 4rem;
      height: 4px;
      background-color: #B18640;
      margin-bottom: 1.5rem;
    }

    .wdg-modal-description {
      font-size: 1.125rem;
      color: #134772;
      line-height: 1.6;
    }

    .wdg-modal-ornament-bottom {
      font-size: 1.25rem;
      color: #134772;
      margin-top: 2rem;
    }

    .wdg-close-btn {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 2rem;
      color: #134772;
      cursor: pointer;
      padding: 0;
      width: 2.5rem;
      height: 2.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s;
      z-index: 100;
    }

    .wdg-close-btn:hover {
      transform: scale(1.2);
    }

    /* Individual event preview backgrounds */
    .wdg-event-item:nth-child(1) {
 background-image: url('');
    }

    .wdg-event-item:nth-child(1):hover {
      background-image: url('');
    }

    .wdg-event-item:nth-child(2) {
      background-image: 
        linear-gradient(rgba(243, 242, 241, 0.5), rgba(243, 242, 241, 0.5)),
        url('ceremony.jpg');
        background-size: cover; /* or contain */
        background-position: center; /* focus on the center of the image */
        background-repeat: no-repeat;
    }

    .wdg-event-item:nth-child(2):hover {
      background-image: 
        url('ceremony.jpg');
        background-size: cover; /* or contain */
        background-position: center; /* focus on the center of the image */
        background-repeat: no-repeat;
    }

    .wdg-event-item:nth-child(3) {
 background-image: url('');
    }

    .wdg-event-item:nth-child(3):hover {
      background-image: url('');
    }

    .wdg-event-item:nth-child(4) {
     background-image: 
        linear-gradient(rgba(243, 242, 241, 0.5), rgba(243, 242, 241, 0.5)),
        url('dinner.jpeg');
        background-size: cover; /* or contain */
        background-position: center; /* focus on the center of the image */
        background-repeat: no-repeat;
    }

    .wdg-event-item:nth-child(4):hover {
     background-image: 
        url('dinner.jpeg');
        background-size: cover; /* or contain */
        background-position: center; /* focus on the center of the image */
        background-repeat: no-repeat;
    }

    .wdg-event-item:nth-child(5) {
         background-image: url('');
    }

    .wdg-event-item:nth-child(5):hover {
      background-image: url('');
    }

    .wdg-event-item:nth-child(6) {
     background-image: 
        linear-gradient(rgba(243, 242, 241, 0.5), rgba(243, 242, 241, 0.5)),
        url('cake.jpeg');
        background-size: cover; /* or contain */
        background-position: center; /* focus on the center of the image */
        background-repeat: no-repeat;
    }

    .wdg-event-item:nth-child(6):hover {
     background-image: 
        url('cake.jpeg');
        background-size: cover; /* or contain */
        background-position: center; /* focus on the center of the image */
        background-repeat: no-repeat;
    }

    @media (max-width: 768px) {
      body {
        padding: 1rem;
      }

      .wdg-timeline {
        padding: 1.5rem;
      }

      .wdg-timeline-header h2 {
        font-size: 1.5rem;
      }

      .wdg-modal-title {
        font-size: 2rem;
      }

      .wdg-modal-content {
        padding: 1.5rem;
      }

      .wdg-modal-image {
        height: 250px;
      }

      .wdg-event-item {
        padding: 1.25rem 0 1.25rem 4rem;
      }

      .wdg-event-icon-wrapper {
        width: 2.5rem;
        height: 2.5rem;
        left: 0.375rem;
      }

      .wdg-event-icon {
        font-size: 1rem;
        width:1.8rem;
      }

      .wdg-timeline-line::before {
        left: 1.5rem;
      }
    }

    @media (max-width: 480px) {
      body {
        padding: 0.75rem;
      }

      .wdg-timeline {
        padding: 1rem;
        border-width: 2px;
      }

      .wdg-timeline-header h2 {
        font-size: 1.25rem;
        letter-spacing: 0.15rem;
      }

      .wdg-event-item {
        padding: 1rem 0 1rem 3.5rem;
        gap: 1rem;
      }

      .wdg-modal-content {
        padding: 1rem;
      }

      .wdg-modal-title {
        font-size: 1.5rem;
      }

      .wdg-modal-description {
        font-size: 1rem;
      }

      .wdg-modal-image {
        height: 200px;
      }

      .wdg-close-btn {
        width: 2rem;
        height: 2rem;
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
      }

      .wdg-event-icon-wrapper {
        width: 2.25rem;
        height: 2.25rem;
      }

      .wdg-event-icon {
        font-size: 0.9rem;
      }

      .wdg-timeline-line::before {
        left: 1.2rem;
      }
    }

/* ----------------------
   Responsive overrides
   - Adds fluid root font-size, clamped typography
   - Breakpoint tweaks for nav, forms, timeline and widgets
   ---------------------- */

:root {
    /* fluid base font size: stays between 14px and 18px */
    --fluid-font-size: clamp(14px, 1.2vw + 11px, 18px);
}

/* apply fluid base font-size to html so rems scale nicely */
html {
    font-size: var(--fluid-font-size);
}

/* fluid typographic scales for sections */
.section h1 {
    font-size: clamp(1.6rem, 2.8vw, 3.2rem);
}

.section h2 {
    font-size: clamp(1.4rem, 2.2vw, 2.8rem);
}

.section p {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
}

/* Navigation — scale paddings and fonts without rebuilding the whole layout */
#nav-logo {
    font-size: clamp(0.7rem, 0.9vw, 1rem);
    padding: clamp(6px, 0.4vw, 10px) clamp(10px, 0.8vw, 16px);
}

#nav-date {
    font-size: clamp(0.9rem, 1.3vw, 1.25rem);
    padding: clamp(6px, 0.4vw, 10px) clamp(10px, 0.8vw, 16px);
}

#nav-dodeca-wrap {
    width: clamp(36px, 4.5vw, 68px);
    height: clamp(36px, 4.5vw, 68px);
}

/* make large rotated nav links switch to a horizontal row on smaller screens */
@media (max-width: 992px) {
    #nav { height: auto; pointer-events: all; }
    #nav-link-w {
        transform: none; /* remove rotate(-90deg) */
        left: 1rem;
        bottom: 1rem;
        display: flex;
        gap: 1rem;
        align-items: center;
    }
    #nav-link-w li { float: none; margin: 0; }
    .nav-link { font-size: 0.95rem; }
    #nav-arrow-wrap, #nav-dodeca-wrap { display: none; }
}

/* Form container and right panel — stack on medium/small screens */
@media (max-width: 992px) {
    .form-container { grid-template-columns: 1fr; min-height: auto; }
    .form-left { border-right: none; padding: 1.5rem; }
    .form-right { padding: 1.5rem; display: block; order: 2; opacity: 1; pointer-events: auto; }
    .form-slide { padding: 1rem; }
}

/* Compact tweaks for tablets */
@media (max-width: 768px) {
    .lang-switcher { bottom: 1rem; right: 1rem; }
    .wdg-container { min-width: 100% !important; padding: 0 1rem; }
    .wdg-timeline { padding: 1rem; }
    .section-content { padding: 1.5rem; max-width: 95%; }
    #section1 .section-content h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
    #section1 .section-content h2 { font-size: clamp(3rem, 8vw, 6rem); }
}

/* Small phones — avoid tiny text and hide complex ornaments */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .nav-dodeca-wrap, #nav-arrow-wrap { display: none; }
    #nav-date, #nav-logo { padding: .3rem .6rem; }
    .lang-text { min-width: auto; }
    .step-counter { font-size: 1rem; }
    .form-right, .form-left { padding: 1rem; }
    .buttons button { font-size: .95rem; padding: .8rem; }
    .wdg-event-name { font-size: .95rem; }
}

/* Prevent runaway scaling on very large screens */
@media (min-width: 1600px) {
    html { font-size: 18px; }
}

/* Make all h-s* blocks stack to full width on smaller screens
   - Matches ids that start with "h-s" (e.g. #h-s1-0, #h-s1-1, ...)
   - Removes absolute positioning, forces full width and readable typography
*/
@media (max-width: 992px) {
    /* container adjustments */
    [id^="h-s"] {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: auto !important;
        padding: 1rem 1.25rem !important;
        display: block !important;
    }

    /* make internal pieces flow normally and be readable */
    [id^="h-s"] .entitled,
    [id^="h-s"] .title-0,
    [id^="h-s"] .title-1,
    [id^="h-s"] .title-2,
    [id^="h-s"] .txt-1,
    [id^="h-s"] .txt-2,
    [id^="h-s"] .line {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
    }

    [id^="h-s"] .title-1 {
        font-size: clamp(1.4rem, 5.4vw, 2.4rem) !important;
        line-height: 1.15 !important;
        margin-top: 0.5rem !important;
    }

    [id^="h-s"] .title-2 {
        font-size: clamp(1.4rem, 5.4vw, 2.4rem) !important;
        line-height: 1.15 !important;
        margin-top: 0.5rem !important;
    }

    [id^="h-s"] .entitled {
        font-size: clamp(0.9rem, 2.4vw, 1.2rem) !important;
        transform: none !important;
    }

    [id^="h-s"] .txt-1 {
        width: 100% !important;
        font-size: clamp(0.95rem, 1.6vw, 1.1rem) !important;
        margin-top: 0.5rem !important;
    }

    /* hide overly-large decorative number that uses vw sizing */
    .h-s1-no {
        display: none !important;
    }
}

/* Further tighten typography and spacing on very small phones */
@media (max-width: 480px) {
    [id^="h-s"] {
        padding: 0.6rem 0.9rem !important;
    }

    [id^="h-s"] .title-1 {
        font-size: clamp(1.1rem, 7.5vw, 1.8rem) !important;
    }

    [id^="h-s"] .title-2 {
        font-size: clamp(1.1rem, 7.5vw, 1.8rem) !important;
    }

    [id^="h-s"] .entitled {
        font-size: 1rem !important;
    }

    [id^="h-s"] .txt-1 {
        font-size: 0.95rem !important;
    }
}

/* Tweak #section1 hero typography on smaller screens so it doesn't dominate */
@media (max-width: 992px) {
    #section1 .section-content h1,
    #section1 .section-content p {
        font-size: clamp(1.6rem, 4.5vw, 2.6rem) !important;
        line-height: 1.2 !important;
    }
    /* make sure the giant gradient H2 also scales down */
    #section1 h2 {
        font-size: clamp(3rem, 8vw, 6rem) !important;
    }
}

@media (max-width: 480px) {
    #section1 .section-content h1,
    #section1 .section-content p {
        font-size: clamp(1.2rem, 5.5vw, 1.8rem) !important;
        line-height: 1.15 !important;
    }
    #section1 h2 {
        font-size: clamp(2.2rem, 12vw, 4rem) !important;
    }
}

/* Fix nav-date overlapping by increasing its size and moving it into safer position on small screens */
@media (max-width: 992px) {
    #nav-date-w {
        position: absolute;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 1000;
    }
    #nav-date {
        font-size: clamp(1rem, 2.4vw, 1.4rem) !important;
        padding: 0.45rem 0.75rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 480px) {
    #nav-date {
        font-size: clamp(1.05rem, 3.5vw, 1.25rem) !important;
        padding: 0.4rem 0.6rem !important;
    }
}

/* Increase form input sizes for touch devices */
@media (max-width: 992px) {
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select {
        font-size: 1rem !important;
        padding: 0.9rem 1rem !important;
    }
}

@media (max-width: 480px) {
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select {
        font-size: 1rem !important;
        padding: 0.9rem 0.9rem !important;
    }
}

/* Ensure txt-1 line-height is large enough to prevent overlap with font-size changes */
[id^="h-s"] .txt-1,
.txt-1 {
    line-height: 1.5 !important;
}

@media (max-width: 480px) {
    [id^="h-s"] .txt-1,
    .txt-1 {
        line-height: 1.45 !important;
    }
}


/* Ensure sections span the full viewport width, but constrain h-s blocks and similar components
   to a comfortable max width (90%) on larger screens and keep them centered.
*/
.section {
    width: 100% !important;
}

/* Desktop/tablet default: keep h-s blocks constrained and centered so they don't stretch edge-to-edge */
[id^="h-s"], .h-s1, .h-s2 {
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* keep previous small-screen rule that makes them full width */
@media (max-width: 992px) {
    [id^="h-s"], .h-s1, .h-s2 {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Portrait (width < height) — stack h-s blocks, scale fonts and hide nav
   Use orientation: portrait so this triggers whenever the viewport is taller than wide.
*/
@media (orientation: portrait) {
    /* keep nav container but present a compact header: show logo (fixed top-left)
       and a compact nav/hamburger (top-right). Hide decorative items. */
    /* hide decorative/large nav pieces that conflict in portrait */
    #nav-dodeca-wrap,
    #nav-arrow-wrap {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* ensure the main nav container doesn't cover the whole viewport */
    #nav {
        height: auto !important;
        pointer-events: none; /* keep it mostly passive */
    }

    #nav-date {
        font-size: 2.2vmax !important;
        line-height: 2.4vmax !important;
    }

    /* keep the logo visible and fixed at the top-left */
    #nav-logo-w {
        top: 4vmax !important;
        left: 4vmax !important;
        transform: none !important;
        z-index: 1100 !important;
        pointer-events: all !important;
        visibility: visible !important;
        display: block !important;
    }
    #nav-date-w {
        top: 4vmax !important;
        right: 4vmax !important;
    }
    /* hide the rotated nav list on small/portrait view — keep hamburger if present */
    #nav-link-w {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* keep individual .nav-link hidden as well (if any remain) — hamburger should be used instead */
    .nav-link {
        display: none !important;
    }

    /* Force h-s blocks to become normal stacked flow and full width */
    [id^="h-s"] {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: auto !important;
        padding: 1rem 1.25rem !important;
        display: block !important;
    }

    /* Internal pieces: use same or larger vmax sizing in portrait for better readability */
    [id^="h-s"] .title-1 {
        font-size: 3vmax !important; /* match or exceed normal setup */
        line-height: 1.15 !important;
        margin-top: 0.5vmax !important;
    }
    [id^="h-s"] .title-2 {
        font-size: 3vmax !important; /* match or exceed normal setup */
        line-height: 1.15 !important;
        margin-top: 0.5vmax !important;
    }

    [id^="h-s"] .entitled {
        font-size: 2.4vmax !important; /* slightly larger than normal 1.2vmax */
        transform: none !important;
        margin-top: 5vmax !important;
    }

    iframe {
        width:100% !important;
    }

    .lang-button, .lang-option {
        font-size: 1.2vmax !important; /* larger than normal 1.2vmax */
    }
    .lang-option {
        padding: 1.2vmax 0.8vmax !important;
    }
    [id^="h-s"] .txt-1 {
        width: 100% !important;
        font-size: 2.1vmax !important; /* larger than normal 1.33333vmax */
        margin-top: 0.5vmax !important;
        line-height: 1.45 !important;
    }
    label, .step-counter, .details-title {
        font-size: 2.1vmax !important; /* larger than normal 1.2vmax */
    }
    /* Scale section headings to be more prominent in portrait */
    #section3 .section-content h2 {
        font-size: 4vmax !important; /* larger than normal 2.5vmax */
        
    }

    #section4 .section-content h2 {
        font-size: 4vmax !important; /* larger than normal 2.5vmax */
      
    }

    #wdg-eventDescription {
        font-size: 1.5vmax !important; /* larger than normal 1.125vmax */
    }

    .section h2 {
        font-size: 8vmax !important; /* larger than normal 2.5vmax */
    }

    /* Collapsible and paragraph sizing in portrait */
    .section p{
        font-size: 3.4vmax !important;
    }

    .section-text .collapsible,
    .section-text .collapsible-content p {
        font-size: 2.4vmax !important; /* larger than normal 1.25vmax for better readability */
    }

    input[type="text"], input[type="email"], input[type="number"], select {
        font-size: 2vmax !important; /* larger than normal 1.0vmax */
    }

    button {
        font-size: 2.4vmax !important; /* larger than normal 1.0vmax */
    }
    .txt-0 {
        font-size: 2.2vmax !important; /* larger than normal 1.2vmax */
    }  

    /* ensure decorative large numbers are hidden in portrait */
    .h-s1-no { display: none !important; }

    h2 .title-1{
        font-size: 4vmax !important;
        margin-top:0vmax !important;
    }

    h2 .title-2{
        font-size: 4vmax !important;
        margin-top:0vmax !important;
    }
    /* tighten gap for h-s1 blocks when portrait */
    #h-s1-0, #h-s1-1, #h-s1-2, #h-s1-3, #h-s1-4, #h-s1-5, #h-s1-6 {
        padding-top: 1.5rem !important;
    }

    #nav {
        position:absolute !important;
    }

    .wdg-event-icon-wrapper {
        top:0.75vmax !important;
    }

    .wdg-event-name {
        font-size: 1.4vmax !important;
    }
        #w25, #w25a {
        width: 100% !important;
    }
    .modal-content {
        max-width: 95% !important;
    }
    
    input[type="radio"], input[type="checkbox"] {
    width: 1vmax !important;
    height: 1vmax !important;
    margin-right: 1vmax !important;
    margin-left: 1vmax !important;
    vertical-align: middle !important;
    transform:scale(1.5) !important;
    }
    .radio-option, .checkbox-option {
    padding: 0.5vmax 0.5vmax !important;

    }
    .dot, .age-display {
        width: 5rem !important;
        height: 5rem !important;
        font-size: 1.5vmax !important;
    }
    .wdg-modal {
        max-width: 800px !important;
    }
}

