:root{
    --main-font:'Roboto', 'sans-serif';
    --input-height:52px;
    --textarea-height:115px;
    --form-width:487px;
}

.form-actions .btn-default__custom {
    width: 100%;
    border: unset;
    padding: 13px 24px;
    text-decoration: none;
    height: 52px;
    margin-top: 24px;
    color:#FFF;
    font-family: var(--main-font);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;

    border-radius: 64px;
    background: #A8C51B;

    transition: 0.3s;

    &:hover {
        background: #8AA218;
    }
}

.form-contacts{
    max-width: var(--form-width);
    padding: 32px;
    background: #F8F8F8;
}
.form-contacts .form-title{
    color:#111827;
    font-family: var(--main-font);
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;

    margin: 0;
}

.form-contacts .form-description{
    color:#111827;
    font-family: var(--main-font);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;

    margin: 16px 0 0 0;
}

.form-contacts .form-label{
    color:#5A616C;
    font-family: var(--main-font);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.form-contacts .form-fields{
    margin-top: 32px;
}

.form-contacts .form-group{
    margin-top: 20px;
}

.form-contacts .form-input{
    margin: 6px 0 0 0;
}

.form-contacts .form-input input,.form-contacts .form-input textarea{
    color:#111827;
    font-family: var(--main-font);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;

    padding: 14px 16px;

    transition:0.3s;
    border-radius:10px;
    border: 2px solid #E9EBEF;
    background:#FFF;
    &:focus::placeholder{
        color: transparent;
    }
    &::placeholder{
        color:  #9299A5;
    }
    &:hover{
        border-color: #D2D6DC;
    }
    &:focus-within{
        border-color: #A8C51B;
    }
}

.form-contacts .has-error .form-input input,.form-contacts .has-error .form-input textarea{
    border-color: #E83838;
    background:rgba(255, 169, 186, 0.15);
}

.form-contacts .has-error .error-text{
    color:#E83838;
    font-family: var(--main-font);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;

    margin-top: 4px;
}

.form-input textarea{
    height: var(--textarea-height);
    width: 100%;
}

.form-contacts .form-input input{
    height: var(--input-height);
    width: 100%;
}

.form-input__word{
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;

    color:#9299A5 ;
    font-family: var(--main-font);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}


/*Чекбокс*/
.checkbox-custom{
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

.checkbox-custom-text{
    color: #111827;
    font-family: var(--main-font);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.checkbox-custom-text a{
    text-decoration: none;
    color: #0089B3;
}

.checkbox-custom .switch {
    display: inline-block;
    height: 20px;
    position: relative;
    min-width: 36px;
}

.checkbox-custom .switch input {
    display:none;
}

.checkbox-custom .slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.checkbox-custom .slider:before {
    background-color: #fff;
    bottom: 2px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
}

.checkbox-custom input:checked + .slider {
    background-color: #A8C51B;
}

.checkbox-custom input:checked + .slider:before {
    transform: translateX(13px);
}

.checkbox-custom .slider.round {
    border-radius: 34px;
}

.checkbox-custom .slider.round:before {
    border-radius: 50%;
}


/*success send*/

.success-popup__form{
    width: 512px;
    padding:40px 32px 32px 32px;

    position: fixed;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    z-index: 10;

}

.success-popup__form-title{
    color:#111827;
    text-align: center;
    font-family: 'Roboto','sans-serif';
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;

    margin-top: 40px;
}

.success-popup__form-description{
    color:#5A616C;
    text-align: center;
    font-family: 'Roboto','sans-serif';
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;

    margin-top: 16px;
}

.success-popup__form-btn{
    color:#FFF;
    font-family: 'Roboto','sans-serif';
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-align: center;

    border-radius: 64px;
    background: #A8C51B;

    margin-top: 40px;
    padding: 14px 0;
    width: 100%;
}

.overlay-popup-form{
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9;
    opacity: 0.6;
    background: #090D16;
}

@media(max-width: 991px){
    .success-popup__form{
        width: calc(100% - 16px);
        padding: 32px 20px 20px 20px;
        bottom: 8px;
        top: unset;
        transform: translate(-50%, 0);
        height: fit-content;
    }

    .success-popup__form-title{
        font-size: 24px;
        font-style: normal;
        font-weight: 500;
        line-height: 32px;
        margin-top: 32px;
    }

    .success-popup__form-description{
        text-align: center;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        margin-top: 12px;
    }

    .success-popup__form-btn{
        margin-top: 32px;
    }
}
/* end success send */

@media(max-width: 991px){
    .form-contacts .form-title{
        font-size: 24px;
        line-height: 32px;
    }

    .form-contacts .form-description{
        font-size: 14px;
        line-height: 22px;
    }

    .form-contacts .form-label{
        font-size: 13px;
        line-height: 20px;
    }
    
    .form-description br{
        display: none;
    }



    .form-contacts .form-group{
        margin-top: 16px;
    }
    .form-contacts .form-input{
        margin: 0;
    }

    .form-contacts .form-input input{
        height: 48px;
    }

 .form-contacts .form-input textarea{
     height: 100px;
 }

    .form-contacts .form-input input,
    .form-contacts .form-input textarea{
        margin: 4px 0 0 0;
        font-size: 16px;
        line-height: 24px;
    }

    .form-input__word{
        margin-top: 0;
    }
    .form-actions  .btn-default__custom{
        height: 48px;
    }
}