/***
 *  Simple Pure CSS Star Rating Widget Bootstrap 4 
 * 
 *  www.TheMastercut.co
 *  
 ***/

@import url('https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css');

/* Styling h1 and links
––––––––––––––––––––––––––––––––– */
/*h1[alt="Simple"] {
	color: white;
}

a[href], a[href]:hover {
	color: grey;
	font-size: 0.5em;
	text-decoration: none
}*/


/*body {
	background: #4a4a4c !important;
}*/

.starrating > input {
    display: none;
}
/* Remove radio buttons */

.starrating > label:before {
    content: "\f005"; /* Star */
    font-size: 8em;
    font-family: FontAwesome;
    display: block;
    line-height: 1;
    width:100%;
}

.starrating > label {
    color: #e4e4e4;
    font-size: 6px;
    position: relative;
    cursor: pointer;
    margin-right: 0;
    margin-bottom:20px;
    width:20%;
    text-align:center;
}

.starrating > label:last-child {
    margin-right: 0;
}

.starrating > label:hover,
.starrating > label.hover,
.starrating > label.checked {
    color: #ffca08;
}

.starrating > label > span {
    font-size: 11px !important;
    position: static;
    top: -22px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--primary);
    font-weight: 500;
}



.survey .survey-row {
    width: 100%;
    float: left;
    padding: 16px;
}

.survey .survey-row:nth-child(even) {
    background-color: var(--light-l4);
}

.survey .survey-row:nth-child(odd) {
    background-color: #fff;
}

.survey .survey-row .question {
    width: 100%;
    float: left;
    margin-bottom: 10px;
}

.survey .survey-row .question label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}



/*CUSTOM RADIO*/

.custom-control-label::before {
    top: 0.2rem;
    left: -1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #fff;
    border: 1px solid #d9d9d9;
}

.custom-radio {
    width: 100%;
    float: left;
    margin-bottom: 10px;
}

.custom-radio label {
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 0.5rem;
    padding-left: 8px;
    padding-top: 4px;
    color: var(--primary);
    font-weight:400;
}

.custom-radio input {
    cursor: pointer;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #fff;
    border: 1px solid var(--secondary);
}

.custom-radio .custom-control-label:hover.custom-control-label::before {
    box-shadow: 0px 2px 5px rgba(0, 117, 201, 0.6);
}
.custom-radio .custom-control-label::after {
    top: 0.45rem;
    left: -1.25rem;
    width: 1rem;
    height: 1rem;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
    background-image: none;
    background-color: var(--secondary);
    border-radius: 50%;
    border: 2px solid white;
}

.custom-radio .custom-control-input:disabled ~ .custom-control-label::before {
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
}

.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: #e9ecef;
}

.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::after {
    background-color: #9ca0b1;
    background-image: none;
    border-radius: 50%;
    border: 2px solid #e9ecef;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #fff;
    border: 1px solid var(--secondary);
}

.custom-checkbox .custom-control-label:hover.custom-control-label::before {
    box-shadow: 0px 2px 5px rgba(0, 117, 201, 0.6);
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: none;
    border-right: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    width: 7px;
    height: 15px;
    top: 6px;
    left: -15px;
    transform: rotate(45deg);
}

.custom-checkbox .custom-control-label::after {
    top: -0.1rem;
    left: -1.75rem;
    width: 2rem;
    height: 2rem;
}

.custom-checkbox .custom-control-label {
    font-weight: 400;
}

.custom-checkbox .custom-control-input:disabled ~ .custom-control-label::before {
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
}

.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: #e9ecef;
}

.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='25.412' height='19.855' viewBox='0 0 25.412 19.855'%3e%3cpath id='check' d='M22.6,3.8,8,19.4,1.4,11.7,0,12.9l7.9,9.3L24,5.1Z' transform='translate(0.703 -3.095)' fill='%239ca0b1' stroke='%239ca0b1' stroke-width='1'/%3e%3c/svg%3e ");
}


.survey-checkboxes .custom-checkbox:nth-child(4n+0) {
    /*display: table-column;*/
}

.custom-control-label {
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 0.5rem;
    padding-left: 8px;
    padding-top: 4px;
    color: #6d7072;
}

.line-break {
    width: 100%;
}

.survey-checkboxes {
    display: inline-block;
}

.survey-checkboxes .custom-checkbox {
    display: inline-block;
    position: relative;
    float: left;
    width: 150px;
}

.custom-checkbox:nth-child(4n+1) + .custom-checkbox {
    clear: both;
}

/*CUSTOM RADIO*/



.survey .head {
    border-bottom: 2px solid #000;
    padding: 40px 0 10px 0px;
    float: left;
    width: 100%;
}

.survey .head .left {
    float: left;
    max-width:50%;
}

.survey .head h1 {
    font-weight: 600;
    font-size: 20px;
    color: #c5103d;
    text-align: center;
}
.survey .head .title {
    font-size: 14px;
}
.survey .head .left .date {
    float: left;
    clear: both;
    font-size: 14px;
}

.survey .head .left .date i {
    color: var(--dark-l1);
    margin-right: 5px;
}

.survey .head .left .date label {
    color: var(--dark-l1);
}


.survey .head .left .address {
    float: left;
    clear: both;
    font-size: 14px;
}

.survey .head .left .address i {
    color: var(--dark-l1);
    margin-right: 5px;
}

.survey .head .left .address label {
    color: var(--dark-l1);
}


.survey .head .right {
    float: right;
    margin-top: 0;
    max-width:50%;
}


.survey .head .right .person-information {
    float: right;
    margin-right: 0;
    text-align: left;
    width: calc( 100% - 50px );
}

.survey .head .right .person-information .name-surname {
    color: var(--dark-l1);
    font-weight: 600;
    font-size: 14px;
}

.survey .head .right .person-information .mode {
    color: var(--success);
    font-size: 12px;
    margin-bottom:8px;
}

.survey .head .right .person-information .mode i {
    font-size: 6px;
    margin-right: 5px;
    float: left;
    margin-top: 6px;
}

.survey .head .right .person-img {
    float: left;
    padding-right: 10px;
    width:50px;
}

.survey .head .right .person-img img {
    width: 38px;
    border-radius: 100px;
    float: left;
    margin-right:20px;
}
.survey .head .right .person-img:last-child img {
    margin-right:0;
}


@media (max-width: 767px) {
    .survey .head .right {
        float: right;
        margin-top: 0;
        margin-bottom: 0;
    }

    .header .logo-row a {
        float: left;
    }

    .header .logo-row .lang {
        right: 15px !important;
    }
    .survey .head .right .person-information {
        text-align:right
    }
    .survey .head .right .person-img {
        float:right;
        padding: 0 0 0 10px;
        width:40px;
    }
}

.alert-warning {
    color: var(--warning-d4);
    background-color: var(--warning-l4);
    border-color: var(--warning-l2);
}


.header .logo-row .lang {
    position: absolute;
    right: 15px;
    top: 30px;
}

.custom-select {
    font-size: 14px !important;
    color: #6d7072;
}

.custom-textbox {
    /*border: 1px solid var(--info);*/
}



/*LANGUAGE SELECT*/

.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #c5103d !important;
}

.btn-light:not(:disabled):not(.disabled).active:focus, .btn-light:not(:disabled):not(.disabled):active:focus, .show > .btn-light.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgb(255 255 255 / 50%);
}

.btn-light:not(:disabled):not(.disabled).active, .btn-light:not(:disabled):not(.disabled):active, .show > .btn-light.dropdown-toggle {
    color: #6d7072;
    background-color: #f4f4f4;
    border-color: #ffffff;
}

.bootstrap-select .dropdown-toggle:focus, .bootstrap-select > select.mobile-device:focus + .dropdown-toggle {
    /*outline: thin dotted #333 !important;*/
    outline: 0px !important;
    /*outline-offset: -2px;*/
}

.lang .dropdown-item {
    padding: .25rem 1.5rem .25rem .7rem !important;
}

.lang .dropdown-toggle {
    font-size: .875rem !important;
}


.lang .dropdown-item {
    font-size: .875rem !important;
}

/*LANGUAGE SELECT*/

.has-error {
    border: 1px solid red;
}

.validation-error-message {
    display: none !important;
}

.btn-done {
    padding: 6px 30px;
    font-size: 15px;
    font-weight: 700;
}

.survey-table {
    font-size: 12px;
}

.survey-table thead th {
    color: #6d7072;
    text-align: center;
    border-bottom: 0px !important;
}

.survey-table tbody th {
    color: #6d7072;
    display: flex;
    align-items: center;
    padding: 10px 10px 10px 0;
    min-height: 150px;
}

.survey-table tbody td {
    color: #6d7072;
    text-align: center;
    padding:0px !important;
}



.radio-toolbar input[type="radio"] {
    display: none;
}

.radio-toolbar input[type="radio"]:checked + label {
    background-color: #c5103d;
    color: #e8e8e8;
}



.radio-toolbar td {
    vertical-align: middle;
}

.radio-toolbar td label {
    padding: 10px;
    min-height: 150px;
    cursor: pointer;
    display: flex;
    align-items: center;
}







@media(max-width:991px) {
    .survey-table tbody th {
        display: block !important;
    }

    .survey-table tbody td {
        vertical-align: top !important;
    }
}




.scrollText {
    border: 1px #c5103d solid;
    border-radius: 4px;
    height: 150px;
    overflow: auto;
}
.custom-btn {
    background-color: var(--info);
    border-color: var(--info);
    color: #fff;
}
.custom-btn:hover {
    color: #fff;
}


.req-error,
.survey .survey-row:nth-child(odd).req-error,
.survey .survey-row:nth-child(even).req-error {
    border: 1px var(--danger) solid;
    background-color: var(--danger-l4) !important;
}

.starrating.risingstar {
    display: flex;
    width: calc(100% + 32px);
    margin: 0 -16px;
}

.form-control:disabled, .form-control[readonly] {
    background: var(--light-l2);
}