/* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА --- */

/* Контейнер, который затемняет фон */
.modal-container {
    display: none; /* Скрыт по умолчанию */
    position: fixed; /* Остается на месте при скролле */
    z-index: 1000; /* Поверх всего остального */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Добавляет скролл, если нужно */
    background-color: rgba(0,0,0,0.6); /* Черный с прозрачностью */
    align-items: center;
    justify-content: center;
}

/* Класс для отображения окна */
.modal-container.show {
    display: flex;
}

/* Содержимое модального окна */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 25px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

/* Кнопка закрытия */
.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Стили для полей формы внутри окна */
.modal-form-group {
    margin-bottom: 15px;
}
.modal-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.modal-form-group input[type="text"],
.modal-form-group input[type="email"],
.modal-form-group input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Важно для правильного расчета ширины */
}

#privacy_policy_group label {
    font-weight: normal;
    font-size: 0.9em;
}

/* Стили для кнопки отправки */
#modal-submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Скрытое поле-ловушка для ботов */
.honeypot {
    display: none;
}
