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

body {
    font-family: "Poppins", serif;
    background-color: #8BF9AE;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;

}

.container {
    max-width: 500px;
    width: 100%;
    background-color: transparent;
    padding: 0px;
    position: relative;
    padding-bottom: 50px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 70px;
}

.header h1,
h2{
    font-size: 24px;
    color: #000;
    font-weight: 400;
    margin-bottom: 10px;
}

h2{
    font-weight: 600;
}
.header p {
    font-size: 16px;
    color: #000;
}

.form {

    background:#fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
    border-radius: 16px;
    z-index: 700;
    position: relative;
}

.form input {
    width: 100%;
    padding: 22px 12px 10px;
    border: 1px solid #C3C7CC;
    border-radius: 8px;
    font-size: 16px
}

input::placeholder {
    font-family: "Poppins", serif;
}


.form button,
button {
    padding: 12px;
    background-color: #1858F5;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form button:hover {
    background-color: #043ecc;
}

.form-group {
    position: relative;
}

    /* Базовое положение плейсхолдера */
.form-group label {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #909799;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Когда инпут в фокусе или заполнен */
.form-group input:focus + label,
.form-group input.filled + label {
    top: 12px;
    font-size: 12px;

}

.form-group input:focus {
     border: 1px solid #1858F5; /* Цвет обводки на фокусе */
    outline: none; /* Убирает стандартную обводку браузера */
    box-shadow: 0 0 0 2px #1858F5; /* Имитируем бордер шириной 2px */
    transition: border-color 0.2s ease, box-shadow 0.2s ease; /* Плавный переход */
}



.terms {
    font-size: 0.9em;
    color: #909799;
    text-align: center;
    margin-top: 10px;
}

.terms a {
    color: #000;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.top {
    background: #fff;
    position: fixed; /* Фиксирует блок относительно окна браузера */
    top: 0; /* Приклеивает к верхнему краю */
    width: 100%; /* Растягивает блок на всю ширину экрана */
    max-width: 500px;
    z-index: 1000; /* Делает блок выше других элементов */
}

.top img{
    padding: 16px 0 13px 20px;
}

.content {
    padding: 0 20px;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
}

.background-img {
    position: absolute;
    z-index: 500;
}

.background-img-lt {
    top: -36px;
    left: 0px;
}
.background-img-rt {
    top: 31px;
    right: 0px;
}
.background-img-ld {
    bottom: 0px;
    left: 0px;
}
.background-img-rd {
    bottom: -14px;
    right: 0px;
}

/* Overlay (фон) */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    opacity: 0; /* Начальное состояние - невидимый */
    transition: opacity 0.3s ease; /* Плавное появление */
}

.overlay.active {
    display: block;
    opacity: 1; /* Делает overlay видимым */
    cursor: pointer;
}

/* Модальное окно */
#modalBackdrop {
    text-align:center;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;

    background: #fff;
    z-index: 1500;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: auto;
    opacity: 0; /* Начальное состояние - невидимое */
    transform: translate(-50%, -50%) scale(0.8); /* Уменьшенное начальное состояние */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Анимация появления */
    max-width: 500px;
}

#modalBackdrop.active {
    display: block;
    opacity: 1; /* Полностью видимое окно */
    transform: translate(-50%, -50%) scale(1); /* Полный размер */
}

.close-btn {
    position: absolute;
    right: 24px;
    top: 24px;
    cursor: pointer;
}
#modalBackdrop ul {
    text-align: left;
    padding-top: 16px;
}

#modalBackdrop li {
    font-size:14px;
    color: #7F8286;
    margin-left: 20px;
}

#modalBackdrop button {
    width:100%;
}

.btn-with-icon {
    margin-top: 16px;
    display: flex; /* Устанавливает кнопку как flex-контейнер */
    align-items: center; /* Выравнивание по вертикали */
    justify-content: center; /* Центрирование текста и изображения */
    gap: 8px; /* Отступ между изображением и текстом */
    padding: 15px 20px;
    font-size: 16px; /* Размер текста */
    font-family: "Poppins", sans-serif; /* Шрифт текста */
    background-color: #1858F5; /* Цвет фона кнопки */
    color: #fff; /* Цвет текста */
    border: none; /* Убирает стандартную рамку кнопки */
    border-radius: 8px; /* Скругленные углы */
    cursor: pointer; /* Указывает, что элемент кликабельный */
    transition: background-color 0.3s ease; /* Анимация при наведении */
}


.btn-icon {
    width: 24px; /* Ширина изображения */
    height: 24px; /* Высота изображения */
    object-fit: contain; /* Корректное отображение изображения */
}



#modalBackdrop .popup-pics {
    padding-top: 40px;
}
#modalBackdrop h2 {
    padding-top: 16px;
}