/* Основные стили модального окна */
.equipment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    font-family: 'Arial', sans-serif;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.modal-container {
    position: relative;
    max-width: 800px;
    width: 90%;
    background: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-out;
    display: flex;
    overflow: hidden;
}

.modal-image {
    flex: 1;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.modal-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
}

.modal-content {
    flex: 1;
    padding: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    z-index: 1;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.3;
}

.modal-title span {
    color: #2ecc71;
}

.modal-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.modal-subtitle b {
    display: block;
    color: #34495e;
    font-size: 16px;
    margin-bottom: 5px;
}

.form-title {
    font-size: 18px;
    margin-bottom: 25px;
    color: #2c3e50;
}

.form-title b {
    color: #2ecc71;
}

.consultation-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f9f9f9;
}

.form-group input:focus {
    border-color: #2ecc71;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
    background: #fff;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.form-footer {
    font-size: 13px;
    color: #95a5a6;
    text-align: center;
    margin-top: 25px;
}

.form-footer b {
    color: #2ecc71;
}

.form-message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
    display: none;
    font-size: 14px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .modal-container {
        flex-direction: column;
        max-width: 90%;
    }
    
    .modal-image {
        display: none;
    }
    
    .modal-content {
        padding: 30px;
    }
}