.formstyle{font-size:14px; line-height:150%; clear:both; display:block;margin:12px 0;}
.formstyle h2{ clear:both; display:block; text-align:left; font-size:1.5em; padding:0.6em 0 0.1em;}
.formstyle h5{ font-size:0.9em; color:#999; }


.formstyle p {margin:0 0 0;}
.formstyle h1 {line-height:1;}
.formstyle h2, .formstyle h3 {margin:0 0 0.5em; font-size:1.2em;}
.formstyle h3 {font-size:1em}
.formstyle pre, .formstyle code {font-size:0.7em; background-color:#eee; color:#000; font-family: verdana, monospace;}
.formstyle code {padding:0.2em}
.formstyle pre {padding:1em; white-space: pre-line;}
.formstyle #first ~ h2 {margin-top:2em}


	
.formstyle input, .formstyle select, .formstyle textarea {
		margin:0; padding:0; font-size:0.85em; outline:none;
		font-family:inherit;	
		-moz-box-sizing:border-box; 
		-webkit-box-sizing:border-box; 
		box-sizing:border-box;}




.formstyle input[type="text"], .formstyle textarea, .formstyle select,.formstyle  div.styled, .formstyle input[type="file"] {  
		width:30%; border-radius:2px; border: solid 1px #ccc; padding:0.4em; float:left;}
	
.formstyle div.styled, .formstyle select, .formstyle input[type="submit"], .formstyle input[type="button"], 
.formstyle input[type="file"]:after {
		background: white url(404.png) no-repeat center right;
		-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
		box-shadow: 0 1px 3px rgba(0,0,0,0.2);}	
	
.formstyle input[type="text"], .formstyle textarea, .formstyle input[type="file"] { 
		background-color: #f5f5f5;
		-webkit-box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
		box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);}
	
.formstyle .ie9 input[type="text"] { line-height:normal; } 
	
.formstyle textarea { width:100%; height:10em; }
	

	
	

.formstyle div.styled { overflow:hidden; padding:0; margin:0; }
		
.formstyle .ie7 div.styled {border:none;}

.formstyle div.styled select {	
		width:115%; background-color:transparent; background-image:none;
		-webkit-appearance: none; border:none; box-shadow:none;}
		
.formstyle .ie7 div.styled select {
			width:100%; background-color:#fff; border: solid 1px #ccc; 
			padding:0.3em 0.5em;}	
	


	
	
.formstyle input[type="file"] { 
		position: relative; 
		-webkit-appearance: none;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;	width: 40%;	padding:0;}
		
.formstyle input[type=file]::-webkit-file-upload-button {
		width: 0; padding: 0; margin: 0;-webkit-appearance: none; border: none;}	
		
.formstyle input[type="file"]:after {
		content: 'Upload File';
		margin:0 0 0 0.5em;
		display: inline-block; left: 100%; position: relative;
		background:white url(404.png) no-repeat center left;
		padding:0.3em 0.5em; border: solid 1px #ccc !important;
		-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
		box-shadow: 0 1px 3px rgba(0,0,0,0.2);
		border-radius:4px;}	
		
		
.formstyle input[type="file"]:active:after {box-shadow:none;}
	
	
	
		
.formstyle input[type="radio"], 
.formstyle input[type="checkbox"] { position: absolute; left: -999em; }
		
.formstyle label:before { 
		display: inline-block; position: relative; top:0.25em; left:-2px; 
		content:''; width:25px; height:25px;
		background-image:url(404.png); }
	
.formstyle input[type="checkbox"] + label:before { background-position: 0 -25px;}
.formstyle input[type="checkbox"]:checked + label:before {background-position: 0 0 ; }
		 
.formstyle input[type="radio"] + label:before { background-position: -25px -25px;}	 	
.formstyle input[type="radio"]:checked + label:before { background-position: -25px 0;}
	
		
		
.formstyle .ie8 label:before { display:none; content:none; }
		
.formstyle .ie8 input[type="checkbox"],
.formstyle .ie8 input[type="radio"],
.formstyle .ie7 input[type="checkbox"],
.formstyle .ie7 input[type="radio"]{ 
			position: static; left:0; }
		
.formstyle .ie8 input[type="checkbox"],
.formstyle .ie8 input[type="radio"] { 
			position:relative; top:5px; margin-right:0.5em;}	
			
.formstyle input[type="text"]:focus, textarea:focus {
		border-color:#000;
		}

	

.formstyle input[type="submit"], 
.formstyle input[type="button"] { 
		padding:0.5em 1em; line-height:1em; cursor:pointer;
		border-radius:4px; color:#000; font-weight:bold; font-size:inherit;
		border:solid 1px #ccc;	box-shadow:0 1px 5px rgba(0,0,0,0.2);
		background-position: center bottom;}
		
		
		
.formstyle input[type="submit"]:active, 
.formstyle input[type="button"]:active {-webkit-box-shadow: none; box-shadow:none;}
		
			


		
	@media screen and (max-width: 600px) { 
		body { width:80%; font-size:15px; } 
	}

	@media screen and (max-width: 400px) { 
.formstyle input[type="text"], .formstyle textarea, .formstyle select, .formstyle div.styled { width:100% } 
	}