/*
   New Perspectives on HTML and CSS
   Tutorial 6
   Case Problem 4

   Dome Table Style Sheet
   Author: Brooks Clemans
   Date:   05/01/2016

   Filename:         forms.css
   Supporting files: contactus.htm

*/

/* Field set styles*/

fieldset {
	background-color: rgba(227,227,227,0.9);
	border: 1px solid rgb(0, 0, 139);
	margin: 0px auto;
	width: 100%;
}

/* Legend styles */

legend {
	font-size: 1em;
	font-variant: small-caps;
	text-decoration: none;
	text-align: center;
	color: white;

	background-color: rgba(0,0,0,0.5);
	padding: 3px 0px;
	text-indent: 5px;
	width: 100%;
}

/* Label styles */

label {
	color: black;
	clear: left;
	display: block;
	float: left;
	font-size: 0.9em;
	font-weight: bold;
	font-variant: small-caps;
	margin: 7px 4% 7px 5px;
	width: 40%;
}

/* Input control styles */

input {
	display: block;
	float: left;
	font-size: 0.9em;
	margin: 7px 0px;
	width: 50%;
}

input#fName {
	width: 75px;
}

input#lName {
	width: 75px;
}

input#street {
	width: 125px;
}

input#city {
	width: 125px;
}

input#state {
	width: 25px;
}

input#zip {
	width: 50px;
}

input#email {
	width: 100px;
}

/* Select styles */

select {
	display: block;
	float: left;
	font-size: 0.9em;
	margin: 7px 0px;
}

/* Option button styles */

fieldset.optionGroup {
	border-style: dotted;
	
}

/* Check box styles */

#warranty {
	color: red;
	float: none;
	margin: 10px auto;
	text-align: center;
	width: 90%;
}

#warranty input {
	display: inline;
	float: none;
	width: 20px;
}

/* Button Styles */

form p {
	text-align: center;
	width: 100%;
}

form p #comments {
	width: 100%;
	padding-bottom: 150px;
}

button[type="button"] {
	display: inline;
	float: none;
	height: 40px;
	width: 200px;
}

input[type="submit"], [type="reset"] {
	display: inline;
	float: none;
	height: 40px;
	width: 200px;
}

/* Validation styles */

input: focus, select:foscus, textarea:focus {
	background-color: rgb(220, 255, 220);
}

input:focus:valid {
	background: rgb(220, 255, 220) url(../media/go.png) bottom right no-repeat;
		-o-background-size: contain;
		-moz-background-size: contain;
		-webkit-background-size: contain;
		background-size: contain;
}

input:focus:invalid {
	background: rgb(255, 232, 233) url(../media/stop.png) bottom right no-repeat;
		-o-background-size: contain;
		-moz-background-size: contain;
		-webkit-background-size: contain;
		background-size: contain;
}