/* Inquiry Button Styles */
#mkmparts-inquiry-container {
    margin-top: 15px;
}

.mkmparts-inquiry-btn {
    background: #0073aa;
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
    display: block;
    text-align: center;
    font-weight: 600;
}

.mkmparts-inquiry-btn:hover {
    background: #005a87;
    color: #ffffff !important;
}

/* Modal Styles */
.mkmparts-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.mkmparts-modal-content {
    background-color: #ffffff;
    margin: 3% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 750px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.mkmparts-modal-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.mkmparts-modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.3s;
    line-height: 1;
}

.mkmparts-modal-close:hover {
    color: #000;
}

/* Form Styles */
.mkmparts-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.mkmparts-form-group {
    margin-bottom: 15px;
    flex: 1;
}

.mkmparts-form-group.half-width {
    flex: 1;
}

.mkmparts-form-group.full-width {
    width: 100%;
    flex: none;
}

.mkmparts-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.mkmparts-form-group .required {
    color: #dc3545;
    font-weight: bold;
}

.mkmparts-form-group input,
.mkmparts-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #fff;
}

.mkmparts-form-group input:focus,
.mkmparts-form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

.mkmparts-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.mkmparts-submit-btn {
    background: #0073aa;
    color: #ffffff !important;
    border: none;
    padding: 14px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
    font-weight: 600;
}

.mkmparts-submit-btn:hover {
    background: #005a87;
    color: #ffffff !important;
}

.mkmparts-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#mkmparts-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    display: none;
}

#mkmparts-form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#mkmparts-form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.product-info-preview {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.product-info-preview h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 16px;
    margin-bottom: 10px;
}

.product-info-preview p {
    margin: 5px 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .mkmparts-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .mkmparts-modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
    }
    
    .mkmparts-inquiry-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .mkmparts-modal-content h2 {
        font-size: 20px;
    }
}