/* ============================================
   询盘模态框样式 - 跨浏览器兼容
   ============================================ */

/* 模态框遮罩 */
.inquiry-modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 71, 107, 0.2);
}

/* 模态框容器 */
.inquiry-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: none;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

/* 模态框头部 */
.inquiry-modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 20px;
}

.inquiry-modal-header h2 {
    margin: 0;
    color: #00476b;
    font-size: 1.5rem;
    font-weight: 600;
}

.inquiry-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

/* 表单组 */
.inquiry-form-group {
    margin-bottom: 15px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.inquiry-form-group:last-of-type {
    margin-bottom: 20px;
}

.inquiry-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #00476b;
    font-size: 14px;
}

.inquiry-form-group input,
.inquiry-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
}

.inquiry-form-group input[readonly] {
    background-color: #f9f9f9;
}

.inquiry-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 表单操作区 - 按钮容器 */
.inquiry-form-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 0;
}

/* 提交按钮 */
.inquiry-submit-btn {
    background-color: #00476b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
    -webkit-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    line-height: 1.5;
    text-align: center;
    display: inline-block;
}

.inquiry-submit-btn:hover {
    background-color: #003b58;
}

.inquiry-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
