/* Модальное окно консультации */
.consultation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

.consultation-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.consultation-modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-sizing: border-box;
}

.consultation-modal-overlay.active .consultation-modal-content {
    transform: scale(1);
}

.consultation-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    transition: color 0.3s;
}

.consultation-modal-close:hover {
    color: #000;
}

.consultation-modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.consultation-modal-content .modal-description {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

.consultation-modal-content .modal-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.consultation-modal-content .modal-benefits li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.consultation-modal-content .modal-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgb(25, 142, 56);
    font-weight: bold;
    font-size: 18px;
}

.consultation-modal-content .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.consultation-modal-content .form-group {
    display: flex;
    flex-direction: column;
}

.consultation-modal-content .form-group label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    text-transform: uppercase;
}

.consultation-modal-content .form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.consultation-modal-content .form-group input:focus {
    outline: none;
    border-color: rgb(25, 142, 56);
}

.consultation-modal-content .btn-submit {
    width: 100%;
    background-color: rgb(25, 142, 56);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.consultation-modal-content .btn-submit:hover {
    background-color: rgb(20, 120, 45);
}

.consultation-modal-content .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.consultation-modal-content .form-checkbox input {
    margin-top: 3px;
    cursor: pointer;
}

.consultation-modal-content .form-checkbox label {
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

/* Сообщение об успехе */
.consultation-modal-content .success-message {
    text-align: center;
    padding: 20px;
}

.consultation-modal-content .success-icon {
    width: 80px;
    height: 80px;
    background-color: rgb(25, 142, 56);
    color: white;
    font-size: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.consultation-modal-content .success-message h3 {
    color: rgb(25, 142, 56);
    margin-bottom: 15px;
}

.consultation-modal-content .success-message p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.consultation-modal-content .btn-success-close {
    background-color: rgb(25, 142, 56);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.consultation-modal-content .btn-success-close:hover {
    background-color: rgb(20, 120, 45);
}

/* Адаптивность */
@media (max-width: 768px) {
    .consultation-modal-content {
        padding: 30px 20px;
    }

    .consultation-modal-content h3 {
        font-size: 20px;
    }

    .consultation-modal-content .form-row {
        grid-template-columns: 1fr;
    }
}
