/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 100;
    background-color: #6E6C78;
    color: #fff;
    line-height: 1.6;
 
}


header {
    background-color: #3B3A3D;
    font-size: 15px;
    color: white;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 2px -2px gray;
    transition: top 0.3s; /* Плавное скрытие/появление */

    display: flex; /* Делаем header флекс-контейнером */
    justify-content: center; /* Центрируем элементы по горизонтали */
    align-items: center; /* Центрируем элементы по вертикали */
}

#header-icon {
    display: flex; /* Делаем div флекс-контейнером */
    align-items: center; /* Центрируем элементы по вертикали */
}

#header-icon img {
    margin-right: 10px; /* Отступ между изображением и заголовком */
}


/* Основная форма */
main {
    padding: 20px;
}


.form-background {
    position: absolute;
    top: 0;
    padding: 20px;
    margin-left: 30%;
    width: 70%; /* Ширина для ПК */
    height: 400%;
    background-image: url('img/we.jpg'); /* Путь к изображению */
    background-size: cover;
    background-position: center;
    filter: blur(5px); /* Эффект размытия */
    z-index: -1; /* Фон позади формы */
}



/* Контейнер для формы и фона */
.signup-form-wrapper {
    position: relative;
    max-width: 100%;
    
}

.signup-form {
    margin-left: 15%;
    background-color: #7AA899;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;

    text-align: center;
}

.signup-form h2 {
    margin-bottom: 20px;
}

.signup-form input[type="text"],
.signup-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-family: "Montserrat Alternates", sans-serif;
}

.signup-form label.checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.signup-form label input[type="checkbox"] {
    margin-right: 10px;
}

.signup-form button {
    background-color: #8B7AA8;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: "Montserrat Alternates", sans-serif;
}

.signup-form button:hover {
    background-color: #27263D;
}

/* Галерея фотографий */
.gallery {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-bottom: 30px;
}

.gallery img {
    max-width: 45%;
    height: 40%;
    border-radius: 20px;
}

/* Нижняя панель */
footer {
    background-color: #3B3A3D;
    text-align: center;
    padding: 10px;
    /*position: fixed;*/
    width: 100%;
    bottom: -100px;
    transition: bottom 0.5s ease;
}



/* Адаптивность */
@media (min-width: 1700px) {

   .form-background {
        /* Ширина для ПК */
        height: 500%;
    }
    .signup-form{
        max-width: 600px;
    }
    .signup-form label.checkbox {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
    }
}

@media (max-width: 1300px) {

   .form-background {
        width: 70%;/* Ширина для ПК */
        height: 300%;
    }
}

@media (max-width: 800px) {
    .signup-form h2 {
        margin-bottom: 15px;
    }

    .gallery img {
        max-width: 100%;
        height: 100%;
        border-radius: 10px;
    }
    .signup-form-wrapper {
        position: relative;
        /*max-width: 700px;*/
        margin-right: 0%;
        margin-left: 0%;
    }

   .form-background {
        width: 100%;/* Ширина для ПК */
        height: 300%;
        margin-right: 0%;
        margin-left: 0%;
    }
}

@media (max-width: 500px) {
    header h1 {
        font-size: 18px;
        margin-right: 0%;
        margin-left: 0%;
    }

    .signup-form h2 {
        font-size: 18px;
        margin-right: 0%;
        margin-left: 0%;
    }
    .signup-form {
         font-size: 12px;
        margin-right: 0%;
        margin-left: 0%;
    }
    .form-background {
        width: 100%; /* Ширина для ПК */
        margin-right: 0%;
        margin-left: 0%;
    }

}



.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Черный фон с прозрачностью */
        }
.modal-content {
    background-color: #8b7aa7;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #491d88;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    }
}