/* 
Website: 
Name: Form stylesheet
Description: Form styles
Version: Alpha
Author: Jefte Puente
Author URI: http://www.artemisit.com
Comments: This document styles only form elements.
		  Please do not style any tags here, refer to core.css.
*/

/* 	WE CAN FINALLY STOP USING TABLES FOR FORMS! 
	First place the following scripts in the header and ensure the files are in the correct location.	

	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/css.js"></script>

	This example markup has every form element available. Please copy and paste. Do not change the form class.
	Description of the technique at: http://www.alistapart.com/articles/prettyaccessibleforms
	
	<form action="#" class="cssform">
		<p>Please complete the form below. Mandatory fields marked <em>*</em></p>
		<fieldset>
			<legend>Delivery Details</legend>
			<ol>
				<li><label for="name">Name <em>*</em></label> <input id="name" type="text" /></li>
				<li><label for="address1">Address <em>*</em></label> <input id="address1" type="text" /></li>
				<li><label for="town-city">Town/City</label> <input id="town-city" type="text" /></li>
				<li><label for="county">County <em>*</em></label> <input id="county" type="text" /></li>
				<li><label for="postcode">Postcode <em>*</em></label> <input id="postcode" type="text" /></li>
				<li>
					<fieldset>
						<legend>Is this address also your invoice address? <em>*</em></legend>
						<label><input type="radio" name="invoice-address" /> Yes</label>
						<label><input type="radio" name="invoice-address" /> No</label>
					</fieldset>
	
				</li>
			</ol>
		</fieldset>
		<fieldset>
			<legend>Other Information</legend>
			<ol>
				<li>
					<label for="dob">Date of Birth <span class="sr">(Day)</span> <em>*</em></label><input type="text" id="dob" /> 
					<label for="dob-m" class="sr">Date of Birth (Month) <em>*</em></label><input type="text" id="dob-m" /> 
					<label for="dob-y" class="sr">Date of Birth (Year) <em>*</em></label><input type="text" id="dob-y">
				</li>
				<li><label for="sex">Sex <em>*</em></label> <select id="sex"><option value="female">Female</option><option value="male">Male</option></select></li>
				<li>
					<fieldset>
						<legend>Which of the following sports do you enjoy?</legend>
						<label for="football"><input id="football" type="checkbox" /> Football</label>
	
						<label for="golf"><input id="golf" type="checkbox" /> Golf</label>
						<label for="rugby"><input id="rugby" type="checkbox" /> Rugby</label>
						<label for="tennis"><input id="tennis" type="checkbox" /> Tennis</label>
						<label for="basketball"><input id="basketball" type="checkbox" /> Basketball</label>
						<label for="boxing"><input id="boxing" type="checkbox" /> Boxing</label>
	
					</fieldset>
				</li>
				<li><label for="comments">Comments</label> <textarea id="comments" rows="7" cols="25"></textarea></li>
			</ol>
		</fieldset>
		<p><input type="submit" value="Submit order" /></p>
	</form>
	
	*/

/*** General Form Styles ***/
.cssform { float: left; width: 100%; color: #333; padding: 0; margin: 0; }
.cssform em { font-weight: bold; font-style: normal; color: #f00;}
.cssform fieldset { margin: 5px 0 15px 0; padding: 10px 10px 10px 10px; border: 1px solid #ccc; background: #f7f7f7;}
.cssform legend { padding: 0 2px 0 2px; font-weight: bold; color: #333; font-size: 1.5em; }
/*\*//*/ .cssform legend { display: inline-block; } /* IE Mac legend fix */
.cssform label { float: left; display: inline-block; width: 155px; font-weight: bold; font-size: 1.2em; line-height: 1.6; vertical-align: top; color: #333; }
.cssform fieldset ol { margin: 0; padding: 0; }
.cssform fieldset li { float: left; width: 100%; list-style: none; padding: 0px 5px 5px 5px; } 
	/* Fieldset within a fieldset - used for groups of radio or checkmark boxes*/
	.cssform fieldset fieldset { width: 500px; margin: 5px 0 10px 0; padding: 5px; background: #eee; border: 1px solid #ccc;}
	.cssform fieldset fieldset legend { padding: 0 0 2px 3px; font-weight: normal; font-size: 1.2em;}
	.cssform fieldset fieldset label { width: auto; margin-right: 15px; clear: left; float: left; display: block; margin-left: 148px; font-weight: normal;} /* Width plus 3 (html space) */
	
/*** Input fields & Submit buttons ***/
.cssform input[type=text] { padding: 2px 2px; border: 1px solid #3e4f9d;  }
.cssform input { }
.cssform fieldset textarea, .cssform fieldset select { border: 1px solid #3e4f9d; padding: 2px 2px;  }
input:focus, textarea:focus, input:active { background: #FFFFCC; color:#000; border: 1px solid #3e4f9d; }
input[type=checkbox] { margin: 0 5px 0 0; }
input[type=radio] { vertical-align: top; }

/* submit buttons */
 .cssform input.submit { display: block; float: left; overflow: visible; font-family: Helvetica, Arial, Sans-serif; font-size: 1.5em; line-height: 1.0em; border: 1px solid #ccc; background: #f2f2f2 url('images/submit_bg.gif') no-repeat 10% 50%; padding: 8px 10px 8px 30px; text-align: center; text-decoration: none; margin: 0 15px 15px 0; color: #777; font-weight: bold;} /*For IE6*/
	input[type=submit] { display: block; float: left; font-family: Helvetica, Arial, Sans-serif; font-size: 1.5em; line-height: 1.0em; border: 1px solid #ccc; background: #f2f2f2 url('images/submit_bg.gif') no-repeat 10% 50%%; padding: 8px 10px 8px 30px; text-align: center; text-decoration: none; margin: 0 15px 15px 0; color: #777; font-weight: bold;}
	input[type=submit]:hover { border: 1px solid #999; background: #eee url('images/submit_bg.gif') no-repeat 10% 50%; color: #444; }
	input[type=submit]:focus { background: #ccc url('images/submit_bg.gif') no-repeat 10% 50%; color: #fff; }

 .cssform input.reset { display: block; float: left; overflow: visible; font-family: Helvetica, Arial, Sans-serif; font-size: 1.5em; line-height: 1.0em; border: 1px solid #ccc; background: #f2f2f2 url('images/reset_bg.gif') no-repeat 10% 50%; padding: 8px 10px 8px 30px; text-align: center; text-decoration: none; margin: 0 15px 15px 0; color: #777; font-weight: bold;} /*For IE6*/
	input[type=reset] { display: block; float: left; font-family: Helvetica, Arial, Sans-serif; font-size: 1.5em; line-height: 1.0em; border: 1px solid #ccc; background: #f2f2f2 url('images/reset_bg.gif') no-repeat 10% 50%%; padding: 8px 10px 8px 30px; text-align: center; text-decoration: none; margin: 0 15px 15px 0; color: #777; font-weight: bold;}
	input[type=reset]:hover { border: 1px solid #999; background: #eee url('images/reset_bg.gif') no-repeat 10% 50%; color: #444; }
	input[type=reset]:focus {  background: #ccc url('images/reset_bg.gif') no-repeat 10% 50%; color: #fff; }



