.django-form {
    /*border: 1px solid red;*/
    line-height: 60px;
}

.django-form label {
    font-size: 14px;
    text-align: right;
    width: 20%;
    padding-right: 12px;
    color: #606266;
    display: inline-block;
}

.django-form input {
    border-radius: 4px;
    border: 1px solid #dedfe6;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    outline: 0;
    padding: 0 15px;
    width: 76%;
    overflow: visible;
}

.django-form select {
    border-radius: 4px;
    border: 1px solid #dedfe6;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    outline: 0;
    padding: 0 15px;
    width: 76%;
    overflow: visible;
}

.django-form textarea {
    margin-top: 10px;
    vertical-align: top;
    resize: none;
    display: block;
    padding: 5px 15px;
    box-sizing: border-box;
    width: 76%;
    font-size: inherit;
    color: #606266;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    overflow: auto;
    outline: none;
}

.django-form .form-captcha {
    width: 50%;
    /*width: 61.6%;*/
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.django-form .captcha-get {
    background-color: #f5f7fa;
    color: #909399;
    border: 1px solid #dcdfe6;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    width: 26%;
    cursor: pointer;
    text-align: center;
    margin-left: -5px;
    padding-top: 1px;
    word-wrap: break-word;
    white-space: normal;
    display: inline-block;
    height: 37px;
    line-height: 38px !important;
    font-size: 12px;
}

.django-form .helptext {
    display: none;
}

.django-form textarea {
    display: inline;
}

.django-form .errorlist {
    font-size: 12px;
    color: #f56c6c;
    line-height: 20px !important;
    margin-left: 22%;
    margin-top: 0;
    margin-bottom: 0;
}

.django-form .errorlist li {

    list-style-type: none;
}

.django-form br {
    display: none;
    height: 0 !important;
}
.django-form .btn{
    color: #ffffff;
    background-color: #409eff;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid #409eff;
    -webkit-appearance: none;
    text-align: center;
    box-sizing: border-box;
    outline: 0;
    margin: 0;
    font-weight: 500;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 4px;
}

/* ==========================================================
   手机端表单：标签占满一行，输入控件全宽，避免横向溢出
   ========================================================== */
@media only screen and (max-width: 767px) {
    .django-form {
        line-height: 40px;
    }

    .django-form label {
        width: 100%;
        text-align: left;
        padding-right: 0;
    }

    .django-form input,
    .django-form select,
    .django-form textarea {
        width: 100%;
    }

    .django-form .form-captcha {
        width: 60%;
    }

    .django-form .captcha-get {
        width: 40%;
    }

    .django-form .errorlist {
        margin-left: 0;
    }
}