.cui-input {
    font-size: 14px;
    border: solid 1px #cbcbcb;
    box-sizing: border-box;
    display: block;
    height: 37px;
    padding: 0 17px 0 15px;
    width: 100%;
}

.cui-input:focus {
    outline: none;
}

.cui-input--md,
.cui-input--sm {
    padding: 0 10px;
}

.cui-input--sm,
.cui-input--xs {
    height: 30px;
}

.cui-input--xs {
    display: inline-block;
    padding: 12px 10px 10px;
    width: 70px;
}

.cui-input--rounded {
    border-radius: 3px;
}

.cui-select {
    background: #fff;
    border: solid #cbcbcb 1px;
    border-radius: 3px;
    padding: 6px 5px 7px;
}

.cui-select:focus {
    outline: none;
}

.cui-select--sm {
    height: 30px;
    padding: 0 5px;
}

.cui-select--xs {
    display: inline-block;
    height: 30px;
    width: 70px;
}

.cui-radio,
.cui-checkbox {
    display: flex;
    position: relative;
}

.cui-radio__input,
.cui-checkbox__input {
    cursor: pointer;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}

.cui-radio__input:checked + .cui-radio__custom::after ,
.cui-checkbox__input:checked + .cui-radio__custom::after {
    background: #337ab7;
}

.cui-radio__custom,
.cui-checkbox__custom {
    background: #fafafa;
    border: 1px solid #bdbdbd;
    border-radius: 50%;
    display: inline-block;
    height: 16px;
    margin: 0 3px 0 0;
    padding: 5px;
    position: relative;
    vertical-align: top;
    width: 16px;
}

.cui-radio__custom::after,
.cui-checkbox__custom ::after {
    border-radius: 50%;
    bottom: 2px;
    content: "";
    left: 2px;
    position: absolute;
    right: 2px;
    top: 2px;
}

.cui-checkbox--inline {
    display: inline-block;
}

.cui-checkbox__input:checked + .cui-checkbox__custom {
    background: #337ab7;
    border: solid #337ab7 1px;
}

.cui-checkbox__input:checked + .cui-checkbox__custom::after {
    background: none;
    border: solid 2px #fff;
    border-left: 0;
    border-radius: 0;
    border-top: 0;
    height: 10px;
    left: 4px;
    position: absolute;
    top: 1px;
    transform: rotate(45deg);
    width: 6px;
}

.cui-checkbox__custom {
    background: none;
    border: 2px solid #bdbdbd;
    border-radius: 2px;
    height: 16px;
    margin: 0 20px 0 0;
    width: 16px;
}

.cui-checkbox__custom::after {
    background: none;
}

.cui-textarea {
    border: solid 1px #cbcbcb;
    display: block;
    width: 100%;
}

.cui-btn {
    font-size: 13px;
    appearance: none;
    border: 0;
    border-radius: 3px;
    color: #444 !important;
    display: inline-block;
    min-width: 190px;
    padding: 15px 5px;
    text-align: center;
    text-decoration: none;
}

.cui-btn:hover {
    text-decoration: none;
}

.cui-btn--primary {
    background: #02397b;
    color: #fff !important;
}

.cui-btn--secondary {
    background: #fafafa;
    border: solid 1px #ddd;
}

.cui-btn--sm {
    min-width: 140px;
}

.cui-form-group {
    display: block;
}

.cui-btn--field {
    margin-left: 10px;
    min-width: auto;
    padding: 9px 30px;
}

.cui-form-group--inline {
    display: inline-block;
}

@media only screen and (max-width: 979px) {
    .cui-btn {
        min-width: 0;
        padding: 15px;
    }

    .cui-field--md {
        max-width: 90%;
    }

    .cui-btn--min {
        margin: 10px auto;
        min-width: 190px;
    }
}

@media only screen and (max-width: 767px) {
    .cui-field--md {
        max-width: 100% !important;
    }

    .cui-select--xs {
        width: 70px;
    }
}

@media only screen and (max-width: 480px) {
    .cui-btn {
        width: 100%;
    }

    .cui-checkbox__custom {
        margin: 0 14px 0 0;
    }

    .cui-btn--field {
        margin-left: 0;
        margin-top: 10px;
    }
}
