
/* 遮罩层 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 黑色半透明背景 */
    z-index: 998; /* 确保遮罩在弹窗下方 */
}

/* 弹窗容器 */
.consult-modal {
    width: 550px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    z-index: 999; /* 确保弹窗在遮罩上方 */

}
/* 弹窗头部 */
.modal-header {
    background: url('../images/zixun_title.png') no-repeat center center; /* 替换为实际头部背景图路径 */
    background-size: cover;
    padding: 20px;
}
.modal-header-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.modal-header-title h3 {
    color: #fff;
    margin: 0;
    font-family: YouSheBiaoTiHei;
    font-size: 25px;
    color: #FFFFFF;
    text-align: left;
    font-style: normal;
}
.modal-header p {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 50px;
    text-align: left;
    font-style: normal;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}
.close-btn {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
/* 弹窗内容 */
.modal-content {
    padding: 20px;
}

/* 表单组 */
.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    gap: 5px; /* 设置元素间距 */
}
.form-group label {
    width: 85px; /* 设置标签宽度 */;
    display: block;
    margin-bottom: 5px;
    color: #000;
    font-size: 14px;
    text-align: right;
    display: inline-block;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
/* 提交按钮 */
.submit-btn {
    width: 30%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}
.submit-btn:hover {
    background-color: #218838;
}

/* ... 提示框 ... */
.alert-box {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-size: 16px;
    text-align: center;
}
.success-alert {
    background-color: #F0F9EB;
    color: #218938;

}
.error-alert {
    background-color: #FEF0F0;
    color: #F56C6C;
}
