.thanks-body,
.error-body {
    display: flex;
    flex-flow: column;
    min-height: 100vh;
}

.all-wrapper{
    flex: 1;
}

#form input {
    margin-bottom: 6px;
    padding: 2px 5px;
}

#form textarea {
    padding: 2px 5px;
}

#form .caption {
    display: inline-block;
    margin-bottom: 5px;
}

#contactPage th {
    white-space: nowrap;
    padding: 10px;
}

#form tr:last-of-type th,
#form tr:last-of-type td{
    border-bottom: none;
}

.alert {
    margin-bottom: 0!important;
}

.uniq__titile{
    margin: 50px auto;
    padding: 0 10px;
    font-size: 30px;
    width: fit-content;
    font-family: 'Shippori Mincho', serif;
}

.w960{
    width: 960px;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

.content-height__ly{
    min-height: 100vh;
}

/* #powered_by_me{
    display: none;
} */

.err_main_message{
    width: 100%!important;
    margin-bottom: 10px!important;
}


@media screen and (max-width:640px) {
    #contactPage #form{
        display: flex!important;
        flex-direction: column!important;
        width: 90%!important;
        margin-left: auto;
        margin-right: auto;
    }

    .err_main_message{
        width: 90%!important;
        margin-left: auto!important;
        margin-right: auto!important;
    }

    #form tr{
        display: flex!important;
        flex-direction: column!important;
        width: 100%!important;
    }

    #form th,
    #form td{
        display: block!important;
        width: 100%!important;
        font-size: 15px;
    }

    #form th{
        padding: 15px;
    }

    #form td{
        padding: 15px 5px 30px;
    }

    #form tr:last-of-type td{
        padding: 15px 5px 0;
    }

    #contactPage th, #contactPage td {
        border-bottom: none;
    }

    #form .alert-warning td{
        padding: 15px 5px 10px;
    }

    .uniq__titile{
        margin: 50px auto 30px;
        padding: 0 10px;
        font-size: 24px;
    }

    #contactPage .button {
        height: 50px;
        margin: 0 auto 15px;
    }
}

@media screen and (min-width: 1024px){
    #footer div {
        height: 90px;
    }
}