@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior:unset;
    height: 100%;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: #114639; /* Dark green */
    color: white;
    overflow-x: hidden;
}

button {
    font-family: 'Barlow', sans-serif;
}

/* Fixed Sticker Styles */
.fixed-sticker {
    position: fixed;
    left: 0;
    z-index: 1000;
    pointer-events: none;
}

@media (max-width: 767px) {
    .fixed-sticker {
        top: 100px;
        width: 25vw;
    }
}

@media (min-width: 768px) {
    .fixed-sticker {
        top: 25vh;
        width: 18vw;
    }
}

/* Container for mobile landscape mode */
.content {
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    display: none; /* Initial state */
}

/* Landscape mode for mobile only */
@media (orientation: landscape) and (max-width: 767px) {
    .content {
        max-width: calc(100vh * 0.5625);
        margin: 0 auto;
        height: 100vh;
    }

    .background-video, .background-video2 {
        width: 100% !important;
        height: 100vh !important;
        object-fit: contain !important;
    }

    .prizes-button,
    .solisci,
    .prizes,
    .participation,
    .form {
        max-width: calc(100vh * 0.5625);
        margin: 0 auto;
    }

    .fixed-bottle,
    .fixed-header,
    .subtitle,
    .scroll-indicators {
        transform: translateX(-50%) !important;
        left: 50% !important;
    }
}

/* Age Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #114639;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    min-height: 100vh;
    padding: 20px;
}

.age-gate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/SVG/bg-layer.svg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -1;
}

.age-gate-text {
    width: 90%;
    max-width: 300px; /* Similar width to input container on mobile */
    margin-bottom: 20px;
    z-index: 10000;
}

.age-gate h1 {
    color: white;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
    z-index: 10000;
}

.age-gate .input-container {
    display: flex;
    gap: 5px;
    z-index: 10000;
}

.age-gate input {
    width: 60px;
    padding: 8px;
    margin: 0 5px;
    text-align: center;
    background: transparent;
    border: 1px solid white;
    border-radius: 0px;
    color: white;
    font-family: 'Barlow', sans-serif;
    font-size: 1.2em;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.age-gate input.error {
    border-color: #ff4444;
    color: #ff4444;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.age-gate .input-container.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Remove input spinners */
.age-gate input::-webkit-outer-spin-button,
.age-gate input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.age-gate input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.age-gate input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Barlow', sans-serif;
    font-size: 0.8em;
}

.age-gate button {
    margin-top: 30px;
    padding: 12px 30px;
    background-color: white;
    color: #114639;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    margin-bottom: 110px;
}

.age-gate button:hover {
    transform: scale(1.05);
}

/* Main Content (Hidden Initially) */
.content {
    display: none;
}

/* Intro Section */
.intro {
    position: relative;
    height: 100vh;
    overflow: visible; /* Changed from hidden to allow content to scroll */
}

.intro-elements {
    background: #114639 !important;
    position: relative;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none; /* Prevents interaction with the video */
}

.background-video2 {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hide video controls on all browsers */
.background-video::-webkit-media-controls,
.background-video::-webkit-media-controls-enclosure,
.background-video2::-webkit-media-controls,
.background-video2::-webkit-media-controls-enclosure {
    display: none !important;
}

.fixed-bottle {
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    z-index: 10;
}

.fixed-header {
    position: fixed;
    top: 400px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 65%;
    height: auto;
    display: block;
}

.subtitle {
    position: fixed;
    top: 520px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 70%; /* Slightly wider than KONKURS */
    transition: opacity 0.5s ease-in-out;
}

.subtitle-spring {
    opacity: 1;
}

.subtitle-buy {
    opacity: 0;
}

.intro h1 {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: #ff6600;
    font-size: 2em;
    text-align: center;
    z-index: 5;
}

/* Scroll Indicators */
.scroll-indicators {
    position: absolute;
    left: 50%;
    bottom: 105px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 5;
    transition: opacity 0.5s ease-in-out;
}

.scroll-indicators.hidden {
    opacity: 0;
}

.scroll-arrow {
    width: 20px;
    height: auto;
    animation: floatUpDown 1.5s ease-in-out infinite;
}

.scroll-hand {
    width: 45px;
    height: auto;
    margin-top: -5px; /* Adjust overlap with arrow */
}

@keyframes floatUpDown {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(-10px);
    }
}

/* Common Gold Button Styling */
.gold-button {
    padding: 10px;
    width: 210px;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    z-index: 3;
}

.gold-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: white;
    transform: skew(-20deg);
    z-index: -1;
}

.gold-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #D88D54, #E5A06C);
    transform: skew(-20deg);
    z-index: -1;
}

.gold-button:hover::after {
    background: linear-gradient(to right, #E5A06C, #F3B48C);
}

/* Prizes Button Section */
.prizes-button {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 610px;
    background-color: #114639;
    z-index: 2;
    overflow: hidden;
}

/* Specific positioning for prize button in prizes section */
.prizes .prize-button {
    position: absolute;
    bottom: calc(10vh + 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Ensure it's above slider content */
}

.prizes .prize-button:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Specific positioning for prize button in participation section */
.participation .prize-button {
    position: absolute;
    bottom: 12vh; /* Lower position than in prizes section */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.participation .prize-button:hover {
    transform: translateX(-50%) scale(1.05);
}

.green-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #114639;
    z-index: 1;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

/* Solisci Section */
.solisci {
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 4; /* Lower than prizes section */
    will-change: transform, opacity; /* Prepare for transitions */
}

.background-video2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#solisci-logo {
    position: absolute;
    top: 30vh;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    z-index: 2;
}

#solisci-txt {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    z-index: 2;
}

/* Prizes Section */
.prizes {
    position: relative;
    height: 100vh; /* Exactly 100% viewport height */
    background-color: #114639;
    overflow: hidden;
    touch-action: none; /* Prevent browser default touch actions */
    z-index: 5; /* Ensure proper stacking with other sections */
}

/* Background pattern for prizes section */
.prizes-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 400vw; /* Wide background for sliding effect */
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.6s ease-in-out;
    will-change: transform; /* Optimize for animations */
}

/* Adjust background pattern for desktop */
@media (min-width: 768px) {
    .prizes-bg-pattern {
        height: 100%;
        width: 300vw; /* Slightly narrower on desktop */
    }
}

.prizes-slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2; /* Above the background */
    overflow: hidden; /* Ensure no content bleeds outside */
}

/* Adjacent sections */
.solisci {
    z-index: 4;
    will-change: transform, opacity; /* Prepare for transitions */
}

.participation {
    z-index: 4;
    will-change: transform, opacity; /* Prepare for transitions */
}

/* Add transition helper class for body */
body.transitioning {
    overflow: hidden !important; /* Prevent unwanted scrolling during transitions */
}

body.transitioning .prizes {
    z-index: 5; /* Maintain higher z-index during transitions */
}

/* Slide styles */
.prize-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5vh 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transform: scale(0.8);
    pointer-events: none; /* Prevent interaction with hidden slides */
    touch-action: none; /* Prevent browser default touch actions */
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s ease-in-out;
    transform-origin: center center; /* Ensures scaling happens from center */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.prize-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    transform: scale(1);
    pointer-events: auto; /* Allow interaction with the active slide */
}

.prize-header {
    width: 60vw;
    margin-bottom: 3vh;
}

.prize-logo {
    width: 40vw;
    margin-bottom: 3vh;
}

.prize-number {
    width: 30vw;
    margin-bottom: 3vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.prize-image {
    width: 110vw;
    margin-bottom: 5vh;
}

/* Participation Section */
.participation {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #114639;
    overflow: hidden;
    z-index: 4; /* Lower than prizes section */
    will-change: transform, opacity; /* Prepare for transitions */
    background-image: url('assets/mobile_shadows_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.participation .txt-jak-wziac {
    width: 60vw;
    margin: 0 auto;
    margin-bottom: 3vh;
    display: block;
}

.participation .steps-mobile {
    width: 80vw;
    height: auto;
    margin: 0 auto;
    display: block;
}

.participation .steps-desktop {
    display: none;
    width: 90vw;
    height: auto;
    margin: 0 auto;
}

.participation .txt-zachowaj-paragon {
    width: 60vw;
    height: auto;
    margin: -3vh auto 0;
}

/* Large faded numbers */
.participation .txt-1,
.participation .txt-2, 
.participation .txt-3,
.participation .txt-4 {
    position: absolute;
    width: 25vw;
    height: auto;
    opacity: 0.2;
}

/* Text steps at original size */
.participation .txt-step-1,
.participation .txt-step-2,
.participation .txt-step-3,
.participation .txt-step-4 {
    position: absolute;
    width: 65vw;
    height: auto;
    right: 5vw;
    text-align: left;
}

/* Icons have the same size */
.participation .icon-photo,
.participation .icon-send {
    position: absolute;
    width: 15vw;
    height: auto;
    display: block;
}

/* Specific positions */
/* Step 1 */
.participation .txt-1 {
    left: 15%;
    top: 20vh;
    transform: translateX(-50%);
}
.participation .txt-step-1 {
    top: 22vh;
    left: auto;
}

/* Step 2 */
.participation .txt-2 {
    left: 15%;
    top: 35vh;
    transform: translateX(-50%);
}
.participation .icon-photo {
    left: 35%;
    top: 37vh;
    transform: translateX(-50%);
}
.participation .txt-step-2 {
    top: 37vh;
    left: auto;
}

/* Step 3 */
.participation .txt-3 {
    left: 15%;
    top: 50vh;
    transform: translateX(-50%);
}
.participation .txt-step-3 {
    top: 52vh;
    left: auto;
}

/* Step 4 */
.participation .txt-4 {
    left: 15%;
    top: 65vh;
    transform: translateX(-50%);
}
.participation .icon-send {
    left: 35%;
    top: 67vh;
    transform: translateX(-50%);
}
.participation .txt-step-4 {
    top: 67vh;
    left: auto;
}

/* Desktop version */
@media (min-width: 768px) {
    .scroll-indicators {
        bottom: 100px;
    }

    .form {
        min-height: 840px;
    }

    .participation {
        padding: 60px 40px;
        background: none;
        margin-bottom: 100px;
    }

    .prizes-button {
        padding-top: 0px;
    }
    
    .participation .txt-jak-wziac {
        width: 35vw;
        margin-bottom: 0vh;
    }

    .participation .steps-mobile {
        display: none;
    }

    .participation .steps-desktop {
        display: block;
        width: 70vw;
    }

    .participation .txt-zachowaj-paragon {
        width: 40vw;
        margin-top: 8vh;
    }

    /* All digits have the same size */
    .participation .txt-1,
    .participation .txt-2, 
    .participation .txt-3,
    .participation .txt-4 {
        width: 10vw;
        opacity: 0.2;
    }
    
    /* All text steps have the same scale */
    .participation .txt-step-1,
    .participation .txt-step-2,
    .participation .txt-step-3,
    .participation .txt-step-4 {
        width: 45vw;
        transform: scale(0.8);
    }
    
    /* Icons have the same size */
    .participation .icon-photo,
    .participation .icon-send {
        width: 8vw;
        transform: scale(0.8);
    }
    
    /* Specific positions remain the same */
    /* Step 1 */
    .participation .txt-1 {
        left: 35%;
        top: 20vh;
    }
    .participation .txt-step-1 {
        right: 10vw;
        top: 20vh;
    }
    
    /* Step 2 */
    .participation .txt-2 {
        left: 15%;
        top: 35vh;
    }
    .participation .icon-photo {
        left: 25%;
        top: 35vh;
        transform: translateX(-50%) scale(0.8);
    }
    .participation .txt-step-2 {
        right: 15vw;
        top: 35vh;
    }
    
    /* Step 3 */
    .participation .txt-3 {
        left: 35%;
        top: 50vh;
    }
    .participation .txt-step-3 {
        right: 10vw;
        top: 50vh;
    }
    
    /* Step 4 */
    .participation .txt-4 {
        left: 15%;
        top: 65vh;
    }
    .participation .icon-send {
        left: 25%;
        top: 65vh;
        transform: translateX(-50%) scale(0.8);
    }
    .participation .txt-step-4 {
        right: 15vw;
        top: 65vh;
    }
}

/* Form Section */
.form {
    padding: 20px;
    text-align: center;
    overflow: hidden;
    position: relative;
    height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #114639;
}

.form-header {
    width: 80%;
    max-width: 500px;
    margin-bottom: 20px;
}

.form-container {
    width: 95%;
    max-width: 500px;
    border: 2px solid white;
    border-radius: 0px;
    padding: 10px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 70vh;
    /* max-height: 750px; */
    overflow: hidden;
}

.form-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.form-section {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 20px;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

@media (min-width: 768px) {
    .form-section {
        padding: 40px;
    }
}

.form-section.active {
    opacity: 1;
}

.form-section:not(.active) {
    opacity: 0;
}

.form h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: white;
    text-transform: uppercase;
}

.form h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: white;
}

/* Upload Container */
.upload-container {
    width: 100%;
    height: 40%;
    margin: 20px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-container input[type="file"] {
    display: none;
}

.upload-container label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-container label:hover {
    opacity: 0.9;
}

.upload-text {
    width: auto;
    height: 80px;
    margin-bottom: 30px;
}

.help-text {
    width: auto;
    height: 50px;
    margin-bottom: 30px;
}

.upload-container img.upload-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.upload-container .preview-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 0px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.preview-image {display: none}

.help-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    cursor: pointer;
}

.help-text {
    margin-bottom: 15px;
}

.play-icon {
    width: 50px;
    height: 50px;
}

/* Recipe Container */
.recipe-container {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recipe-text {
    width: 80%;
    max-width: 300px;
    margin-bottom: 20px;
}

.recipe-container p {
    margin-bottom: 15px;
    color: white;
    font-size: 0.9em;
}

.recipe-container textarea {
    width: 100%;
    flex: 1;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #D88D54;
    border-radius: 0px;
    background-color: white;
    font-size: 1.1em;
    resize: none;
    margin-bottom: 15px;
    font-family: 'Barlow', sans-serif;
}

.recipe-container textarea:focus {
    outline: none;
    border-color: #E5A06C;
}

/* Form section specific adjustments */
.form-section#formStep2 {
    display: flex;
    flex-direction: column;
}

.form-section#formStep2 .recipe-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .recipe-container textarea {
        min-height: 250px;
    }
    
    .recipe-container p, .personal-info-container p {
        font-size: 1.4em;
    }
    .recipe-container p {
        margin-bottom: 50px;
    }
}

.error-message {
    color: #ff4444;
    margin-top: 0px;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none !important;
}

.error-message.visible {
    opacity: 1;
}

@keyframes shake-input {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake-input 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Personal Info Container */
.personal-info-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0px 0;
}

.personal-info-container p {
    margin-bottom: 15px;
}

.personal-info-container input {
    width: 100%;
    padding: 15px;
    border: 2px solid #D88D54;
    border-radius: 0px;
    background-color: white;
    font-size: 1.1em;
    font-family: 'Barlow', sans-serif;
}

.personal-info-container input:focus {
    outline: none;
    border-color: #E5A06C;
}

.personal-info-container input.error {
    border-color: #ff4444;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin: 10px;
    text-align: left;
    max-width: 555px;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container label {
    font-size: 0.5em; /* Smaller text on mobile */
    color: white;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    display: inline-block;
}

.checkbox-container label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 15px;
    height: 15px;
    border: 2px solid;
    border-image: linear-gradient(to right, #D88D54, #E5A06C) 1;
    background: transparent;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + label:before {
    background-color: white;
}

.checkbox-container input[type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    left: 7px;
    top: 9px;
    width: 4px;
    height: 8px;
    border: solid #114639;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:focus + label:before {
    box-shadow: 0 0 0 3px rgba(229, 160, 108, 0.3);
}

/* Success Container */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 100%;
}

.success-container img.success-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.success-container img.success-text {
    width: 80%;
    max-width: 300px;
}

/* Form Buttons */
.form-buttons {
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack buttons on mobile */
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.form button {
    padding: 10px; /* Smaller buttons on mobile */
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
}

.form button:hover {
    transform: scale(1.05);
}

/* Frame button based on gold button */
.frame-button {
    padding: 10px;
    width: 210px;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    z-index: 3;
}

.frame-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    transform: skew(-20deg);
    z-index: -1;
    border: 2px solid white;
}

.frame-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    transform: skew(-20deg);
    z-index: -1;
}

.frame-button:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

/* Put DALEJ/WYŚLIJ button below WRÓĆ on mobile */
.form .gold-button {
    order: 1;
}

/* Put WRÓĆ button above DALEJ on mobile */
.form .frame-button {
    order: 2;
}

/* Desktop Styles */
@media (min-width: 768px) {

    .checkbox-container {
        margin: 0;
    }
    
/* Ensure elements maintain their horizontal centering when position becomes absolute */
    .fixed-bottle,
    .fixed-header,
    .subtitle {
        margin-left: auto;
        margin-right: auto;
        right: 0;
    }

    .age-gate h1 { 
        font-size: 2.6em; 
        margin-bottom: 30px;
    }
    
    .age-gate input { 
        width: 100px;
        height: 60px;
        font-size: 1.8em;
        margin: 0 10px;
    }
    
    .age-gate button { 
        padding: 20px 50px; 
        font-size: 1.6em;
        margin-top: 30px;
    }
    
    .age-gate .input-container {
        gap: 10px;
    }

    .fixed-bottle { 
        width: auto;
        height: 550px;
        top: 40%;
        left: 65%;
        transform: translate(-50%, -50%);
    }
    
    .fixed-header {
        width: 38%;
        top: 20%;
        left: 25%;
        transform: translateX(-50%);
    }
    
    .subtitle {
        width: 35%;
        top: 53%;
        left: 25%;
        transform: translateX(-50%);
    }

    .prizes-button button,
    .prize-button {
        font-size: 1.4em;
        bottom: 10% !important;
        position: absolute;
    }

    .solisci {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .solisci::after {
        content: '';
        position: absolute;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 80%;
        background-color: white;
        z-index: 2;
    }

    #solisci-logo {
        top: 50%;
        left: calc(50% - 25vw);
        transform: translate(-50%, -50%);
        width: 20vw;
    }

    #solisci-txt {
        top: 50%;
        left: calc(50% + 25vw);
        transform: translate(-50%, -50%);
        width: 20vw;
        bottom: auto;
    }

    /* Desktop Prizes Section */
    .prizes {
        padding: 5vh 0;
        overflow: hidden;
    }
    
    .prize-slide {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas: 
            "header header"
            "left right";
        padding: 0 5vh;
        gap: 2vh;
        /* Enhanced hiding for non-active slides */
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 1;
        transform: scale(0.8) translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Active slide styling - enhanced */
    .prize-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 10;
        position: relative;
        pointer-events: auto;
        transform: scale(1) translateZ(0);
    }
    
    /* Ensure inactive slides are really hidden */
    .prizes-slider .prize-slide:not(.active) {
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 1 !important;
        transform: scale(0.8) !important;
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, visibility 0.6s ease-out;
    }
    
    .prize-header {
        grid-area: header;
        width: 30vw;
        margin: 15vh auto 0vh auto;
    }
    
    .prize-left {
        grid-area: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        position: relative;
        padding-right: 1vw;
    }
    
    .prize-right {
        grid-area: right;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .prize-logo {
        width: 18vw;
        margin-bottom: 1vh;
        margin-right: 3vw;
        margin-left: auto;
    }
    
    .prize-number {
        width: 6vw;
        margin-right: 15vw;
        margin-left: auto;
    }
    
    .prize-image {
        width: 25vw;
        margin-bottom: 0;
        margin-right: auto;
        margin-left: 3vw;
    }
    
    .form h2 { font-size: 2em; }
    .form h3 { font-size: 1.6em; }
    .upload-container label { padding: 40px; }
    /* .upload-container img { width: 50px; height: 50px; } */
    .upload-container span { font-size: 1.4em; }
    .form button { padding: 20px 50px; font-size: 1.4em; }

    .gold-button {
        padding: 10px;
        width: 320px;
        font-size: 1.4em;
    }

    .frame-button {
        padding: 10px;
        width: 320px;
        font-size: 1.4em;
    }

    button.prize-button-2 {
        padding: 10px;
        width: 320px;
        font-size: 1.4em;
    }
    
    /* Form specific desktop styles */
    .form-header {
        width: 60%;
        max-width: 600px;
        margin-bottom: 4vh;
    }
    
    .form-container {
        width: 65%;
        max-width: 1440px;
        padding: 2vh 4vw;
        min-height: 700px;
    }
    
    .upload-text {
        height: auto !important;
        width: 300px;
    }

    .help-text {
        height: auto !important;
        width: 200px;
    }
    
    .upload-container img.upload-icon {
        width: 70px;
        height: 70px;
    }
    
    .recipe-text {
        width: 70%;
        max-width: 500px;
    }
    
    .recipe-container textarea,
    .personal-info-container input {
        font-size: 1.4em;
        padding: 40px;
    }
    
    .success-container img.success-icon {
        width: 100px;
        height: 100px;
    }
    
    .success-container img.success-text {
        width: 60%;
        max-width: 400px;
    }

    .form-buttons {
        flex-direction: row; /* Horizontal layout on desktop */
        justify-content: center;
    }
    
    .form .gold-button {
        order: 2; /* Keep DALEJ/WYŚLIJ button on the right */
        bottom: 25px;
    }
    
    .form .frame-button {
        order: 1; /* Keep WRÓĆ button on the left */
        bottom: 25px;
    }
    
    .form button {
        padding: 10px; /* Larger buttons on desktop */
        font-size: 1.2em; /* Larger font on desktop */
    }

    .checkbox-container label {
        font-size: 0.8em; /* Original size for desktop */
    }

    .age-gate-text { 
        width: 90%;
        max-width: 400px; /* Similar width to input container on desktop */
        margin-bottom: 30px;
    }

    .age-gate input::placeholder {
        font-size: 1em; /* Slightly larger placeholder text on desktop */
    }

    .play-icon {
        width: 70px;
        height: 70px;
        display: block;
        margin: 0 auto 15px;
    }

    .personal-info-container {
        margin: 20px 0;
    }

    .personal-info-container p {
        margin: 75px auto 75px auto;
        text-align: center;
        width: 100%;
        font-size: 1.5em;
    }
    
    .columns-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 40px;
        width: 100%;
    }

    .desktop-left {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 20px;
        padding-left: 0px;
    }

    .desktop-right {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 5px;
        margin-bottom: 57px;
        /* padding-right: 50px; */
    }
    
    .desktop-left input {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .personal-info-container p {
        margin-top: 20px;
    }

    .desktop-left, .desktop-right {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .desktop-left {
        gap: 15px;
        margin-bottom: 10px;
    }
    .desktop-right {
        gap: 0px;
    }
}

/* Mobile/Desktop Visibility */
/* .mobile-only {
    display: block;
} */

@media (max-width: 767px) {
.desktop-only {
        display: none;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
}

/* Specific styles for transitions between sections */
.participation, 
.solisci {
    position: relative;
    z-index: 4; /* Lower than active slides but higher than inactive ones */
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
}

/* When transitioning, ensure opacity is respected */
body.transitioning .participation,
body.transitioning .solisci {
    will-change: opacity, transform;
}

/* Set specific z-index for sections during transitions */
.prizes {
    z-index: 5;
    height: 100vh; /* Fixed height */
}

.participation {
    z-index: 4;
}

.solisci {
    z-index: 4;
}

/* Prize Slider Styles */
.prize-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.prize-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 500ms ease-in-out, transform 500ms ease-in-out, visibility 500ms;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateX(100px);
    z-index: 1;
    pointer-events: none;
}

.prize-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
    z-index: 10;
    pointer-events: auto;
}

/* Navigation Dots */
.slider-nav-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 10px;
    z-index: 20;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background-color: white;
    transform: scale(1.2);
}

body.transitioning {
    pointer-events: none;
}

/* Section transition states */
.section[data-position="active"] {
    z-index: 5;
}

.section[data-position="below-viewport"] {
    z-index: 4;
}

.section[data-position="above-viewport"] {
    z-index: 3;
}

/* Age Gate Logo */
.age-gate-logo {
    width: 30vw;
    max-width: 150px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .age-gate-logo {
        max-width: 150px;
    }
}

/* Footer Section */
.footer {
    padding: 40px 20px;
    text-align: center;
    background-color: #114639;
    color: white;
}

.footer p {
    margin-bottom: 40px;
    font-size: 1.1em;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.bold-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

.social-media {
    margin-bottom: 40px;
}

.fb-icon img {
    width: 30px;
    height: 30px;
}

.footer-logo img {
    width: 200px;
    height: auto;
}

@media (min-width: 768px) {
    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
}

/* Upload Progress Indicator */
.upload-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.progress-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2.8;
    stroke-linecap: round;
}

.circle {
    fill: none;
    stroke: #E5A06C;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: white;
    font-weight: bold;
}

.progress-text {
    color: white;
    font-size: 1em;
    margin-top: 5px;
}

/* Verification Indicator */
.verification-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    background-color: rgba(17, 70, 57, 0.8);
    padding: 10px 20px;
    border-radius: 0px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #E5A06C;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.verification-text {
    color: white;
    font-size: 0.9em;
}

/* Verification Success */
.verification-success {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    background-color: rgba(40, 167, 69, 0.8);
    padding: 10px 20px;
    border-radius: 0px;
    animation: fadeIn 0.3s ease-in-out;
}

.success-icon {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.success-text {
    color: white;
    font-size: 0.9em;
}

/* Upload Error with X in circle */
.upload-error {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-color: rgba(17, 70, 57, 0.97);
    animation: fadeIn 0.3s ease-in-out;
    padding: 20px;
    text-align: center;
}

.error-circle {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto 20px;
}

.error-circle svg {
    width: 100%;
    height: 100%;
    display: block; /* Ensure SVG is block-level */
    margin: 0 auto; /* Center the SVG */
}

.error-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2.8;
    stroke-linecap: round;
}

.error-circle-border {
    fill: none;
    stroke: #fff;
    stroke-width: 2.8;
    stroke-linecap: round;
}

.error-x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.error-x:before, .error-x:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: white;
    transform-origin: center;
}

.error-x:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.error-x:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.error-text {
    color: white;
    font-size: 1em;
    margin: 0 auto 35px;
    text-align: center;
    max-width: 250px;
    line-height: 1.4;
}

.retry-button {
    display: none;
}

/* Make the entire error display clickable */
.upload-error {
    cursor: pointer;
}

@media (min-width: 768px) {
    .error-circle {
        width: 120px;
        height: 120px;
    }
    
    .error-x {
        width: 50px;
        height: 50px;
    }
    
    .error-text {
        font-size: 1.2em;
        max-width: 350px;
        line-height: 1.5;
    }
}

/* Button Disabled State */
.form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form button:disabled:hover {
    transform: none;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .progress-circle {
        width: 120px;
        height: 120px;
    }
    
    .percentage {
        font-size: 1.5em;
    }
    
    .progress-text {
        font-size: 1.2em;
    }
    
    .verification-indicator {
        padding: 15px 30px;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
    }
    
    .verification-text {
        font-size: 1em;
    }
    
    .verification-success {
        padding: 15px 30px;
    }
    
    .success-icon {
        font-size: 1.8em;
    }
    
    .success-text {
        font-size: 1em;
    }
    
    .upload-error {
        padding: 30px;
        max-width: 400px;
    }
    
    .error-icon {
        font-size: 2.5em;
        width: 50px;
        height: 50px;
    }
    
    .error-text {
        font-size: 1.2em;
    }
    
    .retry-button {
        padding: 10px 20px;
        font-size: 1.1em;
    }
}


/* v2 prizesSection 2503251803 */

section#prizesSection2 {
    display: inline-block;
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

section#prizesSection2 img {
    max-width: 90%;
}

.pz-fixed-elements {
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

img.pz-header {
    width: 450px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: -550px;
    bottom: 0;
}

.pz-row {
    position: relative;
    width: 100%;
    height: 100vh;
}

.prize-button-2 {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: -520px;
    top: 0;
    height: fit-content;
    width: 210px;
    padding: 10px;
    z-index: 10;
}

img.pz-element-1-1 {
    width: 185px;
    position: absolute;
    left: -300px;
    right: 0;
    top: -180px;
    bottom: 0;
    margin: auto;
}

img.pz-element-1-2 {
    width: 65px;
    position: absolute;
    left: -420px;
    right: 0;
    top: 0;
    bottom: -50px;
    margin: auto;
}

img.pz-element-1-3 {
    width: 560px;
    position: absolute;
    left: 350px;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

img.pz-bg1 {
    width: 1050px;
    top: 250px;
    bottom: 0;
    position: absolute;
    margin: auto;
    left: 0;
}

img.pz-bg2 {
    width: 852px;
    top: -150px;
    bottom: 0;
    position: absolute;
    margin: auto;
    left: 0;
    right: -1100px;
}

img.pz-element-2-1 {
    width: 210px;
    position: absolute;
    left: -277px;
    right: 0;
    top: -195px;
    bottom: 0;
    margin: auto;
}

img.pz-element-2-2 {
    width: 65px;
    position: absolute;
    left: -420px;
    right: 0;
    top: 0;
    bottom: -50px;
    margin: auto;
}

img.pz-element-2-3 {
    width: 500px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -250px;
    margin: auto;
}

img.pz-element-3-1 {
    width: 130px;
    position: absolute;
    left: -400px;
    right: 0;
    top: -180px;
    bottom: 0;
    margin: auto;
}

img.pz-element-3-2 {
    width: 97px;
    position: absolute;
    left: -420px;
    right: 0;
    top: 0;
    bottom: -50px;
    margin: auto;
}

img.pz-element-3-3 {
    width: 500px;
    position: absolute;
    top: -85px;
    bottom: 0;
    left: 0;
    right: -150px;
    margin: auto;
}

.pz-r1 {
    transition: margin-top 0.8s ease;
    margin-top: 0;
}

.pz-r1.move-up {
    margin-top: -100vh;
}

.pz-r1.move-up2 {
    margin-top: -200vh;
}

.pz-r1.move-up3 {
    margin-top: -300vh;
}

@media (min-width: 768px) {
    .pz-row {
        transform: scale(1.1);
    }
    img.pz-header {
        transform: scale(1.1);
    }
}

img.zpd {
    width: 468px;
    margin-bottom: 100px;
    display: block;
}

section#participation-scroll {
    padding-bottom: 0rem;
}

.participation .prize-button {
    position: relative;
    left: inherit;
    transform: unset !important;
    margin-bottom: 5px;
}

.pz-fixed1 {
    transition: 0.5s all ease;
}

img.pz-fixed2 {
    width: 80px;
    position: absolute;
    left: -455px;
    right: 0;
    top: -196px;
    bottom: 0;
    margin: auto;
}

@media (max-width: 767px) {

    img.pz-header {
        width: 200px;
        top: -620px;
    }

    img.pz-element-1-1 {
        left: 0;
        right: 0;
        top: -370px;
        width: 240px;
    }

    img.pz-element-1-2 {
        width: 90px;
        left: 0;
        bottom: 0;
        top: -180px;
    }

    img.pz-element-1-3 {
        left: 0;
        top: 220px;
    }

    img.pz-bg1 {
        max-width: 900px !important;
        left: -50px;
    }

    img.pz-element-2-1 {
        left: 0;
        right: 0;
        top: -370px;
        width: 240px;
    }

    img.pz-element-2-2 {
        width: 90px;
        left: 0;
        bottom: 0;
        top: -180px;
    }

    img.pz-element-2-3 {
        left: 0;
        top: 220px;
        right: 0;
    }

    img.pz-element-3-1 {
        left: 0;
        right: 0;
        top: -370px;
        width: 95px;
    }

    img.pz-element-3-2 {
        width: 165px;
        left: 0;
        bottom: 0;
        top: -180px;
    }

    img.pz-element-3-3 {
        left: 0;
        top: 220px;
        right: 0;
    }

    .participation .prize-button {
        bottom: 16vh;
    }

    .participation {
        background: #114639;
        padding-top: 50px;
    }

    img.step-mobile {
        width: calc(100% + 60px);
        max-width: initial;
        margin-top: -100px;
        z-index: -1;
        margin-left: -30px;
        margin-right: -30px;
    }

    img.age-gate-logo {
        width: 38vw;
    }

    .age-gate-text {
        width: 100%;
        max-width: 100%;
    }

    .age-gate input {
        width: 90px;
        padding: 16px 5px;
        font-size: 24px;
    }

    .age-gate button {
        font-size: 22px;
    }

    img.pz-header {
        top: -545px;
    }

    img.zpd {
        display: none !important;
    }

    .participation .prize-button {
        bottom: 18vh;
    }
    img.pz-fixed2 {
        top: -360px;
        left: -150px;
    }
    section#participation-scroll {
        height: auto;
    }
    html, body {
        -webkit-overflow-scrolling: auto !important;
        scroll-behavior: auto !important;
        overscroll-behavior: contain;
        touch-action: manipulation;
    }
    /* .prizes-button {
        height: 105vh;
    } */
    img.subtitle.subtitle-buy {
        margin-top: -10px;
    }

    #mainContent {
        -webkit-overflow-scrolling: auto !important;
        scroll-behavior: auto !important;
        overscroll-behavior: none;
        touch-action: manipulation;
        overflow: hidden;
    }
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    position: relative;
    width: 90%;
    aspect-ratio: 1 / 1;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close-btn {
    position: absolute;
    top: -10px; /* Position outside the top-right */
    right: -10px; /* Position outside the top-right */
    background: white;
    color: #114639; /* Dark green */
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px; /* Center the 'X' vertically */
    text-align: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s, color 0.2s;
}

.modal-close-btn:hover {
    background-color: #f0f0f0;
    color: #0e382d;
}

@media (min-width: 768px) {
    #name, #email {
        max-width: 555px;
        margin: 0 auto;
        padding: 20px;
    }
}

/* Desktop Modal Styles */
@media (min-width: 768px) {
    .modal-content {
        width: 70%;
        max-width: min(1080px, 80vh);
        aspect-ratio: 1 / 1;
    }

    .modal-content video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .modal-close-btn {
        width: 35px;
        height: 35px;
        font-size: 24px;
        line-height: 35px;
        top: -15px;
        right: -15px;
    }
}
/* --- End Modal Styles --- */

/* Character Counter for Recipe Textarea */
.recipe-container {
    position: relative; /* Needed for absolute positioning of the counter */
}

.char-counter {
    position: absolute;
    font-size: 0.9em;
    font-weight: bold;
    color: #ff4444;
    background: none;
    padding: 2px 5px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.char-counter.valid {
    color: #114639; /* Dark green */
}

/* Shake animation for validation */
@keyframes shake-counter {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.shake-validation {
    animation: shake-counter 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@media (min-width: 768px) {
    .char-counter {
        font-size: 1em;
    }
}

.mobile-break {
    display: none;
}

@media (max-width: 767px) {
    .mobile-break {
        display: inline;
    }
}

.desktop-break {
    display: none;
}

@media (min-width: 768px) {
    .desktop-break {
        display: inline;
    }
}

/* Debug Form Navigation */
.debug-form-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 100; /* Ensure it's above other form elements */
    bottom: 10px; /* Default position (mobile) */
    left: 0;
}

.debug-arrow, .debug-close {
    background: rgba(255, 255, 255, 0.25); /* White with 25% opacity */
    border: none;
    color: white;
    font-size: 30px; /* Big arrows */
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    opacity: 0.25;
    transition: opacity 0.3s ease;
}

.debug-arrow:hover, .debug-close:hover {
    opacity: 0.5;
}

.debug-prev {
    margin-left: 10px;
}

.debug-next {
    margin-right: 30px; /* Space for close button */
}

.debug-close {
    font-size: 20px; /* Smaller 'X' */
    width: 30px;
    height: 30px;
    line-height: 30px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 768px) {
    .debug-form-nav {
        bottom: auto;
        top: 100%;
        transform: translateY(-150%); /* Adjust vertical position relative to buttons */
        padding: 0 30px;
        width: calc(100% - 60px); /* Account for padding */
        left: 30px;
    }

    .debug-prev {
        margin-left: 0;
    }

    .debug-next {
        margin-right: 40px; /* Adjust spacing for close button */
    }

    .debug-close {
        right: 0;
    }
}
/* End Debug Form Navigation */