
/* 表单容器 */
.form-container {
    flex: 1;
    padding: 0 15px;
    background-color: #fff;
}

/* 表单行样式 */
.form-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

/* 必填项标记 */
.required {
    color: #f00;
    margin-right: 5px;
    font-size: 18px;
}

/* 表单标签 */
.form-label {
    font-size: 18px;
    color: #333;
    width: 120px; /* 固定标签宽度，保证对齐 */
    flex-shrink: 0; /* 不收缩 */
}

/* 表单输入框 */
.form-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    color: #333;
    padding: 5px 0;
    background-color: transparent;
}

.form-input::placeholder {
    color: #999;
    font-size: 18px;
}

/* 选择项（区域/楼层）样式 */
.select-item {
    flex: 1;
    font-size: 18px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.select-arrow {
    font-size: 18px;
    color: #999;
}

.select-arrow img{
    width:24px;
}

/* 开关样式（是否有电梯） */
.switch-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.switch {
    position: relative;
    width: 50px;
    height: 30px;
    background-color: #e6e6e6;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.switch::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #fff;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
}

.switch.active {
    background-color: #0078d7;
}

.switch.active::after {
    left: 22px;
}

/* 图形验证码容器 */
.captcha-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    width: calc(100% - 120px);
}

.captcha-wrapper input {
    width:100px;
}

/* 图形验证码图片 */
.captcha-img {
    width: 100px;
    height: 40px;
    margin-left: 10px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.captcha-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 验证码按钮 */
.code-btn {
    width: 150px;
    height: 40px;
    line-height: 40px;
    background-color: #0078d7;
    color: #fff;
    text-align: center;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    flex-shrink: 0;
    padding:0 6px;
}

.code-btn.disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* 推荐码提示文字 */
.recommend-tip {
    font-size: 14px;
    color: #999;
    margin-left: 125px;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* 协议勾选行 */
.agreement-row {
    padding: 20px 0;
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.agreement-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agreement-checkbox.checked {
    background-color: #0078d7;
    border-color: #0078d7;
}

.agreement-checkbox.checked::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
}

.agreement-text {
    font-size: 16px;
    color: #333;
}

.agreement-link {
    color: #0078d7;
    text-decoration: none;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 50px;
    line-height: 50px;
    background-color: #0078d7;
    color: #fff;
    text-align: center;
    font-size: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

/* 适配小屏幕手机（320px及以下） */
@media (max-width: 320px) {
    .form-label {
        font-size: 16px;
        width: 100px;
    }
    .form-input, .select-item, .form-input::placeholder {
        font-size: 16px;
    }
    .code-btn {
        width: 120px;
        font-size: 14px;
        height: 35px;
        line-height: 35px;
    }
    .switch {
        width: 45px;
        height: 25px;
    }
    .switch::after {
        width: 21px;
        height: 21px;
    }
    .switch.active::after {
        left: 22px;
    }
    .agreement-text {
        font-size: 14px;
    }
    .submit-btn {
        height: 45px;
        line-height: 45px;
        font-size: 18px;
    }
    .main-nav .nav-title {
        font-size: 18px;
    }
}

/* 适配大屏手机（420px及以上） */
@media (max-width: 420px) {
    .form-label {
        font-size: 20px;
        width: 100px;
    }
    .form-input, .select-item, .form-input::placeholder {
        font-size: 20px;
    }
    .code-btn {
        width: auto;
        font-size: 16px;
        height: 45px;
        line-height: 45px;
    }
    .switch {
        width: 55px;
        height: 32px;
    }
    .switch::after {
        width: 28px;
        height: 28px;
    }
    .switch.active::after {
        left: 25px;
    }
    .agreement-text {
        font-size: 18px;
    }
    .submit-btn {
        height: 55px;
        line-height: 55px;
        font-size: 22px;
        margin-top: 20px;
    }
    .main-nav {
        padding: 20px 15px;
    }
    .main-nav .nav-title {
        font-size: 22px;
    }
}