form {
	
	padding: 10px;
	
}
fieldset {
	border: 1px solid #929292;
	padding: 0;
	padding-left: -1px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-border-radius: 5px;
	-khtml-border-radius: 5px;
	margin-bottom:15px;
}
legend {
	font-size: 1.5em;
	color: #929292;
	font-weight: bold;
	margin-left: 40px;
	padding: 5px 10px;
	border: 1px solid #929292;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-border-radius: 5px;
	-khtml-border-radius: 5px;
	text-transform: capitalize;
}
form p {
	padding: 5px 0;
	position: relative;
}
form p:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
form p.nolabel * {
	margin-left: 110px;
}
label {
	width: 18%;
	text-align: right;
	display: block;
	float: left;
	margin-right: 10px;
	text-transform: capitalize;
	line-height: 33px;
}
input[type=text], textarea, input[type=password], input[type=email] {
	border: 1px solid #929292;
	color: #929292;
	padding: 10px;
	vertical-align: text-top;
	width:70%;
	-webkit-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	-moz-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-border-radius: 5px;
	-khtml-border-radius: 5px;
	background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));  
	background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px); 
	
	bottom: 0;
	
}
p.nolabel input[type=text], p.nolabel textarea, p.nolabel input[type=password] {
	position: relative;
	left: 0;
}
textarea {
	min-height: 100px;
	max-width: 70%;
	min-width: 300px;
	resize: both;
}
button, input[type=submit] {
	border: 1px solid #929292;
	color: #505050;
	-webkit-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	-moz-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-border-radius: 5px;
	-khtml-border-radius: 5px;
	background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));  
	background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px); 
	padding: 10px;
}
input[type=text]:hover, input[type=password]:hover, textarea:hover, input[type=submit]:hover, button:hover, input[type=radio]:hover:before, input[type=checkbox]:hover:before, select:hover {
	-webkit-box-shadow: #666 0 0 3px;
	box-shadow: #666 0 0 3px;
	-moz-box-shadow: #666 0 0 3px;
	color: #929292;
}
@-webkit-keyframes pulse {
	0% {
		-webkit-box-shadow: #666 0 0 3px;
		box-shadow: #666 0 0 3px;
		-moz-box-shadow: #666 0 0 3px;
	}
	100% {
		-webkit-box-shadow: #666 0 0 10px;
		box-shadow: #666 0 0 10px;
		-moz-box-shadow: #666 0 0 10px;
	}
}
input[type=text]:focus, input[type=password]:focus, textarea:focus, input[type=submit]:focus, button:focus, input[type=radio]:focus:before, .radioreplacement:focus, input[type=checkbox]:focus:before, .checkboxreplacement:focus, select:focus {
	outline: 0;
	-webkit-box-shadow: #666 0 0 3px;
	box-shadow: #666 0 0 3px;
	-moz-box-shadow: #666 0 0 3px;
	-webkit-animation-name: pulse;
	-webkit-animation-duration: 1s;
	-webkit-animation-iteration-count: 9999;
	-webkit-animation-direction: alternate;
	-webkit-animation-timing-function: linear;
}
input[type=submit]:active button:active {
	position: relative;
	top: 1px;
}
input[type=radio]:before, .radioreplacement {
	position: relative;
	top: -2px;
	left: -2px;
	display: block;
	height: 14px;
	width: 14px;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	-border-radius: 7px;
	-khtml-border-radius: 7px;
	content: " ";
	text-align: center;
	position: relative;
	z-index: 9999;
	border: 1px solid #929292;
	color: #505050;
	-webkit-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));  
	background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px); 
}
input[type=radio]:checked:before {
	content: "•";
}
input[type=checkbox]:before, .checkboxreplacement {
	position: relative;
	top: -2px;
	left: -2px;
	display: block;
	height: 14px;
	width: 14px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-border-radius: 3px;
	-khtml-border-radius: 3px;
	content: " ";
	text-align: center;
	position: relative;
	z-index: 9999;
	border: 1px solid #929292;
	color: #505050;
	-webkit-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));  
	background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px); 
}
input[type=checkbox]:checked:before {
	content: "✓";
}
.radioreplacement, .checkboxreplacement {
	position: absolute;
	top: 15px;
	left: 110px;
	vertical-align: top;
}
.checkboxreplacement {
	text-indent: -9999px;
}
.checkboxreplacement.checked {
	text-indent: 0!important;
}
input[type=checkbox], input[type=radio] {
	position: relative;
	top: 6px;
	
}
select {
	border: 1px solid #929292;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-border-radius: 3px;
	-khtml-border-radius: 3px;
	color: #505050;
	-webkit-box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	box-shadow: #e3e3e3 0.1em 0.1em 0.2em;
	background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));  
	background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
	position: relative;
	top: 6px;
	height: 20px;
}
