/*begin laying out the form - the form has it's own container #formcontainer*/
#formcontainer {
	width: 500px; /*set the width of the form container*/
	margin: 10px 5px 20px 55px; /*set the margins*/
}

/*set the h1 element in the form container*/
#formcontainer h1 {
	font-size: 120%; /*scale the font size against the body selector*/
	font-family: Georgia, "Times New Roman", Times, serif; /*set the font family*/
	margin: 10px 15px 0 0; /*set the margins of the h1*/
	padding: 0 0 20px 0; /*set the padding on the h1*/
	color: #41515A; /*set the font colour*/
	font-weight: 500; /*sets the font weight a little less than bold, if not supported in a given browser defaults to a normal weight. If you want bold for your h1 delete this property and value pair - or simply comment them out*/
}

/*style the p in the form container*/
#formcontainer p {
	font-size: 80%; /*scale the font size against the body selector*/
	margin: 0 0 20px 0; /*set a 20 pixel margin on the bottom, zero the rest*/
	padding: 0; /*zero the padding*/
}

/*style the inputs*/
#formcontainer input {
	background-color: #CFD8E6; /*set a background colour on the form inputs*/
	color: #414F4B; /*set a colour for the text that is added to the inputs*/
	border: 1px solid #4C5854; /*set a border on the inputs - gives them a flat appearance*/
	margin: 0; /*zero off any margins*/
	width: 150px; /*set a width*/
}


/*style the textarea*/
#formcontainer textarea {
	background-color: #CFD8E6; /*set the background colour*/
	color: #556660; /*set the text colour*/
	border: 1px solid #4C5854; /*add a border to give it a flat appearance*/
	margin: 0 25px 0 0; /*set a 25 pixel margin to the right zero off any remaining borders*/
	height: 200px; /*set a hegiht for the textarea*/
}

/* shows focus in the form inputs and textarea */
#formcontainer input:focus, #formcontainer textarea:focus {
	background-color: #4F4F4F; /*set the background colour of the input and textarea when the cursor is inside*/
   color: #fff; /*set the text colour to white*/
}

/*position the textarea by floating its containing lable*/
.labelfloat {
	float: right; /*float to the right*/
	padding-top: 20px; /*level it off with the inputs to the left by adding 20 pixels of padding to the top of the label*/
}

/*style the form element labels*/
#formcontainer label {
	color: #4F4F4F; /*set the text colour*/
	font-size: 75%; /*scale the font size off the body selector*/
	padding-top: 5px; /*set a little padding to the top*/
	display: block; /*set the display to block to ensure each input is shown on a different line i.e. they do not run horizontally*/
}

/*style the parent fieldset*/
#formcontainer fieldset {
	margin: 0; /*zero off the margins*/
	border: 1px solid #4A664A; /*add a border to define it's edges*/
	text-align: left; /*align the text to the left*/
	padding: 5px 5px 20px 20px; /*set the padding*/
	width: 450px; /*give it a width*/
}

/*style the nested fieldset*/
#formcontainer fieldset fieldset {
	width: 195px; /*give it a width*/
	padding: 0; /*remove any default padding*/
	border: none; /*add border none to prevent inheriting a border from the parent*/
}

/*style the form legend - "Contact My COmpany" */
#formcontainer legend
{
	color: #333;
	/*set the text colour*/
	font-weight: bold;
	/*set the font weight to bold*/
	font-family: Georgia, "Times New Roman", Times, serif;
	/*set the font family*/
	background-color: #DEDBD7;
	/*set a background colour*/
	border: 1px solid #000;
	/*set a border around the legend*/
	padding: 6px 12px;
	/*set alittle padding to give it some space against the border*/
	font-size: 90%;
	/*scale the font size against the body selector*/
}

/* our buttons take on the input style, we need to change that and we'll do it with this button class*/
#formcontainer .button {
   background-color: #737880; /*set the background colour of your form buttons*/
   color: #fff; /*set the text colour to white*/
   width: 80px; /*provide a width*/
   margin-top: 20px; /*set a 20 pixel top margin to give some "air" below the inputs*/
}
