/********** form.css **********/
.zm-form {
    font-size: 0;
    cursor: default;
}

/* 行内表格 */
.zm-form.zm-form-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    margin-left: -20px;
    margin-top: -20px;
}

.zm-form .zm-form-item:not(:first-child) {
    margin-top: 20px;
}

.zm-form.zm-form-inline .zm-form-item {
    margin: 20px 0px 0px 20px;
}

.zm-form .zm-form-item .zm-form-label {
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: #0D2042;
}

/* 必填 */
.zm-form .zm-form-item.zm-required .zm-form-label::after {
    content: '*';
    color: #FF6666;
    margin-left: 6px;
}

.zm-form .zm-form-item .zm-form-error-tips {
    margin-top: 8px;
    font-size: 14px;
    color: #FF6666;
}

/********** 输入框 **********/
input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #E6E9EF;
    border-radius: 6px;
    background: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #0D2042;
}

input[type="text"]:disabled,
input[type="password"]:disabled,
select:disabled,
textarea:disabled {
    background-color: #eee;
}

/********** 复选框 checkbox **********/
input[type="checkbox"] {
    margin: 2px 2px 3px 2px;
    width: 12px;
    height: 12px;
    vertical-align: bottom;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border: 1px solid #979797;
    border-radius: 2px;
    background-color: white;
    background-size: 100% 100%;
}

/* checked 样式 */
input[type="checkbox"]:checked::after {
    border: none;
    background-image: url("../images/icon/icon_checkbox.png");
}

/* disabled 样式 */
input[type="checkbox"]:disabled::after {
    cursor: no-drop;
}

/* checkbox 父容器 */
.zm-checkbox {
    display: inline-block;
    font-size: 0;
    line-height: 0;
    cursor: default;
}

label.zm-checkbox {
    cursor: pointer;
}

.zm-checkbox input[type="checkbox"]~span {
    margin-left: 10px;
    font-weight: 400;
    font-size: 16px;
    color: #0D2042;
    line-height: 20px;
}

/* 题目里的复选框 */
.zm-question-wrapper input[type="checkbox"] {
    margin: 4px;
}

.zm-question-wrapper input[type="checkbox"]::after {
    top: -4px;
    left: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.zm-question-wrapper input[type="checkbox"]:checked::after {
    background-image: url("../images/icon/icon_radio.png");
}

/* 选择正确 样式 */
.zm-question-wrapper input[type="checkbox"].zm-correct:disabled::after {
    border: none;
    background-image: url("../images/icon/icon_radio_correct.png");
}

/* 选择错误 样式 */
.zm-question-wrapper input[type="checkbox"].zm-error:disabled::after {
    border: none;
    background-image: url("../images/icon/icon_radio_error.png");
}

/********** 单选 radio **********/
input[type="radio"] {
    width: 20px;
    height: 20px;
    vertical-align: bottom;
    cursor: pointer;
    position: relative;
}

input[type="radio"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 1px solid #979797;
    border-radius: 50%;
    background-color: white;
    background-size: 100% 100%;
}

/* checked 样式 */
input[type="radio"]:checked::after {
    border: none;
    background-image: url("../images/icon/icon_radio.png");
}

/* disabled 样式 */
input[type="radio"]:disabled::after {
    cursor: no-drop;
}

/* 选择正确 样式 */
input[type="radio"].zm-correct:disabled::after {
    border: none;
    background-image: url("../images/icon/icon_radio_correct.png");
}

/* 选择错误 样式 */
input[type="radio"].zm-error:disabled::after {
    border: none;
    background-image: url("../images/icon/icon_radio_error.png");
}

/********** 下拉选择框 **********/
.select2-container--default .select2-selection--single {
    height: 46px;
    box-sizing: border-box;
    padding-top: 12px;
    outline: none;
    border: 1px solid #E6E9EF;
    border-radius: 3px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 10px;
    padding-right: 24px;
    font-size: 14px;
    line-height: 20px;
    color: #0D2042;
}

/** 自定义select下拉按钮 */
.select2-container--default .select2-selection--single.zm-select2 .select2-selection__arrow {
    top: 14px;
    right: 10px;
    width: 8px;
    height: 8px;
}

.select2-container--default .select2-selection--single.zm-select2 .select2-selection__arrow b {
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    border: 2px solid #999;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

.select2-container--default.select2-container--open .select2-selection--single.zm-select2 .select2-selection__arrow b {
    transform: rotate(135deg);
    margin-top: 2px;
}

/** 自定义select2 下拉背景色 */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #EBEBEB;
    color: #0D2042;
}

.select2-container--default .select2-results__option--selected {
    background: #fff;
}

.select2-dropdown {
    border: none;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.25);
    background: #fff;
    border-radius: 0;
}

.select2-container--open .select2-dropdown {
    top: 4px
}

.select2-container--open .select2-dropdown.select2-dropdown--above {
    top: -4px;
}

.select2-results__option {
    padding: 9px 10px;
}