/* Стили для модального окна */
.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.7);
}

.modal_container {
    max-width: 80%;
}

.modal-content {
    display: flex;
    justify-content: center;
    background-color: #f4f5f5;
    margin: 15% auto;
    padding: 40px;
    border: 1px solid #888;
    max-width: 330px;
    position: relative;
    text-align: center;
    border-radius: 10%;
}

.close {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    background-color: #8c3b5c; /* Заливка внутри крестика */
    color: white; /* Цвет крестика */
    text-align: center;
    font-size: 24px;
    border-radius: 20%; /* Для создания круглой формы крестика */
    border-bottom-left-radius: 20px;
    line-height: 35px; /* Выравнивание текста по вертикали */
}

.close:hover {
    background-color: #f44336;
}


/* Стили для формы в модальном окне */
form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form_title {
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
}

label {
    text-align: left;
    margin-top: 10px;
}

input[type="text"],
input[type="tel"] {
    width: 90%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 2px solid #008CBA;
}

input[type="tel"]::placeholder {
    color: #008CBA;
}

/* Стили для input при наведении */
input[type="text"]:hover,
input[type="tel"]:hover {
    border-color: #8c3b5c; /* Изменение цвета рамки при наведении */
}

button[type="submit"] {
    margin: 0 auto;
    background-color: #168039;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: #8c3b5c;
}

