/* ===================== 入驻表单弹窗 ===================== */
.form-popup-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.form-popup-box {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: popupFadeIn 0.3s ease forwards;
}
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.form-popup-title {
    text-align: left;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    padding: 20px;
    background: #fafbfd;
    border-radius: 10px 10px 0 0;
}
.form-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
/* 外层容器 */
.step-wrap {
    width: 100%;
    padding: 2rem 1rem;
}
/* 步骤父容器 flex 横向布局 */
.step-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}
/* 中间总连接线基准线：左右缩进，避开第一个和最后一个节点外侧 */
.step-box::before {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(16.666% + 20px);
    right: calc(16.666% + 20px);
    height: 4px;
    background-color: #cccccc;
    z-index: 1;
}
/* 已完成进度蓝色线条（只到第二步中间） */
.step-progress-line {
    position: absolute;
    top: 18px;
    left: calc(16.666% + 20px);
    width: 15%;
    height: 4px;
    background-color: #0d6efd;
    z-index: 2;
}
/* 单个步骤项 */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    flex: 1;
    text-align: center;
}
/* 圆圈数字 */
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    border: 2px solid transparent;
}
/* 激活状态 */
.step-item.active .step-num {
    background-color: #0d6efd;
    color: #fff;
    border-color: #b8d4ff;
}
/* 未激活 */
.step-item .step-num {
    background-color: #cccccc;
    color: #fff;
}
/* 主标题文字 */
.step-title {
    font-size: 1rem;
    margin-bottom: 8px;
}
.step-item.active .step-title {
    color: #0d6efd;
}
.step-item:not(.active) .step-title {
    color: #999999;
}
/* 副标题说明 */
.step-desc {
    font-size: 1rem;
    color: #999999;
}
.step-item.active .step-desc {
    color: #0d6efd;
}
.form-content {
    background: #fafbfd;
    border-radius: 10px;
    border: 2px solid #dededf;
    padding: 20px;
    margin: 20px;
}
.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}
.form-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-item label {
    font-size: 16px;
    color: #666;
}
.form-item label .required {
    color: #ff0000;
    margin-left: 2px;
}
.form-item input,
.form-item select {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f7f7f7;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease;
}
.form-item input:focus,
.form-item select:focus {
    border-color: #0066cc;
    background: #ffffff;
}
.form-tip {
    text-align: center;
    color: #1166c7;
    font-size: 16px;
    background: #f0f7ff;
    border-radius: 10px;
    margin: 20px;
    padding: 5px;
}
.form-submit-btn {
    display: block;
    width: 280px;
    height: 52px;
    line-height: 52px;
    text-align: center;
    background-color: #0066cc;
    color: #fff;
    font-size: 20px;
    border: none;
    border-radius: 4px;
    margin: 0 auto 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.form-submit-btn:hover {
    background-color: #004999;
}
.form-submit-btn:disabled {
    background:#999 !important;
    cursor:not-allowed;
}
.form-agreement {
    text-align: center;
    font-size: 14px;
    color: #333;
}
.form-agreement a {
    color: #0066cc;
    text-decoration: none;
}
.form-agreement a:hover {
    text-decoration: underline;
}
/* 公司所在地单下拉框 */
select[name="city"] {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f7f7f7;
    font-size: 15px;
    color: #333;
    outline: none;
    cursor: pointer;
}
select[name="city"]:focus {
    border-color: #0066cc;
    background: #ffffff;
}
/* 提示信息 */
.form-msg {
    position: absolute;
    top: 44%; /* 垂直位置：刚好落在采购平台/联系方式行的中间 */
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 1px solid red;
    border-radius: 6px;
    padding: 14px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    font-size: 15px;
    text-align: center;
    z-index: 10;
    min-width: 200px;
    animation: msgPopIn 0.25s ease forwards;
    display: none;
}
@keyframes msgPopIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.88);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
.form-msg.error { color: #cf1322; }
.form-msg.success { color: #006b3c; }

@media (max-width: 768px) {
    .step-wrap {
        display: none;
    }
    /* 表单竖排显示 */
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    .form-popup-box {
        max-width: 92%;
    }
    .form-tip {
        text-align: center;
        font-size: 12px;
    }
}