/* Seasonal Popup Full-Page Animation Container */
.seasonal-popup-full-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

/* Seasonal Popup Overlay */
.seasonal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

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

/* Popup Container */
.seasonal-popup-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    z-index: 10000;
}

@keyframes popIn {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Animated Icons */
.seasonal-popup-icon {
    position: fixed;
    font-size: 3rem;
    user-select: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

/* FALLING ANIMATION */
.seasonal-popup-icon.falling {
    animation: fallingIcon linear forwards;
}

@keyframes fallingIcon {
    0% {
        transform: translateY(-100px) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(var(--wobble, 0));
        opacity: 0;
    }
}

/* FADE IN ANIMATION */
.seasonal-popup-icon.fade-in {
    animation: fadeInIcon 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInIcon {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* SLIDE FROM LEFT */
.seasonal-popup-icon.slide-left {
    animation: slideFromLeftIcon 0.7s ease-in-out forwards;
}

@keyframes slideFromLeftIcon {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-120vw);
        opacity: 0;
    }
}

/* SLIDE FROM RIGHT */
.seasonal-popup-icon.slide-right {
    animation: slideFromRightIcon 0.7s ease-in-out forwards;
}

@keyframes slideFromRightIcon {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(120vw);
        opacity: 0;
    }
}

/* SCALE UP ANIMATION */
.seasonal-popup-icon.scale-up {
    animation: scaleUpIcon 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUpIcon {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button */
.seasonal-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10010;
}

.seasonal-popup-close:hover {
    color: #333;
}

/* Popup Image */
.seasonal-popup-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.seasonal-popup-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Headline */
.seasonal-popup-headline {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

/* Text */
.seasonal-popup-text {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7);
}

.seasonal-popup-text a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.seasonal-popup-text a:hover {
    text-decoration: underline;
}

/* Email Field */
.seasonal-popup-email-field {
    margin-bottom: 20px;
}

.seasonal-popup-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.seasonal-popup-input:focus {
    outline: none;
    border-color: #0073aa;
}

/* Button Container */
.seasonal-popup-button-container {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* Button */
.seasonal-popup-button {
    display: inline-block;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
    line-height: 1.2;
    white-space: nowrap;
    background-color: #0073aa;
    min-width: 100px;
}

.seasonal-popup-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.seasonal-popup-button:active {
    transform: translateY(0);
}

.seasonal-popup-button:focus {
    outline: 2px solid rgba(0, 115, 170, 0.5);
    outline-offset: 2px;
}

.seasonal-popup-button:visited {
    color: white;
}

/* Responsive Design */
@media (max-width: 600px) {
    .seasonal-popup-container {
        width: 95%;
        max-width: none;
        padding: 30px 20px 20px;
    }

    .seasonal-popup-headline {
        font-size: 22px;
    }

    .seasonal-popup-text {
        font-size: 14px;
    }

    .seasonal-popup-icon {
        font-size: 2.5rem;
    }

    .seasonal-popup-button {
        width: 100%;
    }
}

/* Scrollbar styling */
.seasonal-popup-container::-webkit-scrollbar {
    width: 6px;
}

.seasonal-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.seasonal-popup-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.seasonal-popup-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
