
/* form & wpcf7 parts
------------------------------------------------------*/
input, textarea, select, button {
  outline: none;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
}
input[type="radio"],
input[type="checkbox"] {
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.formSheet {
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
}
.formSheet th,
.formSheet td {
	padding: 1em 0;
	border-bottom: 1px solid #CCC;
	vertical-align: top;
  text-align: left;
}
.formSheet th .inner,
.formSheet td .input,
.wpcf7-form-control-wrap {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 3em;
}
.wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}
.wpcf7-form-control-wrap { flex-wrap: wrap; }
.formSheet th .inner {
	justify-content: flex-start;
	white-space: nowrap;
	font-weight: 700;
}
.wpcf7-radio,
.wpcf7-checkbox,
.wpcf7-acceptance {
	display: block;
	width: 100%;
}

.required,
.any {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-width: 50px;
	height: 20px;
	margin:0 2em 0 3em;
	background: #C00;
	font-size: 12px;
  font-weight: normal;
	color: #FFF;
	border-radius: 4px;
	line-height: 1;
}
.any { background:#008db0; }
.wpcf7-text,
.wpcf7-free-text,
.wpcf7-select,
textarea {
	display: block;
	width: 100%;
	min-height: 3em;
	padding:0 1em;
	border: none;
	border-radius: 4px;
/*	box-shadow:0 2px 5px 0 rgba(0,0,0,0.1) inset;*/
	background-color: #f5f5f5;
}
.wpcf7-free-text {
	display: inline-block;
	width: auto;
	min-height: 2.4em;
}
.wpcf7-free-text:disabled { background: #EEE; }
textarea {
	resize: vertical;
	padding-top:1em;
	padding-bottom:1em;
}
form :placeholder { color: #BBB; }
form :focus { background:#FEFFEB; }
input:invalid,
.wpcf7-not-valid {
	background: #FFECED;
	border-color: #FF6068 !important;
}
.wpcf7-list-item { margin-left: 0 !important; }
.wpcf7-list-item label {
	display:inline-block;
	margin:2px 2em 0 0;
}
.has-free-text {
	display: inline-flex;
	align-items: center;
}
.has-free-text label { margin-right:0.5em; }
.wpcf7-list-item-label {
	display: inline-flex;
	justify-content: flex-start;
	align-items: center;
	position: relative;
	line-height: 1;
}
.wpcf7-list-item-label:before,
.wpcf7-list-item-label:after {
	box-sizing: border-box;
}
.wpcf7-list-item-label:before {
	content: "";
	display: inline-block;
  flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-right: 5px;
	border: 1px solid #666;
	border-radius: 3px;
	background: #FFF;
}
input[type="radio"] + .wpcf7-list-item-label:before,
input[type="radio"]:checked + .wpcf7-list-item-label:after {
	border-radius: 50%;
}

input:checked + .wpcf7-list-item-label:before {
	border-color: #0396ff;
	background: #0396ff;
}
input:checked + .wpcf7-list-item-label:after {
	content: "";
	display: inline-block;
	position: absolute;
	top: 50%;
	left: 5px;
	width: 8px;
	height: 12px;
  margin-top: -2px;
	border-right: 2px solid #FFF;
	border-bottom: 2px solid #FFF;
	transform: translateY(-50%) rotate(45deg);
}
input[type="radio"]:checked + .wpcf7-list-item-label:after {
	left: 5px;
	width: 8px;
	height: 8px;
  margin-top: 0;
	border: 0;
	background: #FFF;
}
.wpcf7-list-item input:disabled + span:before { background: #AAA; }
.wpcf7-list-item input:disabled + span { opacity: 0.3; }

#formPolicy { padding-top: 2em; }
#formPolicy > * { margin: 0; }
#formPolicy dt {
	margin-bottom: 1em;
	font-weight: bold;
}
#formPolicy dd {
  margin-left: 0;
}
#formPolicy .wpcf7-list-item { display: block; }
.wpcf7-acceptance label {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 3em;
	margin:2em 0;
	border: 1px solid #999;
	border-radius: 0 !important;
}
/*
.wpcf7-submit {
	display: block;
	width: 270px;
	height: 60px;
	margin: 0 auto;
	box-shadow: 0 0 0 0 #000;
	border: 1px solid #0396ff;
	background: #0396ff;
	font-size: 1.4em;
	transition: 0.2s;
	color: #FFF;
	cursor: pointer;
}
*/
.wpcf7-submit {
	display: block;
	min-width: 400px;
	height: 80px;
	margin: 0 auto;
	box-shadow: 0 2px 6px 0 rgba(0,0,0,0.6);
	border: 1px solid #0396ff;
	border-radius: 5px;
background: #0396ff;
background: -moz-linear-gradient(top,  #0396ff 0%, #0372c1 100%);
background: -webkit-linear-gradient(top,  #0396ff 0%,#0372c1 100%);
background: linear-gradient(to bottom,  #0396ff 0%,#0372c1 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0396ff', endColorstr='#0372c1',GradientType=0 );

	font-size: 1.6em;
	transition: 0.2s;
	color: #FFF;
	cursor: pointer;
}
.wpcf7-submit:disabled {
	opacity: 0.6;
	background: #666 !important;
	border-color: #666 !important;
	box-shadow:0 0 0 0 #000;
	color: #FFF !important;
	cursor: auto;
}


.wpcf7-not-valid-tip {
	padding: 0.5em 1em 0;
	color: #C00 !important;
}
.wpcf7-response-output {
	margin: 20px 0 0 !important;
	padding: 1em !important;
	border: 0 !important;
	text-align: center;
	color: #FFF;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7-spam-blocked,
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
	background: #C00 !important;
}
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7-mail-sent-ok {
	background: #16A4A1 !important;
}
.wpcf7-form.sent .contactArea {
	display: none;
}
.wpcf7 .ajax-loader {
	visibility: hidden;
	display: block !important;
	background-repeat: no-repeat;
	background-position: center center;
	width: 100% !important;
	margin: 10px 0 0!important;
}
.wpcf7 .ajax-loader.is-active {
	visibility: visible;
}
@media only screen and (min-width:769px) {
	.formSheet tr.pcStyle { display: table-row !important; }
	.formSheet th.pcStyle,
	.formSheet td.pcStyle { display: table-cell !important; }
}
@media only screen and (min-width:1081px) {
	.wpcf7-submit:hover,
	.wpcf7-submit:active,
	.wpcf7-submit:focus {
		background: #FFF;
		color: #0396ff;
	}
}
@media only screen and (max-width:768px) {
	.formSheet thead,
	.formSheet tbody,
	.formSheet tr,
	.formSheet th,
	.formSheet td {
		display: block;
		width: auto !important;
		height: auto !important;
		padding: 0;
		border: 0;
	}
	.formSheet tr { margin-bottom: 1.5em; }
	.formSheet th { margin-bottom: 0.5em; }
	.formSheet th .inner {
		justify-content: flex-start;
		min-height:0;
	}
	.required,
	.any { margin-left: 1em; }

	.wpcf7-text,
	.wpcf7-free-text,
	textarea {
		box-shadow:0 1px 3px 0 rgba(0,0,0,0.1) inset;
	}
	.wpcf7-list-item { display:block !important; }
	.wpcf7-list-item label {
		display: flex;
		align-items: center;
		width: 100%;
		min-height: 3em;
		margin:0;
		padding: 0 1em;
		border: 1px solid #999;
		border-bottom: 0;
	}
	.wpcf7-list-item:first-child label {
		border-radius: 5px 5px 0 0;
	}
	.wpcf7-list-item:last-child label {
		border-bottom: 1px solid #999;
		border-radius: 0 0 5px 5px;
	}
	
	.formToggle {
		border: 1px solid #999;
		border-radius: 5px;
	}
	.formToggle li:not(:last-of-type) { border-bottom: 1px solid #999; }
	.formToggle .wpcf7-list-item label {
		border: 0;
	}
	.formSheet .formToggle .box {
		display: none;
		padding: 0 1em 1em;
	}
	.formSheet .formToggle .input.widthAuto > * { width: auto; }
	
	.has-free-text {
		display: block;
		border: 1px solid #999;
		border-radius: 0 0 5px 5px;
	}
	.has-free-text label { border: 0 !important; }
	.wpcf7-free-text {
		width:calc(100% - 2em) !important;
		margin: 0 1em 1em;
	}
	
	/*
	input:checked + .wpcf7-list-item-label:after {
		top: 4px;
	}*/
	
	#formPolicy { padding-top:0; }
	#formPolicy dd br { display: none; }
	.wpcf7-acceptance label { margin:1.5em 0; }
	/*
	.wpcf7-submit {
		width: 180px;
		height: 50px;
		font-size: 1.2em;
	}
	*/
	.wpcf7-submit {
		min-width: 240px;
		height: 60px;
		font-size: 1.2em;
	}
	.wpcf7-response-output {
		margin: 0 !important;
	}
	
}
