@charset "utf-8";
/* CSS Document */
:root {
    --sbm-main-blue: #0B428A;
    --sbm-main-hover: #072F66;
    --sbm-accent-orange: #FFB800;
    --sbm-dark-text: #333333;
    --sbm-light-border: #DDE3EA;
}

/* 右下角悬浮按钮 */
#offline-msg-trigger {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--sbm-main-blue);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(11, 66, 138, 0.3);
    cursor: pointer;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
#offline-msg-trigger:hover {
    background-color: var(--sbm-main-hover);
    transform: scale(1.05);
}
#offline-msg-trigger svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

/* 弹窗遮罩层 */
#offline-form-modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
}

/* 弹窗主体 */
.sbm-form-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    position: relative;
    animation: sbmFormFadeIn 0.3s ease;
}

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

/* 弹窗头部 */
.sbm-form-modal-header {
    background: var(--sbm-main-blue);
    color: #ffffff;
    padding: 20px 25px;
    position: relative;
}
.sbm-form-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff !important;
}
.sbm-form-modal-header p {
    margin: 5px 0 0 0;
    font-size: 13px;
    opacity: 0.8;
    color: #ffffff !important;
    line-height: 1.4;
}
.sbm-form-modal-close {
    position: absolute;
    right: 20px;
    top: 22px;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.sbm-form-modal-close:hover { opacity: 1; }

/* 表单独立隔离容器 */
#contact_form_sbm {
    padding: 25px;
    font-family: Arial, sans-serif;
    color: var(--sbm-dark-text);
    box-sizing: border-box;
}

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

/* 强力重置输入框 */
#contact_form_sbm input[type="text"],
#contact_form_sbm input[type="email"],
#contact_form_sbm select,
#contact_form_sbm textarea {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 15px !important;
    border: 1px solid var(--sbm-light-border) !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #333333 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: border-color 0.2s;
}
#contact_form_sbm input:focus,
#contact_form_sbm select:focus,
#contact_form_sbm textarea:focus {
    border-color: var(--sbm-main-blue) !important;
}

/* 姓名与公司并排 */
.sbm-form-group-flex {
    display: flex;
    gap: 4%;
}
.sbm-form-group-flex input {
    width: 48% !important;
}

/* IM 组合框 */
.sbm-form-im-wrapper {
    display: flex;
    gap: 4%;
}
.sbm-form-im-type { width: 28% !important; }
.sbm-form-im-valbox { width: 68% !important; }
.sbm-form-phone-grid { display: flex; gap: 8px; }
.sbm-form-phone-grid .sbm-form-cc { width: 35% !important; }
.sbm-form-phone-grid .sbm-form-pn { width: 65% !important; }
.sbm-form-pure-valbox { display: none; } 

/* 复选框 Demand 区域 */
.sbm-form-checkbox-card {
    background: #f8fafd !important;
    padding: 15px !important;
    border-radius: 4px !important;
    border: 1px dashed #cedae8 !important;
}
.sbm-form-checkbox-title { 
    font-weight: bold; 
    font-size: 14px;
    margin-bottom: 10px;
}
.sbm-form-checkbox-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
}
.sbm-form-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: var(--sbm-dark-text) !important;
    margin: 0 !important;
    font-weight: normal !important;
}
.sbm-form-checkbox-label input[type="checkbox"] {
    margin: 2px 8px 0 0 !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--sbm-accent-orange) !important;
}

/* 文本域 */
#contact_form_sbm textarea.sbm-form-textarea {
    height: 120px !important;
    resize: vertical !important;
    line-height: 1.5 !important;
}

/* 提交按钮 */
.sbm-form-btn-submit {
    width: 100% !important;
    height: 48px !important;
    background: var(--sbm-accent-orange) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}
.sbm-form-btn-submit:hover { background: #e0a200 !important; }

/* 响应式断点 */
@media (max-width: 576px) {
    .sbm-form-group-flex { flex-direction: column; gap: 15px; }
    .sbm-form-group-flex input { width: 100% !important; }
    .sbm-form-im-wrapper { flex-direction: column; gap: 15px; }
    .sbm-form-im-type, .sbm-form-im-valbox { width: 100% !important; }
    .sbm-form-checkbox-grid { grid-template-columns: 1fr; }
    .sbm-form-modal-content { width: 92%; }
}

