
@media screen and (min-width: 767px) {

form {
    padding: 30px 10%;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 50px;
}
form h2 {
    letter-spacing: 2px;
    margin: 0 0 15px;
    font-weight: bold;
    color: #d10000;
}
form > div {
    vertical-align: middle;
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 20px;
}
form > div > div label{
    font-weight: bold;
    display: block;
    margin:10px 0 5px 0
}
form > div > div {
    border-radius: 3px;
    padding: 10px 0;
}
form > div > div > p {
    width: 100%;
    float: left;
    margin: 0 15px;
}
form > div > div:before, form > div > div:after {
    display: table;
    content: " ";
    clear: both;
}
form > div input[type=text], form > div input[type=email], form > div textarea, form > div select {
    display: block;
    width: calc(100% - 24px);
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}
form > div textarea {
    height: 200px;
}
input[type=radio] {
    margin-left: 25px;
    margin-top: 8px;

}
body > div label {
    margin-bottom: 0;
    text-align: left;
    width: 100%;
    min-height: 1px;
    padding:10px 5px;
    font-weight: bold;
    display: block;
}
body > div label span {
    font-size: 13px;
}
body > div input + span{
    width: 45%;
    display: inline-block;
}
.container label + div {
    width: 75%;
    float: left;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.thanks{
	text-align:center;
	background:#fff;
	padding:100px 50px;
	border-radius:20px;
}

.thanks-midashi{
	font-size:1.5em;
}

.con-btn{
	text-align:center;
	margin:0;
}

input[type="button"] {
    width: 100%;
	background:#fff;
	color:#005A9F;
	display:inline-block;
	padding:10px 0px;
	text-align:center;
	border-radius: 10px;
	border:2px solid #005A9F;
	transition:.5s;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: bold;
}

input[type="button"]:hover {
	background:#005A9F; 
	border:2px solid #005A9F;
	color:#fff;
	transition:.5s;
}

button {
    width: 100%;
    background:#005A9F;
	color:#fff;
	display:inline-block;
	padding:10px 0;
	text-align:center;
	border-radius: 10px;
	border:2px solid #005A9F;
	transition:.5s;
    font-size: 17px;
    font-weight: bold;
}
button:hover{
	background:#fff; 
	border:2px solid #005A9F;
	color:#005A9F;
	transition:.5s;
}
input + div, select + div, textarea + div {
    color: red;
    margin-bottom: -10px;
}
.error-form {
    border-color: #fb9a93 !important;
}
}

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

form {
    margin-bottom: 50px;
}
form h1 {
    letter-spacing: 2px;
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
}
form h2 {
    letter-spacing: 2px;
    margin: 0 0 15px;
    font-weight: bold;
    color: #d10000;
}
body > div:nth-child(3) > div {

}
body > div:nth-child(3) > div > h1 {
    letter-spacing: 2px;
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
    padding-left: 0;
}
form > div {
    vertical-align: middle;
    margin-top: 20px;
    margin-bottom: 15px;
}
form > div > div {
    border-radius: 3px;
    margin: 30px 0;
}
form > div > div span::after{
    content: "\A";
    white-space: pre;
}
form > div > div > p {
    width: 100%;
    float: left;
}
form > div > div:before, form > div > div:after {
    display: table;
    content: " ";
    clear: both;
}
form > div input[type=text], form > div input[type=email], form > div textarea, form > div select {
    display: block;
    width:96%;
    height: 38px;
    padding: 6px 2%;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}
form > div textarea {
    height: 200px;
}
input[type=radio] {
    margin-left: 25px;
    margin-top: 8px;

}
body > div label {
    margin-bottom: 0;
    text-align: left;
    width: 100%;
    min-height: 1px;
    /*padding:10px 5px;*/
}
.container label + div {
    width: 75%;
    float: left;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
form > div > div label{
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.thanks{
	text-align:center;
	background:#fff;
	padding:70px 20px;
	border-radius:20px;
}

.thanks-midashi{
	font-size:1.5em;
	font-weight:bold;
}

.con-btn{
	text-align:center;
	margin:0;
}

input[type="button"] {
	background:#fff;
	color:#005A9F;
	display:inline-block;
	padding:10px 50px;
	text-align:center;
	border-radius: 10px;
	border:2px solid #005A9F;
	transition:.5s;
	margin-bottom:15px;
    font-size: 17px;
    font-weight: bold;
}

input[type="button"]:hover {
	background:#005A9F; 
	border:2px solid #005A9F;
	color:#fff;
	transition:.5s;
}


button {
    background:#005A9F;
	color:#fff;
	display:inline-block;
	padding:10px 50px;
	text-align:center;
	border-radius: 10px;
	border:2px solid #005A9F;
	transition:.5s;
    font-size: 17px;
    font-weight: bold;
}
button:hover{
	background:#fff; 
	border:2px solid #005A9F;
	color:#005A9F;
	transition:.5s;
}
#thanks button {
    width: 100%;
}
input + div, select + div, textarea + div {
    color: red;
    margin-bottom: -10px;
}
.error-form {
    border-color: #fb9a93 !important;
}

.notel a{
    pointer-events: none;
    color: #666666 !important;
    }

}