.footer-form__container {
    margin-top:116px;
    padding: 174px 5% 98px;
    position: relative;
    overflow: hidden;
}

.page-template-page-services .footer-form__container {
    margin-top: -90px;
}

.footer-form__container:before {
    content: '';
    top: 0;
    left: 50%;
    width: 171.3vw;
    height: 171.3vw;
    border-radius: 50%;
    position:absolute;
    transform: translateX(-50%);
    background-color: #f9f9f9;
}

.footer-form__contentbox {
    position: relative;
    width: 60%;
    margin: 0 auto;
    text-align: center;
}

.footer-form__titlebox {
    margin-bottom: 20px;
}

.footer-form__toptext {
    font-weight: 700;
    font-size: 20px;
    line-height: 34px;
    letter-spacing: 0.1em;
    color: #ff3539;
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-form__title {
    font-weight: 700;
    font-size: 56px;
    line-height: 68.26px;
    color: #000;
}

.footer-form__content {
    margin-bottom: 98px;
}

.footer-form__formbox .gform_wrapper ul.gform_fields li.gfield {
    padding: 0;
    margin: 0 auto 33px;
    display: inline-block;
}

.footer-form__formbox .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield span.name_first {
    padding-top: 0;
    padding-right: 22px;
    padding-left: 0;
    margin: 0 auto;
    width: 50%;
    display: inline-block;
    vertical-align: top;
}

.footer-form__formbox .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield span.name_last {
    padding-top: 0;
    padding-right: 0;
    padding-left: 22px;
    margin: 0 auto;
    width: 50%;
    display: inline-block;
    vertical-align: top;
}

.footer-form__formbox .gform_wrapper ul.gform_fields li.gfield.form-full {
    width: 100%;
}

.footer-form__formbox .gform_wrapper ul.gform_fields li.gfield.form-first-half {
    width: 50%;
    vertical-align: top;
    padding-right: 22px;
}

.footer-form__formbox .gform_wrapper ul.gform_fields li.gfield.form-last-half {
    width: 50%;
    vertical-align: top;
    padding-left: 22px;
}

.footer-form__formbox .top_label div.ginput_complex.ginput_container.gf_name_has_1,
.footer-form__formbox .top_label div.ginput_complex.ginput_container.gf_name_has_2,
.footer-form__formbox .top_label div.ginput_complex.ginput_container.gf_name_has_3 {
    width: 100%;
    margin: 0 auto;
    font-size: 0;
    line-height: 0;
}

.footer-form__formbox .gform_wrapper .hidden_label .gfield_label {
    padding: 0;
    line-height: 0;
}

.footer-form__formbox .gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
.footer-form__formbox .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield div.ginput_complex span.ginput_left select,
.footer-form__formbox .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield div.ginput_complex span.ginput_right select,
.footer-form__formbox .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield select,
.footer-form__formbox .gform_wrapper ul.gform_fields li.gfield div.ginput_complex span.ginput_left select,
.footer-form__formbox .gform_wrapper ul.gform_fields li.gfield div.ginput_complex span.ginput_right select,
.footer-form__formbox .gform_wrapper ul.gform_fields li.gfield select,
.footer-form__formbox .gform_wrapper textarea.large {
    border: 1px solid #e0e6eb;
    background-color: #fff;
    border-radius: 4px;
    padding: 16px 24px;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0.02em;
    color: #a6b7bf;
    margin: 0 auto;
}

.footer-form__formbox .gform_wrapper textarea.large {
    height: 129px;
}

.footer-form__formbox .gform_wrapper .gform_footer {
    padding: 0;
    text-align: center;
    margin: 0 auto;
}

.footer-form__formbox .gform_wrapper .gform_footer input.button,
.footer-form__formbox .gform_wrapper .gform_footer input[type=submit],
.footer-form__formbox .gform_wrapper .gform_page_footer input.button,
.footer-form__formbox .gform_wrapper .gform_page_footer input[type=submit] {
    border-radius: 10px;
    border: 1px solid #2d85d2;
    background-color: #2d85d2;
    padding: 14px 61px 15px;
    font-weight: 700;
    font-size: 18px;
    line-height: 30.6px;
    letter-spacing: 0.01em;
    color: #fff;
    margin: 0 auto;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
}

.footer-form__formbox .gform_wrapper .gform_footer input.button:hover,
.footer-form__formbox .gform_wrapper .gform_footer input[type=submit]:hover,
.footer-form__formbox .gform_wrapper .gform_page_footer input.button:hover,
.footer-form__formbox .gform_wrapper .gform_page_footer input[type=submit]:hover {
    color: #2d85d2;
    background-color: #fff;
}
div.ginput_container_name span {
    padding-right: 0;
    margin-right: auto;
}

html div.ginput_complex.ginput_container.gf_name_has_2 span:first-child, html div.ginput_complex.ginput_container.gf_name_has_3 span:first-child, html div.ginput_complex.ginput_container.gf_name_has_4 span:first-child, html div.ginput_complex.ginput_container.gf_name_has_5 span:first-child {
    padding-right: 22px;
    margin-right: auto;
}

html div.ginput_complex.ginput_container.gf_name_has_2 span:last-child, html div.ginput_complex.ginput_container.gf_name_has_3 span:last-child, html div.ginput_complex.ginput_container.gf_name_has_4 span:last-child, html div.ginput_complex.ginput_container.gf_name_has_5 span:last-child {
    padding-left: 22px;
    padding-right: 0;
    margin-right: auto;
}

@media all and (max-width: 1400px) {

    .footer-form__toptext {
        font-size: 17px;
        line-height: 30px;
        margin-bottom: 12px;
    }

    .footer-form__title {
        font-size: 50px;
        line-height: 60px;
    }
}

@media all and (max-width: 1024px) {
    .footer-form__contentbox {
        width: 80%;
    }

    

    html div.ginput_complex.ginput_container.gf_name_has_2 span:first-child, html div.ginput_complex.ginput_container.gf_name_has_3 span:first-child, html div.ginput_complex.ginput_container.gf_name_has_4 span:first-child, html div.ginput_complex.ginput_container.gf_name_has_5 span:first-child {
        padding-right: 10px;
        margin-right: auto;
    }

    html div.ginput_complex.ginput_container.gf_name_has_2 span:last-child, html div.ginput_complex.ginput_container.gf_name_has_3 span:last-child, html div.ginput_complex.ginput_container.gf_name_has_4 span:last-child, html div.ginput_complex.ginput_container.gf_name_has_5 span:last-child {
        padding-left: 10px;
        padding-right: 0;
        margin-right: auto;
    }

    .footer-form__formbox .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield span.name_first {
        padding-right: 10px;
    }

    .footer-form__formbox .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield span.name_last {
        padding-left: 10px;
    }

    .footer-form__formbox .gform_wrapper ul.gform_fields li.gfield {
        margin-bottom: 20px;
    }

    .footer-form__formbox .gform_wrapper ul.gform_fields li.gfield.form-first-half {
        padding-right: 10px;
    }

    .footer-form__formbox .gform_wrapper ul.gform_fields li.gfield.form-last-half {
        padding-left: 10px;
    }

    .footer-form__content {
        margin-bottom: 40px;
    }
}

@media all and (max-width: 1023px) {
    
    .footer-form__container {
        margin-top: 75px;
        padding: 100px 5% 70px;
    }
}

 @media all and (max-width: 767px) {

    .footer-form__title {
        font-size: 35px;
        line-height: 40px;
    }

    .footer-form__toptext {
        font-size: 17px;
        line-height: 30px;
        margin-bottom: 10px;
    }

    .footer-form__contentbox {
        width: 100%;
    }

    .footer-form__container:before {
        min-width: 1500px;
        min-height: 1500px;
    }

    .footer-form__content {
        margin-bottom: 30px;
    }

    .footer-form__content p {
        font-size: 17px;
        line-height: 28px;
    }

    html div.ginput_complex.ginput_container.gf_name_has_2 span:first-child, html div.ginput_complex.ginput_container.gf_name_has_3 span:first-child, html div.ginput_complex.ginput_container.gf_name_has_4 span:first-child, html div.ginput_complex.ginput_container.gf_name_has_5 span:first-child {
        padding-right: 0;
    }

    html div.ginput_complex.ginput_container.gf_name_has_2 span:last-child, html div.ginput_complex.ginput_container.gf_name_has_3 span:last-child, html div.ginput_complex.ginput_container.gf_name_has_4 span:last-child, html div.ginput_complex.ginput_container.gf_name_has_5 span:last-child {
        padding-left: 0;
        margin-bottom: 0;
    }

    .footer-form__formbox .gform_wrapper .ginput_container span:not(.ginput_price),
    .footer-form__formbox .gform_wrapper ul.gform_fields li.gfield {
        margin-bottom: 15px;
    }

    body .footer-form__formbox .gform_wrapper .top_label div.ginput_container {
        margin-top: 0;
    }

    .footer-form__formbox .gform_wrapper ul.gform_fields li.gfield.form-first-half {
        width: 100%;
        padding-right: 0;
    }

    .footer-form__formbox .gform_wrapper ul.gform_fields li.gfield.form-last-half {
        width: 100%;
        padding-left: 0;
    }

    .footer-form__formbox .gform_wrapper .gform_footer input.button, .footer-form__formbox .gform_wrapper .gform_footer input[type=submit], .footer-form__formbox .gform_wrapper .gform_page_footer input.button, .footer-form__formbox .gform_wrapper .gform_page_footer input[type=submit] {
        padding: 10px 10px 10px;
        font-size: 15px;
        margin-bottom: 0;
    }

    .footer-form__formbox .gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]), .footer-form__formbox .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield div.ginput_complex span.ginput_left select, .footer-form__formbox .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield div.ginput_complex span.ginput_right select, .footer-form__formbox .gform_wrapper.gf_browser_chrome ul.gform_fields li.gfield select, .footer-form__formbox .gform_wrapper ul.gform_fields li.gfield div.ginput_complex span.ginput_left select, .footer-form__formbox .gform_wrapper ul.gform_fields li.gfield div.ginput_complex span.ginput_right select, .footer-form__formbox .gform_wrapper ul.gform_fields li.gfield select, .footer-form__formbox .gform_wrapper textarea.large {
        padding: 12px 22px;
        font-size: 15px;
        line-height: 18px;
    }
}