/**
	Car-Part.com Contact Form
	Created by Katherine Leonard
	Last modified 9 May 2018
	
	Note: CSS resets should have already been established in site stylesheet. Please ensure CSS has been reset to prevent unwanted browser-specific modifications.
*/

.cForm {
	max-width: 65ch;
	margin: auto;
}
.cForm input, .cForm textarea {
	box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
	border: 1px inset #eee;
	border-radius: .25rem;
	padding: .35rem;
	max-width: 65ch;
}
.cForm textarea {
	margin-top: .25rem;
	min-height: 5rem;
	height: auto;
}
.cForm input:focus, .cForm textarea:focus {
	border: 1px inset #ccc;
	box-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
.cForm input[type="radio"], .cForm input[type="checkbox"] {
	box-shadow: none;
}
.cForm .flex, .cForm textarea {
	box-sizing: border-box;
		width: 100%;
		max-width:100%;
	outline: none;
	resize: none;
}
.cForm input[type="submit"], .cForm input[type="reset"] {
	background: #ccc;
	background: -moz-linear-gradient(top, #fff 0%, #ccc 100%);
	background: -webkit-linear-gradient(top, #fff 0%, #ccc 100%);
	background: linear-gradient(to bottom, #fff 0%, #ccc 100%);
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff', endColorstr='#ccc',GradientType=0 );
	border: 2px outset #eee;
	box-shadow: 0;
	color: #111;
	font-size: 1rem;
	padding: .5rem;
}
.cForm input[type="submit"]:hover, .cForm input[type="reset"]:hover {
	background: #f00;
	background: -moz-linear-gradient(top, #ddd 0%, #aaa 100%);
	background: -webkit-linear-gradient(top, #ddd 0%, #aaa 100%);
	background: linear-gradient(to bottom, #ddd 0%, #aaa 100%);
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ddd', endColorstr='#aaa',GradientType=0 );
	border: 2px indset #aaa;
}


.cForm ul .reqFields, .cForm .hiddenInput {
	/* Fields are hidden anyway, but never hurts to overdo it a little... */
	display: none;
}

.cForm ul.formStructure {
	display: block;
	margin: auto;
}
.cForm li.sectionLabel {
	display: block;
	font-weight: 700;
	margin-bottom: .5rem;
}
.cForm li.blockInput {
	display: block;
	margin: 0 0 1rem 0;
}
.cForm li.inlineInput {
	display: inline-block;
	margin: 0 .75rem .75rem 0;
}

.cForm .detailSection {
	border: 1px outset #eee;
	border-radius: .25rem;
	box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
	display: block;
		max-width: 100%;
	margin: 2rem 1rem;
	padding: 1rem 1rem .25rem 1rem;
}
.cForm label, .cForm .label {
	font-weight: 400;
}
.cForm .req, .cForm label.req {
}
.cForm .note {
	margin: 1em 0;
}


@media screen and (max-width: 599px) {
	.cForm {
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}
	.cForm ul {
		margin: auto;
	}
	.cForm .detailSection li.inlineInput {
		display: block;
	}
	.cForm .detailSection .label {
		display: block;
		margin-bottom: .5em;
	}
	.cForm .flex, .cForm textarea {
		min-width: 30ch;
		max-width: 45ch;
	}
}