.contact {
    width: 1000px;
    display: block;
    margin: 0 auto;
    margin-top: 35px;
}

.contact .contact-title {
    font-size: 14px;
    color: #333333;
    display: block;
}

.contact .contact-title.second {
    margin-top: 60px;
}

.contact .button {
    width: 280px;
    background: #017FB2;
    margin: 0 auto;
    margin-top: 0px;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    color: #ffffff;
    margin-top: 60px;
}
.p-form__date a {
    color: #000;
    text-decoration: underline;
}

.footer-contact {
    margin-top: 70px;
}

.contact .p-form {
    width: 100%;
    border-top: 1px solid #e0d7c9;
    border-right: 1px solid #e0d7c9;
    margin-top: 35px;
}

.contact .p-form__item {
    *zoom: 1;
    border-bottom: 1px solid #e0d7c9;
    display: table;
    width: 100%;
}

.contact .p-form__item:after {
    content: "";
    display: table;
    clear: both;
}

.contact .p-form__heading, .contact .p-form__date {
    border-left: 1px solid #e0d7c9;
    padding-top: 12px;
    padding-right: 22px;
    padding-bottom: 12px;
    padding-left: 22px;
    display: table-cell;
    vertical-align: middle;
    font-size: 14px;
}

.contact .p-form__heading {
    line-height: 1.3;
    position: relative;
    width: 300px;
    background: #efefef;
    padding-right: 40px;
    padding-left: 30px;
}

.contact .p-form__date {
    width: 700px;
}

.contact .p-form__date input[type="text"], .contact .p-form__date input[type="email"], .contact .p-form__date input[type="tel"], .contact .p-form__date textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0d7c9;
    resize: vertical;
}

.contact .p-form__tag--important {
    font-size: 12px;
    background: #017FB2;
    color: #ffffff;
    position: absolute;
    padding: 4px 9px;
    margin-top: -10px;
    top: 50%;
    right: 18px;
    font-weight: 500;
}

.contact .p-form__annotation {
    font-size: 12px;
    display: block;
    margin-top: 6px;
    color: #797979;
}

.contact .wpcf7-radio .wpcf7-list-item {
    position: relative;
    margin-left: 25px;
}

.contact .wpcf7-radio .wpcf7-list-item.first {
    margin-left: 10px;
}

.contact .wpcf7-radio .wpcf7-list-item label span {
    display: inline-block;
    padding-left: 20px;
    cursor: pointer;
}

.contact .wpcf7-radio .wpcf7-list-item label input[type="radio"] {
    position: absolute;
    top: 4px;
    left: 0;
    opacity: 1;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    cursor: pointer;
}

.contact .wpcf7-select {
    width: 100%;
    border: 1px solid #e0d7c9;
    padding: 8px;
    background: url(../img/common/arrow_down.png) no-repeat 99% center;
}

.contact .wpcf7-file {
    font-size: 12px;
}

.contact .wpcf7-submit {
    background: #017FB2;
    color: #ffffff;
    margin-top: 47px;
    margin-right: auto;
    margin-left: auto;
    width: 280px;
    height: 66px;
    line-height: 66px;
    display: block;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.contact .wpcf7-submit:hover {
    opacity: 0.7;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
}

.contact .wpcf7-form-control-wrap span.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dd4b39;
    font-weight: bold;
}

.contact .wpcf7-response-output.wpcf7-validation-errors, .wpcf7-response-output.wpcf7-mail-sent-ok {
    font-size: 14px;
    padding: 8px 0;
    text-align: center;
    font-weight: bold;
    margin-top: 24px;
    margin-bottom: 24px;
}

.contact .wpcf7-response-output.wpcf7-validation-errors {
    color: #dd4b39;
    border: 2px solid #dd4b39;
}

.contact .wpcf7-response-output.wpcf7-mail-sent-ok {
    color: #e7792a;
    border: 2px solid #e7792a;
}

input::placeholder {
  color: #ccc;
  font-size: 1em;
}

@media only screen and (min-width: 320px) and (max-width: 400px) {
    .contact .wpcf7-radio .wpcf7-list-item label input[type="radio"] {
        top: 10% !important;
    }
}

@media only screen and (max-width: 998px) {
    .contact {
        width: 100%;
        display: inline-block;
        margin-top: 6%;
        padding: 0 5.5%;
    }
    .contact .contact-title {
        font-size: 3.2vw;
    }
    .contact .contact-title.second {
        margin-top: 12%;
    }
    .contact .p-form {
        margin-right: auto;
        margin-left: auto;
        margin-top: 4.5%;
    }
    .contact .p-form__item {
        display: block;
    }
    .contact .p-form__heading, .contact .p-form__date {
        display: block;
        width: 100%;
        padding: 2%;
        font-size: 3.2vw;
    }
    .contact .p-form__heading {
        width: 100%;
        padding: 4% 5.33333%;
    }
    .contact .p-form__date {
        width: 100%;
        padding: 4% 5.33333%;
        display: block;
    }
    .contact .p-form__date input[type="text"], .contact .p-form__date input[type="email"], .contact .p-form__date input[type="tel"], .contact .p-form__date textarea {
        padding: 3%;
        font-size: 3vw;
    }
    .contact .p-form__tag--important {
        position: initial;
        margin-top: 0;
        margin-left: 5%;
        font-size: 2.6vw;
        padding: 0.4% 3%;
    }
    .contact .wpcf7-radio .wpcf7-list-item {
        margin-top: 2%;
        margin-right: 0;
        display: block;
        width: 100%;
        margin-left: 0;
    }
    .contact .wpcf7-radio .wpcf7-list-item:first-child {
        margin-top: 0;
        margin-left: 0;
    }
    .contact .wpcf7-radio .wpcf7-list-item label input[type="radio"] {
        top: 25%;
    }
    .contact .wpcf7-submit {
        width: 89.33333%;
        margin-top: 16px;
        padding: 8px 0;
        height: auto;
        line-height: inherit;
    }
    .contact .wpcf7-response-output.wpcf7-validation-errors, .contact .wpcf7-response-output.wpcf7-mail-sent-ok {
        width: 94.66667%;
        margin-right: auto;
        margin-left: auto;
    }
    .contact .button {
        width: 60%;
        margin-top: 11%;
        padding: 3.5%;
        font-size: 3.7vw;
    }
    .footer-contact {
        margin-top: 15%;
    }
    input::placeholder {
    color: #ccc;
    font-size: 1em;
    }
}