/* Get rid of dotted button border line */
/*for FireFox*/
input[type="submit"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner
{   
    border : 0px;
}
/*for IE8 */
input[type="submit"]:focus, input[type="button"]:focus
{     
    outline : none; 
}

input[type="text"], input[type="url"], input[type="password"],input[type="checkbox"], select,textarea {
	padding: 3px 3px 3px 3px;
	background-color: #fff;
	border: 1px solid #333;
	resize: none;
	color: #151515;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
	border: solid 1px #332222;
}

input[type="button"],input[type="submit"] {
	padding: 5px;
	border: 1px solid #333;
	background-color: #333;
	font-weight: bold;
	color: #fff;
}

input[type="button"]:focus,input[type="submit"]:active {
	background-color: #000;
}

input[type="button"]:active {
	border: 1px solid #000;
}

form {
	float: left;
	margin: 10px 0;
}


fieldset {
	position: relative;
	width: 100%;
	margin: 0 auto;
	border: none;
}

fieldset .row {
	width: 100%;
	height: 32px;
	float: left;
}

fieldset .row > label {
	width: 85px;
	margin-top: 5px;
	float: left;
}

fieldset .row > input + span {
	float: left;
	width: 500px;
	padding: 0 0 0 5px;
}

fieldset .row > input[type="text"], input[type="password"],input[type="date"], input[type="file"] {
	width: 135px;
	float: left;
	background-color: #fff;
	border: 1px solid #333;
}

fieldset > .row > input[type="file"] {
	width: 245px;
}

fieldset > .row > input[type="checkbox"] {
	float: left;
	margin-left: 0;
}

fieldset .column {
	position: relative;
	height: 32px;
	float: left;
}

fieldset .column > label {
	width: 85px;
	margin-top: 5px;
	float: left;
}

fieldset .column > input {
	width: 40px;
}

fieldset .column2 > label {
	width: 35px;
	margin-left: 12px;
}

fieldset > .textfield, fieldset > .textfield2 {
	height: auto;
	padding: 0 0 9px 0;
}

fieldset > .textfield2 > textarea {
	margin-left: 85px;
}

fieldset > .form_button > input[type="submit"] {
	margin-left: 85px;
	float: left;
}

fieldset > .form_button_right > input[type="submit"] {
	float: right;
	margin-top: 10px;
}

div.errorMessage {
	color: #ff0000;
}

fieldset > #form_error > div.errorMessage {
	position: relative;
	width: 100%;
	float: left;
	padding: 5px 0 5px 0;
}

fieldset > .row > div.errorMessage {
	width: 145px;
	float: left;
	font-size: 9px;
	padding: 8px 0 0 5px;
}

fieldset > .row > input[type="file"] + div.errorMessage {
	width: 200px;
	padding: 3px 0 0 5px;
}

fieldset > .row > .error, fieldset .row > input.error {
	border: 1px solid #ff0000;
}

/* Fix upload field styling */
div#image, div#image2 {
	position: relative;
}

#image > input, #image2 > input {
	position: absolute;
	width: 160px;
	top: 0;
	left: 85px;
	padding: 3px 3px 3px 3px;
	background-color: #fff;
	border: 1px solid #333;
	resize: none;
	color: #151515;
}

#image > #file_upload_button, #image2 > #file_upload_button2 {
	position: absolute;
	width: 45px;
	top: 0;
	left: 260px;
	padding: 4px 6px;
	border: 1px solid #988E76;
	background-color: #988E76;
	font-weight: bold;
	color: #fff;
}

#image > #file_upload_button:active, #image2 > #file_upload_button2:active {
	background-color: #000;
	border: 1px solid #000;
}

#image > input#file, #image2 > input#file2 {
	width: 225px;
	z-index: 2;
	opacity: 0;
	filter: alpha(opacity = 0);
}

#image > .errorMessage, #image2 > .errorMessage {
	position: absolute;
	left: 310px;
}

#image > input.error,#image2 > input.error {
	border: 1px solid #ff0000;
}