/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.modal-open {
    cursor: pointer;
}

/* Стили для чекбокса согласия */
.field input[type="checkbox"] {
    margin-right: 10px;
}

.field label[for="modal-agree"] {
    font-size: 0.9em;
    line-height: 1.4;
    cursor: pointer;
}

.field label[for="modal-agree"] a {
    color: #3498db;
    text-decoration: none;
}

.field label[for="modal-agree"] a:hover {
    text-decoration: underline;
}

/* Адаптивность для модального окна */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}