.s-popup-inputs .s-popup__block-close-button {
    display: table-cell;
    vertical-align: middle;
    width: 16px;
    margin-right: 10px;
    padding: 10px;
    font-size: 0;
    text-align:right
}                

.s-popup-inputs .s-popup-inputs__wrapper {
    padding: 40px 45px;
}

@media screen and (max-width: 640px) {

    .s-popup-inputs .s-popup__close-icon {
        width: 16px;
        height:16px
    }

    .s-popup-inputs .s-popup-inputs__wrapper  {
        padding: 20px;
    }
}   

.s-popup__body-popupshowed {
    height: 100vh;
    min-height: 100vh;
    overflow:hidden
}

.s-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    opacity: 0;
    transition: opacity ease-in-out .3s;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    cursor: pointer;
    padding: 0 20px;
    background-color: rgba(0, 0, 0, .6);
    z-index: 9999999;
    display: none;
    outline:0;
}

.s-popup.s-popup_show {
    opacity: 1
}                

.s-popup__close {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 23px;
    height: 23px;
    cursor: pointer;
    transition: opacity ease-in-out .3s;
    z-index:9;
}

@media (min-width: 429px) {
    .s-popup__close:hover {
        opacity:.7
    }
}

.s-popup__block-close {
    top: 10px;
    right: 10px;
    width: 43px;
    height:43px
}     
                
.s-popup__block-close-button {
    width: 23px;
    padding: 10px;
    font-size: 0;
    border: none;
    background-color: transparent;
    cursor:pointer;
    box-sizing: content-box;
}

.s-popup__container {
    background: #fff;
    margin: 0 auto;
    width: auto;
    position: absolute;
    top: 50%;
    right: 20px;
    left: 20px;
    z-index: 1;
    cursor: default;
    transform: translateY(-30%) scale(.9);

    max-width: 560px;
}

.s-popup__container-animated {
    transition: transform ease-in-out .3s
}

.s-popup_show .s-popup__container {
    transform: translateY(-50%)
}


.s-popup__container.s-popup__container-static {
    margin: 65px auto;
    top: 0;
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
    transform: translateY(30%) scale(.9)
}

.s-popup_show .s-popup__container.s-popup__container-static {
    transform: translateY(0)
}

.s-popup__title {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.s-popup__desc {
    font-weight: normal;
    font-size: 1rem;                    
}                

.s-popup__bottom-text {
    font-size: 0.85rem;
}

.s-popup-form{
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.s-form__successbox {
    background: #62c584;
    color: #fff;
    margin-bottom: 20px;
    padding: 20px;
    text-align:center
}

.s-form__errorbox-wrapper {
    background: #f95d51;
    color: #fff;
    margin-bottom: 20px;
    padding: 10px;
    text-align: center;
    display: none;
}

.s-form__inputsbox {
    transition: max-height 0.3s cubic-bezier(.19, 1, .22, 1);
    max-height:20000px
}

.s-form__inputsbox_hidden.s-form__inputsbox {
    overflow: hidden;
    max-height: 0;
    opacity:0
}

.s-popup__input-group {
    margin-bottom: 2rem;
}

.s-popup__input-group label{
    font-weight: 500;
    display: block;
    padding-bottom: 5px;
    font-size:1rem;
}

.s-popup__input-group input[type='text'],
.s-popup__input-group input[type='email'], 
.s-popup__input-group textarea, 
.s-popup-form button[type='submit']{
    border: 2px solid #171717;
    font-size: 1rem;
    padding: 0 20px;
    line-height: 1.33;
    height: 3.5rem;
    width: 100%;
}

.s-popup__input-group textarea {
    background-color: transparent;
    height: 8rem;
    resize: vertical;
    padding-top: 17px;
}

.s-popup-form button[type='submit'] {
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;                    
}

.s-popup-form button[type='submit']:hover {
    color: #ffffff !important;
    background-color: #171717 !important;
}  

@media screen and (max-width: 560px) {
    .s-popup-inputs .s-popup {
        padding: 0;
    }
}

@media screen and (max-width: 640px) {
    .s-popup-inputs .s-popup {
        /* padding: 20px; */
    }
}

@media screen and (max-width: 560px) {
    .s-popup-inputs .s-popup__block-close {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 2;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        height: 50px;
        background: #000;
    }
}

@media screen and (max-width: 560px) {
    .s-popup-inputs .s-popup__block-close-button {
        display: table-cell;
        vertical-align: middle;
        width: 16px;
        margin-right: 10px;
        padding: 10px;
        font-size: 0;
        text-align: right;
    }
}

@media screen and (max-width: 560px) {
    .s-popup-inputs .s-popup_show .s-popup__container {
        max-width: 100%;
        right: 0;
        left: 0;
        top: 0;
        bottom: 0;
        padding-top: 50px;
        margin: 0;
        box-sizing: border-box;
        min-height: 100vh;
        -webkit-transform: translateY(0);
        transform: translateY(0);
        position: relative;
    }
}

@media screen and (max-width: 560px) {
    .s-popup-inputs .s-popup__close-icon {
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 640px) {
    .t702 .t-input-group {
        margin-bottom:20px
    }

    .t702 .t-input-block textarea {
        padding-top:12px
    }

    .t702 .t-submit, .t702 .t-input {
        height: 50px;
        font-size:16px
    }

    .t702 .t-input {
        padding:0 14px
    }
}  

.s-popup-black {
    background-color: rgba(0, 0, 0, 1) !important;
}
