.form-check-toggle {
    position: relative;
    padding-left: 0;
    line-height: 30px;
}
        
.form-check-toggle input {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 0%;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
}
        
.form-check-toggle input + span {
    cursor: pointer;
    user-select: none;
    height: 30px;
    margin-left: 70px;
    display: block;
}
        
.form-check-toggle input + span:before {
    content: '';
    position: absolute;
    left: 0;
    display: inline-block;
    height: 30px;
    width: 50px;
    background: #FFF;
    border: solid 1px #eff2f3;
    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border-radius: 15px;
}
        
.form-check-toggle input + span:after {
    width: 28px;
    height: 28px;
    margin-top: 1px;
    margin-left: 1px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    background: #FFF;
    transition: margin-left 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    font-weight: bold;
    content: '';
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2), 0 0 5px rgba(0, 0, 0, 0.05);
}
        
.form-check-toggle input:checked + span:after {
    content: '';
    margin-left: 21px;
    box-shadow: none;
}
        
.form-check-toggle input:checked + span:before {
    background-color: #c21b17;
    border-color: #c21b17;
    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
        
/* Disabled toggle styles */
.form-check-toggle-disabled {
    position: relative;
    padding-left: 0;
    line-height: 30px;
}
        
.form-check-toggle-disabled input {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 0%;
    margin: 0;
    cursor: not-allowed;
    opacity: 0 !important;
    filter: alpha(opacity=0);
}
        
.form-check-toggle-disabled input + span {
    cursor: not-allowed;
    user-select: none;
    height: 30px;
    margin-left: 70px;
    display: block;
}
        
.form-check-toggle-disabled input + span:before {
    content: '';
    position: absolute;
    left: 0;
    display: inline-block;
    height: 30px;
    width: 50px;
    background: #FFF;
    border: solid 1px #eff2f3;
    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border-radius: 15px;
}
        
.form-check-toggle-disabled input + span:after {
    width: 28px;
    height: 28px;
    margin-top: 1px;
    margin-left: 1px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    background: #FFF;
    transition: margin-left 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    font-weight: bold;
    content: '';
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2), 0 0 5px rgba(0, 0, 0, 0.05);
}
        
.form-check-toggle-disabled input:checked + span:after {
    content: '';
    margin-left: 21px;
    box-shadow: none;
}
        
.form-check-toggle-disabled input:checked + span:before {
    background-color: #aaa;
    border-color: #aaa;
    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}