/* ===================== 入驻表单弹窗 ===================== */
.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: 780px;
    padding: 40px 50px;
    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: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
}
.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;
}
.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: right;
    color: #ff0000;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 20px;
}
.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 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.form-submit-btn:hover {
    background-color: #004999;
}
.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) {
    /* 表单竖排显示 */
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    .form-popup-box {
        max-width: 92%;
        padding: 30px 20px;
    }
    .form-tip {
        text-align: center;
        font-size: 12px;
    }
}