﻿.radio {
    padding-left: 20px;
}

    .radio label {
        display: inline-block;
        vertical-align: middle;
        position: relative;
        padding-left: 5px;
    }


        .radio label::before {
            content: "";
            display: inline-block;
            position: absolute;
            left: 0;
            margin-left: -20px;
            border-radius: 50%;
            background-color: #fff;
            -webkit-transition: border 0.15s ease-in-out;
            -o-transition: border 0.15s ease-in-out;
            transition: border 0.15s ease-in-out;
        }

        .radio label::after {
            display: inline-block;
            position: absolute;
            content: " ";
            left: 3px;
            top: 3px;
            margin-left: -20px;
            border-radius: 50%;
            background-color: #555555;
            -webkit-transform: scale(0, 0);
            -ms-transform: scale(0, 0);
            -o-transform: scale(0, 0);
            transform: scale(0, 0);
            -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
            -moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
            -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
            transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
        }


.radio-sm input {
    margin-top: 5px;
    width: 17px;
    height: 17px;
}

.radio-sm label::before {
    margin-top: 5px;
    width: 17px;
    height: 17px;
}

.radio-sm label::after {
    margin-top: 5px;
    width: 11px;
    height: 11px;
}

.radio-md input {
    margin-top: 3px;
    width: 23px;
    height: 23px;
}

.radio-md label::before {
    margin-top: 2px;
    width: 23px;
    height: 23px;
}

.radio-md label::after {
    margin-top: 2px;
    width: 17px;
    height: 17px;
}

.radio-lg input {
    width: 27px;
    height: 27px;
}

.radio-lg label::before {
    width: 27px;
    height: 27px;
}

.radio-lg label::after {
    width: 21px;
    height: 21px;
}

.radio input[type="radio"] {
    opacity: 0;
    z-index: 1;
}

    .radio input[type="radio"]:focus + label::before {
        outline: thin dotted;
        outline: 5px auto -webkit-focus-ring-color;
        outline-offset: -2px;
    }

    .radio input[type="radio"]:checked + label::after {
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }

    .radio input[type="radio"]:disabled + label {
        opacity: 0.65;
    }

        .radio input[type="radio"]:disabled + label::before {
            cursor: not-allowed;
        }

.radio.radio-inline {
    margin-top: 0;
}

.radio-agree label::before {
    border: 2px solid #4c9070;
}

.radio-agree input[type="radio"] + label::after {
    background-color: #4c9070;
}

.radio-agree input[type="radio"]:checked + label::before {
    border-color: #4c9070;
}

.radio-agree input[type="radio"]:checked + label::after {
    background-color: #4c9070;
}

.text-agree {
    color: #4c9070;
}


.radio-disagree label::before {
    border: 2px solid #94657e;
}

.radio-disagree input[type="radio"] + label::after {
    background-color: #94657e;
}

.radio-disagree input[type="radio"]:checked + label::before {
    border-color: #94657e;
}

.radio-disagree input[type="radio"]:checked + label::after {
    background-color: #94657e;
}

.text-disagree {
    color: #94657e;
}

input[type="checkbox"].styled:checked + label:after,
input[type="radio"].styled:checked + label:after {
    font-family: 'FontAwesome';
    content: "\f00c";
}

input[type="checkbox"] .styled:checked + label::before,
input[type="radio"] .styled:checked + label::before {
    color: #fff;
}

input[type="checkbox"] .styled:checked + label::after,
input[type="radio"] .styled:checked + label::after {
    color: #fff;
}
