/* Стили для оверлея (затемнения фона) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Стили для самого модального окна */
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    font-family: 'Rubik', sans-serif;
}

/* Стили для кнопки закрытия */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* Стили для заголовка */
.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Стили для инпута */
.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
}

.modal-input.error {
    border-color: red;
}

/* Стили для сообщения об ошибке */
.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: left;
    display: none;
}


/* Стили для кнопки */
.modal-button {
    background-color: #F97316;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    width: 100%;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
}

.modal-button:hover {
    background-color: #EA580C;
}

.advantages-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.advantages-modal.active {
    display: flex;
}

.advantages-modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Rubik', sans-serif;
}

.advantages-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.advantages-modal-close svg {
    width: 24px;
    height: 24px;
    fill: #333;
    transition: fill 0.2s ease;
}

.advantages-modal-close:hover svg {
    fill: #F97316;
}

.advantages-modal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.advantages-modal-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.advantages-modal-icon svg {
    width: 72px;
    height: 72px;
    color: #333;
    stroke: #333;
}

.advantages-modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.advantages-modal-title span {
    color: #F97316;
}

.advantages-modal-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.advantages-modal-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.advantages-modal-contact-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.advantages-modal-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.advantages-modal-phone-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    font-family: 'Rubik', sans-serif;
}

.advantages-modal-phone-input:focus {
    border-color: #F97316;
    outline: none;
}

.advantages-modal-phone-input.error {
    border-color: #ef4444;
}

.advantages-modal-submit {
    padding: 12px 25px;
    background: #F97316;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Rubik', sans-serif;
}

.advantages-modal-submit:hover {
    background: #EA580C;
}

.advantages-modal-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .advantages-modal-content {
        padding: 30px;
    }
    
    .advantages-modal-title {
        font-size: 24px;
    }
    
    .advantages-modal-description {
        font-size: 16px;
    }

    .advantages-modal-input-group {
        flex-direction: column;
    }

    .advantages-modal-submit {
        width: 100%;
    }
}
