.form-group {
    position: relative;
width: 100%;
}
.form-group  label:not(.input_grouped) {
    font-size: .85rem;
    line-height: 1;
    vertical-align: top;
}
.form-group .form-control + label:not(.input_grouped) {
    position: absolute;
    top: 1.15rem;
    z-index: 3;
    left: 1rem;
    pointer-events: inherit;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* width: calc(100% - 1rem); */
    transition: all 0.15s linear 0s;
}
.form-group .form-control-lg + label:not(.input_grouped),.form-control-lg.btn{
    font-size:1rem;
}
@media (max-width:575px){
    
    .form-group .form-control-lg:not(textarea) + label:not(.input_grouped) {
        top: calc(50% - 0.5rem);
    }
}
.form-group .form-control-lg:not(textarea) + label:not(.input_grouped) {
    top: calc(50% - 0.5rem);
}
.form-control-lg.btn,.form-control-lg{
    height: 52px;

}
.form-group textarea.form-control{
    padding-top:1rem;
    padding-bottom: 9px;
}
.form-group .form-control + label:not(.input_grouped){
    color:#aaaaaa;
    cursor: text;
}


.form-group .form-control{
    transition: all 0.15s linear 0s;
}
.form-group .form-control-lg{
    font-size: 1rem ;
}
.form-control {border-radius:  2px !important}
.form-control.outline-onhover.border-bottom{
    border-left: none;
    border-top: none;
    border-radius: 0px !important;
    border-right: none;
    padding-left: 0;
    border-color: #ced4da !important;
  }
  .form-control.outline-onhover.border-bottom:focus{
      box-shadow: none !important;
  }
  
/* ,.form-group .form-control:not(.form-control[value=""]) */
/* .form-group .form-control-lg:valid {
    border-color: #00ce68 !important;
    border-width: 2px !important;
}  */
.form-group .form-control:focus + label:not(.input_grouped),
.form-group .form-control.active + label:not(.input_grouped)

/* ,
.form-group .form-control.active + label:not(.input_grouped),
.form-group .form-control:valid + label:not(.input_grouped),
.form-group .form-control:not([value=""]) + label:not(.input_grouped)  */
{
    top: 0.25rem;
    font-size: 0.65rem;
    color: var(--primary-color);
}
.form-group .form-control:focus,.form-group .form-control:valid {
    padding-top: 1rem;
    padding-bottom: 9px;
    padding-left: 1rem;
}
.form-group select.form-control {
    background-color: #fff !important;
}
.form-group select.form-control-lg{font-size: 1rem!important;}
.form-group select.form-control:focus,.form-group select.form-control:valid {
    padding-top: 0.5rem;
    padding-bottom: 0px;
}

.input-group input {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}
.input-group input ~ .input-group-append button{
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}
/* .form-group select.form-control:focus + label:not(.input_grouped),
.form-group select.form-control:valid + label:not(.input_grouped), */
/* .form-group select.form-control:not([value=""]) + label:not(.input_grouped) 
{
    left: 0.5rem;
} */

.form-control.error + label:not(.input_grouped) {
    color: #fd0018 !important;
}
.form-control:focus {
    background-color: #fff;
    border-color: #cdcdcd;
    outline: 0;
    box-shadow: none;
    /* box-shadow: 0 0 0 0.2rem rgba(196, 148, 98, 0.25) */
}
.card .form-control{background-color: #fafafa !important;}
.form-control.error {
    background-color: #fff;
    border-color: #fd0018 !important;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 24, 0.4);
}
input.outline-onhover{
    border-color:transparent;
    transition: all .1s linear 0s;
    outline:none;
}
input.outline-onhover:hover{
    border-color:#c0c0c0;
}
input.outline-onhover:focus{
    border-color:#80bdff !important;
}

textarea.large{min-height: 500px;}

.form-check, .form-radio {
    position: relative;
    display: block;
   
}
.form-check {
    position: relative;
    display: block;
    padding-left: 1rem;
}
.form-check .form-check-label {
    font-size: 13px;
    line-height: 1.5;
    padding-left: 10px;
}

.form-check .form-check-label, .form-radio .form-check-label {
    display: block;
    padding-left: 0px;
    line-height: 1.5;
}
.form-check-label {
    margin-bottom: 0;
}
.form-check-label:not(.disabled), .form-radio-label:not(.disabled){cursor: pointer;}
.form-check .form-check-label input, .form-radio .form-check-label input {
    position: absolute;
    margin-left: -20px;
    margin-top: 4px\9;
    top: 0;
    left: 0;
    z-index: 1;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
    margin-top: 0;
}

.form-check .form-check-label input:checked + .input-helper:before {
    background-color: #ffffff;
}

.form-check .form-check-label .input-helper:before {
    position: absolute;
    content: "";
    top: 50%;
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 2px;
    left: 0;
    right:0;
    margin: auto;
    border: 2px solid #f2f2f2;
    -webkit-transition: all;
    -o-transition: all;
    transition: all;
    transition-duration: 0s;
    -webkit-transition-duration: 250ms;
    transition-duration: 250ms;
}
.form-check .form-check-label input:checked + .input-helper:after {
    width: 18px;
    opacity: 1;
    line-height: 18px;
    right:0;
    margin: auto;
    filter: alpha(opacity=100);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.form-check .input-helper, .form-radio .input-helper{
    font-family: "Font Awesome 5 Free";
}
.form-check .form-check-label .input-helper:after {
    -webkit-transition: all;
    -o-transition: all;
    transition: all;
    transition-duration: 0s;
    -webkit-transition-duration: 250ms;
    transition-duration: 250ms;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    content: '\f00c';
    position: absolute;
    font-size: 0.9375rem;
    font-weight: bold;
    left: 0;
    top: 14%;
    -moz-transform: translateY(-14%);
    -o-transform: translateY(-14%);
    -ms-transform: translateY(-14%);
    -webkit-transform: translateY(-14%);
    transform: translateY(-14%);
    color: #8862e0;
}
.form-check .form-check-label input:disabled + .input-helper:before {
    border-color: #f2f2f2;
}
.form-check .form-check-label input:disabled:checked + .input-helper:after {
    color: #f2f2f2;
}
.form-check.form-check-flat label input:checked + .input-helper:before {
    background-color: #00ce68;
    border: none;
}
.form-check.form-check-flat label .input-helper:after {
    color: #ffffff;
}
.form-check.form-check-flat label input:disabled:checked + .input-helper:before {
    background: #f7f7f9;
}
.form-check.form-check-flat label input:disabled + .input-helper:before {
    border-color: #f2f2f2;
}
.form-check.form-check-flat label input:disabled + .input-helper:after {
    color: #ffffff;
}


label.checkbox input:checked + .bg-light-hover{
    background-color: #f3f5f6 !important;
}

.bg-secondary,.bg-secondary-hover:hover,.bg-secondary-hover.active{
    background-color: #e5e5e5 !important;
}

.textarea-sm{
    min-height: 100px!important;
}
.textarea-md{
    min-height: 150px!important;
}
.textarea-lg{
    min-height: 200px!important;
}
.textarea-xl{
    min-height: 300px !important;
}
.textarea-h-100 {
    height: calc(100vh - 7.5rem) !important;
}

/* заполнение поля с телефоном */
/* input[type="tel"]::after{
    content: '+7';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    display: inline-block;
} */
input[type="tel"] ~ .input-tel_text_helper {
    position: absolute;
    top: 15px;
    left: 0.8rem;
    font-size: inherit;
}



/* MATERIAL RADIO -------------------------------------------------------------------------------------------- */
.pure-material-radio {
    z-index: 0;
    position: relative;
    display: inline-block;
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
    font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
    font-size: 1rem;
    line-height: 1.5;
}

/* Input */
.pure-material-radio > input {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    z-index: -1;
    display: none;
    position: absolute;
    left: -10px;
    top: -8px;
    display: block;
    margin: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    outline: none;
    opacity: 0;
    transform: scale(1);
    /* pointer-events: none; */
    transition: opacity 0.3s, transform 0.2s;
}

/* Span */
.pure-material-radio > span {
    display: inline-block;
    width: 100%;
    pointer-events: none;
    cursor: pointer;
}

/* Circle */
.pure-material-radio > span::before {
    content: "";
    display: inline-block;
    box-sizing: border-box;
    margin: 2px 10px 2px 0;
    border: solid 2px; /* Safari */
    border-color: var(--secondary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    vertical-align: top;
    transition: border-color 0.2s;
}

/* Check */
.pure-material-radio > span::after {
    content: "";
    display: block;
    position: absolute;
    top: 2px;
    left: 0;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    transform: translate(5px, 5px) scale(0);
    transition: transform 0.2s;
}

/* Checked */
.pure-material-radio > input:checked {
    background-color: var(--primary-color);
}

.pure-material-radio > input:checked + span::before {
    border-color: var(--primary-color);
}

.pure-material-radio > input:checked + span::after {
    transform: translate(5px, 5px) scale(1);
}

/* Hover, Focus */
.pure-material-radio:hover > input {
    opacity: 0.04;
}

.pure-material-radio > input:focus {
    opacity: 0.12;
}

.pure-material-radio:hover > input:focus {
    opacity: 0.16;
}

/* Active */
.pure-material-radio > input:active {
    opacity: 1;
    transform: scale(0);
    transition: transform 0s, opacity 0s;
}

.pure-material-radio > input:active + span::before {
    border-color: var(--primary-color);
}

/* Disabled */
.pure-material-radio > input:disabled {
    opacity: 0;
}

.pure-material-radio > input:disabled + span {
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    cursor: initial;
}

.pure-material-radio > input:disabled + span::before {
    border-color: currentColor;
}

.pure-material-radio > input:disabled + span::after {
    background-color: currentColor;
}



/* MATERIAL CHECKBOX ------------------------------------------------------------------------------------------------------------------------------ */

.pure-material-checkbox {
    z-index: 0;
    position: relative;
    display: inline-block;
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
    font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
    font-size: 1rem;
    line-height: 1.5;
}

/* Input */
.pure-material-checkbox > input {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    z-index: -1;
    position: absolute;
    left: -10px;
    top: -8px;
    display: block;
    margin: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    box-shadow: none;
    outline: none;
    opacity: 0;
    transform: scale(1);
    /* pointer-events: none; */
    transition: opacity 0.3s, transform 0.2s;
}

/* Span */
.pure-material-checkbox > span {
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

/* Box */
.pure-material-checkbox > span::before {
    content: "";
    display: inline-block;
    box-sizing: border-box;
    margin: 3px 11px 3px 1px;
    border: solid 2px; /* Safari */
    border-color: var(--secondary-color);
    border-radius: 2px;
    width: 18px;
    height: 18px;
    vertical-align: top;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Checkmark */
.pure-material-checkbox > span::after {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    left: 1px;
    width: 10px;
    height: 5px;
    border: solid 2px transparent;
    border-right: none;
    border-top: none;
    transform: translate(3px, 4px) rotate(-45deg);
}

/* Checked, Indeterminate */
.pure-material-checkbox > input:checked,
.pure-material-checkbox > input:indeterminate {
    background-color: var(--primary-color);
}

.pure-material-checkbox > input:checked + span::before,
.pure-material-checkbox > input:indeterminate + span::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.pure-material-checkbox > input:checked + span::after,
.pure-material-checkbox > input:indeterminate + span::after {
    border-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
}

.pure-material-checkbox > input:indeterminate + span::after {
    border-left: none;
    transform: translate(4px, 3px);
}

/* Hover, Focus */
.pure-material-checkbox:hover > input {
    opacity: 0.04;
}

.pure-material-checkbox > input:focus {
    opacity: 0.12;
}

.pure-material-checkbox:hover > input:focus {
    opacity: 0.16;
}

/* Active */
.pure-material-checkbox > input:active {
    opacity: 1;
    transform: scale(0);
    transition: transform 0s, opacity 0s;
}

.pure-material-checkbox > input:active + span::before {
    border-color: var(--primary-color);
}

.pure-material-checkbox > input:checked:active + span::before {
    border-color: transparent;
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
}

/* Disabled */
.pure-material-checkbox > input:disabled {
    opacity: 0;
}

.pure-material-checkbox > input:disabled + span {
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    cursor: initial;
}

.pure-material-checkbox > input:disabled + span::before {
    border-color: currentColor;
}

.pure-material-checkbox > input:checked:disabled + span::before,
.pure-material-checkbox > input:indeterminate:disabled + span::before {
    border-color: transparent;
    background-color: currentColor;
}


/* MATERIAL SWITCH ---------------------------------------------------------------------------- */
.pure-material-switch {
    z-index: 0;
    position: relative;
    display: inline-block;
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
    font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
    font-size: 16px;
    line-height: 1.5;
}

/* Input */
.pure-material-switch > input {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    z-index: -1;
    position: absolute;
    right: 6px;
    top: -8px;
    display: block;
    margin: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    outline: none;
    opacity: 0;
    transform: scale(1);
    /* pointer-events: none; */
    transition: opacity 0.3s 0.1s, transform 0.2s 0.1s;
}

/* Span */
.pure-material-switch > span {
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

/* Track */
.pure-material-switch > span::before {
    content: "";
    float: right;
    display: inline-block;
    margin: 5px 0 5px 10px;
    border-radius: 7px;
    width: 36px;
    height: 14px;
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    vertical-align: top;
    transition: background-color 0.2s, opacity 0.2s;
}

/* Thumb */
.pure-material-switch > span::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 16px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    background-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s, transform 0.2s;
}

/* Checked */
.pure-material-switch > input:checked {
    right: -10px;
    background-color: var(--white-color);
}

.pure-material-switch > input:checked + span::before {
    background-color: var(--secondary-color);
}

.pure-material-switch > input:checked + span::after {
    background-color: var(--white-color);
    transform: translateX(16px);
}

/* Hover, Focus */
.pure-material-switch:hover > input {
    opacity: 0.04;
}

.pure-material-switch > input:focus {
    opacity: 0.12;
}

.pure-material-switch:hover > input:focus {
    opacity: 0.16;
}

/* Active */
.pure-material-switch > input:active {
    opacity: 1;
    transform: scale(0);
    transition: transform 0s, opacity 0s;
}

.pure-material-switch > input:active + span::before {
    background-color: var(--muted-color);
}

.pure-material-switch > input:checked:active + span::before {
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
}

/* Disabled */
.pure-material-switch > input:disabled {
    opacity: 0;
}

.pure-material-switch > input:disabled + span {
    color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0));
    opacity: 0.38;
    cursor: default;
}

.pure-material-switch > input:disabled + span::before {
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
}

.pure-material-switch > input:checked:disabled + span::before {
    background-color: var(--muted-color);
}


input[type="range"] { 
    -webkit-appearance: none;
    position: absolute;
    height: 10px;
    outline: none;
    width: 200px;
    margin-top: -0.2rem !important;
    cursor: pointer;
    border-radius: 0; /* iOS */
}

::-webkit-slider-runnable-track {
    background: var(--muted-color);
    height: 4px;
    width: 100%;
    border-radius: 0.35rem;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

/*
 * 1. Set to 0 width and remove border for a slider without a thumb
 */

::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px; /* 1 */
    height: 15px;
    background: var(--primary-color);
    cursor: pointer;
    margin-top: -6px;
    border-radius: 100%;
    box-shadow: -100% 0 0 50vw var(--primary-color);
    /* border: 2px solid #999;   */
}



::-moz-range-track {
    height: 20px;
    background: #ddd;
}

::-moz-range-thumb {
    background: #fff;
    height:20px;
    border-radius: 100%;
    width: 20px;
    border: 3px solid #999;
    border-radius: 0 !important;
    box-shadow: -100vw 0 0 100vw var(--primary-color);
    box-sizing: border-box;
}

::-ms-fill-lower { 
    background:var(--primary-color);
}

::-ms-thumb { 
    background: #fff;
    border: 2px solid #999;
    height: 20px;
    width: 20px;
    border-radius: 100%;

    box-sizing: border-box;
}

::-ms-ticks-after { 
    display: none; 
}

::-ms-ticks-before { 
    display: none; 
}

::-ms-track { 
    background: #ddd;
    color: transparent;
    height: 40px;
    border: none;
}

::-ms-tooltip { 
    display: none;
}