/*style*/
.form{}
.form__title{
    margin-bottom: 32px;
    font-family: var(--font_roboto_slab);
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    color: var(--black1);
}
.form__textpolit{
    color: var(--black3);
    margin-bottom: 0;
    font-size: 14px;
}
.form__textpolit a{
    color: inherit;
    text-decoration: underline;
}
.form__textimpblue{
    color: var(--blue1);
    margin-bottom: 40px;
    font-weight: 700;
}
/*.form__crib{
    margin-bottom:33px;
}*/
/*.form__link{
    text-decoration: none !important;
    border-bottom: 1px solid #8D8DA8;
    color: inherit !important;
}*/
/*fields*/
/*.form__flex{
    display: flex;
}
.form__grid{
    display: grid;
}*/
/*.form__fields > :last-child{
    margin-bottom: 0;
} 
.form__fields{
  margin-bottom: 4px;
}*/
.form__input, .form__textarea{
    border: 1px solid var(--black4);
    border-radius: 16px;
    height: 52px;
    width: 100%;
    padding: 0 16px;
    font-family: var(--font_inter);
    font-weight: normal;
    font-size: 18px;
    margin-bottom: 32px;
    color: var(--black1);
}
.form__textarea{
    padding-top:12px;
    padding-bottom: 12px;
    height:100px;
    line-height: 150%;
}
.form__textarea_2{
    height:160px;
    margin-bottom: 40px;
}
.form__input:focus, .form__textarea:focus, .form__input:hover, .form__textarea:hover{
    border-color: var(--blue1);
}
.form__label{
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    padding-left: 17px;
}
/*.form__input_hidden{
  display: none;
}*/
/*file*/
.form__file{
    position:relative;
    width:auto;
    cursor:pointer;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex:1;
    margin-bottom: 40px;
}
.form__file > input[type="file"]{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    border:0
}
.form__file > .form__fileclear{
    display: none;
    margin-left: 16px;
    min-width: 32px;
}
.form__file_add > .form__fileclear{
    display: inline-flex;
}
.form__file:before{
    content: 'Выбрать файл';
    padding-left: 32px;
    padding-right: 8px;
    background: url('i/icon-file-plus.svg') 8px center no-repeat;
    height:32px;
    border: 1px solid var(--red1);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    font-family: var(--font_inter);
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--red1);
    margin-right: 24px;
}
.form__file_add:before{
    content: 'выбрано';
    background-color: transparent !important;
    color: var(--black4) !important;
    border-color: var(--black4);
    background-image: url('i/icon-file-check.svg');
    background-position-x: 92%;
    padding-right: 32px;
    padding-left: 8px;
}
.form__file > .form__filetext{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    word-wrap:normal;
    font-family: var(--font_inter);
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 150%;
    color: var(--black3);
    max-width: 290px;
    display: none;
}
.form__file_add > .form__filetext{
    display: block;
}
.form__filetitle{
    margin-bottom: 24px;
    font-family: var(--font_roboto_slab);
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    color: var(--black1);

}
.form__file:hover:before{
    background-color: #FFEBEF;
}
/*.form__file:hover .form__filetext{
    color: var(--black);
} */
/*checkbox*/
/*.form__checkbox {
    display: flex;
    position: relative;
    margin-bottom: 17px;
    font-family: Fira Sans;
    font-style: normal;
    font-weight: 300;
    font-size: 18px;
    line-height: 150%;
    font-feature-settings: 'pnum' on, 'lnum' on;
    color: #323232;
    cursor: pointer;
}
.form__checkbox:before {
    content: '';
    background: #FFFFFF;
    border: 1px solid #D3D3D3;
    box-shadow: inset 1px 1px 4px rgba(50, 50, 50, 0.25);
    width: 20px;
    min-width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 20px;
}
.form__checkbox_checked:before{
    background: #FFDC59;
    border-color: #FFDC59;
    box-shadow: none;
}
.form__checkbox_checked:after {
    content: '';
    background: url(i/icon-checked.svg) center no-repeat;
    width: 22px;
    height: 22px;
    position: absolute;
    top: 0;
    left: 0;
}*/
/*other*/
.form__error {
    border-color: var(--red1) !important;
}
.form__checkbox_enabled_send.form__error + .form__checkboxlabel:before {
    border: 1px solid var(--red1) !important;
}
.form__ertext {
    /*min-height: 26px;
    margin-bottom: 10px;
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 300;
    font-size: 12px;
    line-height: 120%;
    color: #FF0000;*/
}
.form__button {
    width: 100%;
    margin-bottom: 24px;
}
.form__answer{
    display: none;
}
/*placeholder*/
::-webkit-input-placeholder { color: var(--black3); }
::-moz-placeholder { color:var(--black3); }
:-ms-input-placeholder { color:var(--black3); }
:-moz-placeholder { color:var(--black3); }
.placeholder{ ccolor:var(--black3); }

/*offices*/
.form__offices{
    position: relative;
    margin-bottom: 32px;
}
.form__offcur{
    border: 1px solid var(--black4);
    border-radius: 16px;  
    height:52px;
    padding-right: 14px;
    padding-left: 16px;
    display: flex;
    align-items: center;
    font-size: 18px;
    color: var(--black1);  
    justify-content: space-between; 
}
.form__offcur > svg{
    min-width: 24px;
    margin-left:8px;
}
.form__offcur > span{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
}
.form__offcur:hover{
    border-color: var(--blue1);
}
.form__offcur[disabled]{
    background-color: var(--black6);
    color: var(--black4);
    border-color: var(--black4);
}
.form__offlist{
    position: absolute;
    top:52px;
    left:0;
    display: none;
    width: 100%;
    z-index: 3;
    box-shadow: 0px 16px 32px rgba(32, 34, 37, 0.12);
    border-radius: 16px;
    padding: 8px;
    background-color: var(--white);
    overflow-x: auto;
    max-height: 200px;
}
.form__offlist::-webkit-scrollbar{ width: 3px; height: 3px;}
.form__offlist::-webkit-scrollbar-button {  background-color: #D2D8E4; display: none;}
.form__offlist::-webkit-scrollbar-track {  background-color: #D2D8E4;}
.form__offlist::-webkit-scrollbar-track-piece { background-color: #F5F7F6;}
.form__offlist::-webkit-scrollbar-thumb { height: 50px; background-color: #D2D8E4; border-radius: 3px;}
.form__offlist::-webkit-scrollbar-corner { background-color: #D2D8E4;}
.form__offlist::-webkit-resizer { background-color: #D2D8E4;}
.form__offitem{
    display: flex;
    font-size: 18px;
    color: var(--black1);
    padding: 12px 16px;
    min-height: 52px;
    margin-bottom: 8px;
    align-items: center;
    color: var(--black1);
    font-size: 18px;
    border-radius: 16px;
}
.form__offitem_cur{
    cursor: unset !important;
}
.form__offitem:hover, .form__offitem_cur{
    background-color: var(--black6);
}
.form__offlist > .form__offitem:last-child{
    margin-bottom: 0;
}

/*view styles*/
.form__fieldsbtn{
    display: grid;
    grid-template-columns: auto max-content;
    grid-gap: 16px;
    margin-bottom: 16px;
}  
.form__fieldsbtn > div > .form__input:last-child, .form__fieldsbtn .form__button{
    margin-bottom: 0;
}
.form__fieldswrap{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    grid-gap: 34px;
    margin-bottom: 40px;
}
.form__fieldswrap > *{
    margin-bottom: 0 !important;
}
.form__max322{
    max-width: 322px;
}


/***** 1279 ~ sm *****/
@media (max-width: 1279px) {
    .form__fieldswrap{
        grid-gap: 24px 48px;
    }
}

/***** 527px ~ xs *****/
@media (max-width: 527px) {
    .form__title, .form__filetitle{
        font-size: 16px;
    }
    .form__file{
        flex-direction: column;
        align-items: baseline;
    }
    .form__file:before{
        margin-right: 0;
    }
    .form__file .form__fileclear{
        position: absolute;
        bottom:-5px;
        right:0;
    }
    .form__file > .form__filetext{
        margin-top:24px;
        padding-right: 48px;
    }
   
}

/* #popup16{
    background-color: var(--blue1);
    max-width: 508px;
    padding: 24px;
    text-align: center;
    margin-top: 151px;
    position: relative;
}
#popup16 .h2, #popup16 .form__subtitle{
    color: var(--white);
}
#popup16 .h2{
    margin-bottom: 32px;
}
#popup16 .form__subtitle{
    font-family: var(--font_inter);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 8px;
    margin-top: 78px;
    
}
#popup16 .form__textpolit{
    font-family: var(--font_inter);
    color: var(--black5);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
#popup16 .popup__cross {
    top: 16px;
    right: 16px;
}
#popup16 img{
    height: 252px;
    position: absolute;
    top: -151px;
    left: 50%;
    transform: translate(-50%, 0);
}

.popup_fanswer16{
    background-color: var(--blue1);
    max-width: 508px;
    padding: 32px 24px;
    text-align: center;
}
.popup_fanswer16:before {
    content: unset;
}
.popup_fanswer16 .h2, .popup_fanswer .form__subtitle{
    color: var(--white);
}
.popup_fanswer16 .h2{
    margin-bottom: 24px;
    margin-top: 32px;
}
.popup_fanswer16 .form__subtitle{
    margin-bottom: 0;
} */
#popup16{
    background-color: var(--blue1);
    text-align: center;
    position: relative;
    margin-top: 57px;
    padding: 24px;
    max-width: 288px;
  }
  #popup16 .form__subtitle,#popup16 .h3, .popup_fanswer .form__subtitle, .popup_fanswer16 .h2 {
    color: var(--white)
  }
  #popup16 .form__subtitle {
    font-family: var(--font_inter);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-top: 89px;
    margin-bottom: 0;
  }
  #popup16 .form__textpolit {
    font-family: var(--font_inter);
    color: var(--black5);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%
  }
  #popup16 .popup__cross {
    top: 16px;
    right: 16px
  }
  #popup16 img{
    position: absolute;
    left: 50%;
    transform: translate(-50%,0);
    height: 170px;
    top: -57px;
  }
  #popup16 .h3{
    margin-bottom: 16px;
  }
  #popup16 .form__input, #popup16 .form__textarea{
    margin-bottom: 16px;
  }
  #popup16 .form__button{
    margin-bottom: 8px;
  }
  .popup_fanswer16 {
    padding: 32px 24px;
    background-color: var(--blue1);
    max-width: 288px;
    text-align: center;
  }
  .popup_fanswer16:before {
    content: unset
  }
  .popup_fanswer16 .h2 {
    margin-top: 32px;
    margin-bottom: 16px;
  }
  .popup_fanswer16 .form__subtitle{
    margin-bottom: 0;
  }
  @media (min-width: 576px){
    #popup16 {
      max-width: 508px;
      margin-top: 97px;    
    }
    #popup16 .form__subtitle {
      margin-top: 78px;
      margin-bottom: 8px;
    }
    #popup16 .h3{
      margin-bottom: 24px;
    }
    #popup16 .form__input, #popup16 .form__textarea{
      margin-bottom: 24px;
    }
    #popup16 .form__button{
      margin-bottom: 24px;
    }
    #popup16 img {
      height: 176px;
      top: -79px;
    }
    .popup_fanswer16 {
      max-width: 508px;
    }
    .popup_fanswer16 .form__subtitle{
        width: 300px;
        margin: auto;
        margin-bottom: 15px;
    }
  }


/* Чекбокс */
.form__wrapcheckbox{
position: relative;
}
.form__checkboxlabel{
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.form__checkboxlabel:before {
    content: '';
    border-radius: 4px;
    border: 1px solid var(--black4);
    width: 18px;
    height: 18px;
    display: inline-flex;
    flex-shrink: 0;
}
.form__checkboxlabel:hover:before {
    background: var(--blue3);
    border-color: var(--blue1);
}
input.form__checkbox{
    display: none;
}
input.form__checkbox:checked + .form__checkboxlabel:before {
    background: url(/themes/salon/assets/css/page/i/icone-check-mini.svg) center center no-repeat var(--blue1) !important;
    border-color: var(--blue1);
}
@media (min-width: 576px){
    .form__checkboxlabel:before {
        border-radius: 8px;
        width: 24px;
        height: 24px;
    }
}