/* Оверлей для попапа */
.popup-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/bg.png);
    background-position: center;
    background-size: cover;
    z-index: 1000;
}

/* Контейнер для попапа */
.popup-container {
    position: relative;
    background: linear-gradient(244.13deg, #17181C 0%, #220D50 100%), #D9D9D9;
    border-radius: 40px;
    width: 640px;
    max-width: 90%; /* Для адаптивности */
    padding: 40px;
    box-shadow: 0 0 30px rgb(96 0 218 / 80%), inset 0 0 25px rgba(96, 0, 218, 0.8);
    border: 8px solid #d1b4f5;
    z-index: 2000; /* Попап на самом верху */
}

/* Лампочки вокруг попапа */
.popup-container .lights-top,
.popup-container .lights-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.popup-container .lights-top {
    top: -55px;
}

.popup-container .lights-bottom {
    bottom: -55px;
}

/* Лампочки по бокам */
.popup-container .lights-left,
.popup-container .lights-right {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.popup-container .lights-left {
    left: -50px;
}

.popup-container .lights-right {
    right: -55px;
}

/* Общие стили для всех огоньков */
.popup-container .light {
    width: 100px;
    height: 100px;
    background-image: url('../img/light2.png');
    background-size: contain;
    transition: opacity 0.5s ease;
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

/* Фоновая картинка для попапа */
.popup-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Чтобы фон адаптировался по размеру */
    border-radius: 40px; /* Радиус совпадает с попапом */
    z-index: -1;
}

/* Дополнительные стили для содержимого */
.popup-content {
    display: flex;
    text-align: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    flex-direction: column;
    align-items: center;
}

.registration-form {
    display: flex;
    justify-content: center;
}
/* Заголовок */
.popup-heading {
    font-family: Montserrat;
    font-size: 65px;
    font-weight: 900;
    line-height: 65px;
    text-align: center;
    margin-bottom: 0px;
    margin-top: 5px;
}

/* Подзаголовок */
.popup-subheading {
    font-family: Montserrat;
    font-size: 28px;
    font-weight: 700;
    line-height: 33px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 400px;
}


#confettiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    pointer-events: none; /* Чтобы не блокировать взаимодействие с элементами под ним */
}


@media (max-width: 768px) {
.popup-container {
    position: relative;
    background: linear-gradient(244.13deg, #17181C 0%, #220D50 100%), #D9D9D9;
    border-radius: 40px;
    width: auto;
    max-width: 78%;
    padding: 20px;
    box-shadow: 0 0 30px rgb(96 0 218 / 80%), inset 0 0 25px rgba(96, 0, 218, 0.8);
    border: 8px solid #d1b4f5;
    z-index: 2000;
}
.popup-heading {
    font-family: Montserrat;
    font-size: 38px;
    font-weight: 900;
    line-height: 65px;
    text-align: center;
    margin-bottom: 0px;
    margin-top: 5px;
}
.popup-subheading {
    font-family: Montserrat;
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    text-align: center;
    margin-bottom: 0px;
    max-width: 400px;
}
}

