@import "Mixins";
.online-test {
    @include container;
    margin-bottom: 40px;
    position: relative;
    &:after {
        clear: both;
    }
    &:after, &:before {
        content: " ";
        display: table;
    }
    .left {
        position: relative;
        float: left;
        width: 780px;
        background: #fff;

        hr{
            margin:30px 40px;
            background-color:#e0e0e0;
            height:1px;
            border:none;
        }
        .margin40{
            margin-top:40px;
        }
        .margin60{
            margin-top:60px;
        }
        p{
            font-size: 14px;
            color: #333333;
            height: auto;
            line-height: 24px;
            padding:0px 40px 5px 40px;
        }
        .code{
            ursor: pointer;
            clear: both;
            display: inline-block;
            height: 50px;
            line-height: 50px;
            background-color: #c9c9c9;
            @include font-size-color(16px, #fff);
            @include radius(3px);
            background-color: $main-color;
            width:116px;
            height: 50px;
            cursor:pointer;
            &.disabled{
                background-color: #c9c9c9;
            }
        }
    }
    .right {
        margin-left: 800px;
        position: relative;
        .test-need {
            width: 380px;
        }
        &.fix {
            .test-need {
                position: absolute;
                right: 0;
                top: 0;
                //@include prefix-property(transition, top .2s ease-in);
            }
        }
    }
    .form-title {
        height: 80px;
        line-height: 80px;
        border-bottom: 1px solid #e0e0e0;
        @include font-size-color(20px)
    }
    .check-mag-ul {
        padding: 30px 0;
        li {
            @include flex-box;
            @include pack-justify;
            height: 40px;
            line-height: 40px;
            h2 {
                @include font-size-color(14px, #999);
                &:last-child {
                    color: #333;
                }
            }
        }
        &.test2 {
            height: 150px;
            padding: 30px 0 0;
            overflow: hidden;
            @include prefix-property(transition, height .2s ease-in);
        }
    }
    .show-more {
        cursor: pointer;
        height: 30px;
        color: #c9c9c9;
        text-align: center;
        line-height: 30px;
        &.on {
            i {
                @include prefix-property(transition, all .2s ease-in);
                @include prefix-property(transform, rotate(180deg))
            }
        }
    }
}
.next-btn-box {
    padding-top: 20px;
    margin-bottom: 60px;
    text-align: center;
    .next-btn {
        cursor: pointer;
        clear: both;
        display: inline-block;
        width: 280px;
        height: 50px;
        line-height: 50px;
        background-color: #c9c9c9;
        @include font-size-color(16px, #fff);
        @include radius(3px);
        &.on {
            background-color: $main-color;
        }
        &.code{
            width:120px;
            height: 50px;
        }
    }
    .back-btn {
        margin-top: 40px;
        a {
            @include font-size-color(14px, $main-color);
            &:hover {
                color: $main-color;
                text-decoration: underline;
            }
        }
    }
}
.form-item-form {
    padding: 10px 0 20px;
    border-bottom: 1px solid #e0e0e0;
    &.border-w, &:last-child {
        border-bottom: 1px solid #fff;
    }
    &.mb-40 {
        padding-bottom: 40px;
    }
    h2 {
        position: relative;
        line-height: 14px;
        padding: 20px 0;
        @include font-size-color(14px);
        &:before {
            content: '';
            width: 3px;
            height: 14px;
            display: inline-block;
            margin-right: 10px;
            vertical-align: top;
            background-color: $main-color;
        }
        small {
            @include font-size-color(14px, #999)
        }
        span {
            float: right;
            cursor: pointer;
            line-height: 14px;
            @include font-size-color(14px, $main-color)
        }
    }
    input[type=text], input[type=tel] {
        height: 50px;
        background-color: #f8f8f8;
        @include font-size-color(14px);
        @include radius(3px);
        border: none;
        padding: 0 10px;
    }

    input.other-input {
        width: 128px;
        text-align: center;
    }
    input.type-input {
        width: 400px;
        //margin-bottom: 30px;
    }
    input.type-width{
        width:280px;
    }
    .radio {
        display: inline-block;
        margin-right: 20px;
        margin-bottom: 20px;
        &:nth-child(4n), &:last-child {
            margin-right: 0;
        }
        input {
            display: none
        }
        label {
            display: inline-block;
            width: 128px;
            height: 50px;
            line-height: 50px;
            text-align: center;
            background-color: #f8f8f8;
            @include font-size-color(14px);
            @include radius(3px);
            &:hover, &:active {
                color: #fff;
                @include box-shadow($box-shadow-color)
            }
            &:hover {
                background-color: $main-color;
            }
            &:active {
                background-color: $active-color;
            }
        }
        input:checked + label {
            background-color: $main-color;
            color: #fff;
        }
    }
    .number {
        display: inline-block;
        text-align: right;
        margin-right: 20px;
        @include font-size-color(14px, #999);
        width: 120px;
        height: 50px;
        line-height: 50px;
        float: left;
        &.even {
            width: 85px;
        }
    }
    .no-arr {
        width: 720px;
        height: 166px;
        background-color: #f8f8f8;
        text-align: center;
        img {
            width: 56px;
            height: 56px;
            margin-top: 40px;
            margin-bottom: 16px;
        }
        p {
            line-height: 14px;
            @include font-size-color(14px, #999);
            span {
                color: $main-color;
                cursor: pointer;
            }
        }
    }
    .address-list {
        li {
            position: relative;
            width: 720px;
            margin-bottom: 20px;
            padding: 40px 40px 20px;
            background-color: #f8f8f8;
            overflow: hidden;
            h4 {
                @include font-size-color(14px, #999);
                line-height: 14px;
                margin-bottom: 20px;
                span {
                    color: #333;
                }
                label {
                    cursor: pointer;
                    margin-left: 40px;
                    color: $main-color;
                }
            }
            h5 {
                position: absolute;
                top: -8px;
                right: -35px;
                width: 105px;
                height: 50px;
                line-height: 75px;
                text-align: center;
                background-color: #e0e0e0;
                @include font-size-color(10px);
                @include prefix-property(transform, rotate(45deg))
            }
            input[type=radio] {
                display: none
            }
            > label {
                cursor: pointer;
                position: absolute;
                top: 0;
                right: 0;
                width: 150px;
                height: 100%;
                text-align: right;
                z-index: 1;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: column;
            }
            input[type=radio]:checked + label {
                color: $main-color;
                i:before {
                    color: $main-color;
                    content: "\F3FF";
                }
            }
        }
    }
    p.error-msg {
        padding-top: 15px;
        padding-left: 105px;
        @include font-size-color(12px, #ff3f3f)
    }
}
.online-test-form {
    @include radius(5px);
    margin-bottom: 20px;
    padding: 0 30px;
    background-color: #fff;
    .msg {
        padding: 20px 0 40px;
        p {
            line-height: 20px;
            @include font-size-color(12px, #999);
            &:before {
                content: '';
                display: inline-block;
                width: 13px;
                height: 13px;
                vertical-align: -1px;
                margin-right: 5px;
            }
            &.icon {
                &:before {
                    // background: url("../images/test_prompt_icon_normal.png") no-repeat center;
                    background-size: 13px;
                }
            }
        }
    }
}
