/* -------------------------------------------------------------------------------------------------- 
	
	* Description:		CSS for downloaded form
   
====[ FORMS: ]====================================================================================== */

/* Basic Page Styles */

html { font-size: 10px; }

body {
    background: #fff;
    font-family: Helvetica, Sans-Serif;
	font-size: 12px;
	font-size: 1.2rem;
	line-height: 1.5em;
	padding: 24px;
}

h1, h2, h3, h4, p { margin: 0 0 0.5em; }

h1 { 
	font-size: 24px;
	font-size: 2.4rem;
	font-weight: 100;
	line-height: 1.25;
}

h2 { 
	font-size: 20px;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1.25;
}

h3 {
	font-size: 16px;
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.5;
}

h4 { 
	font-size: 12px;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.5;
}

p { 
	font-size: 12px;
	font-size: 1.2rem;
	font-weight: 300;
	line-height: 1.5;
}


/*---------------[ =Base Styles (from ep4-forms.css) ]---------------*/

/*****=basic form elements*****/
input[type=text], input[type=password], input[type=search],	input.search,
select, textarea {
	border: 1px solid #ccc;
	border-radius: 3px;
	-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	color: #616b72;
	font-family: Arial;
	font-size: 12px;
	font-size: 1.2rem;
	height: 22px;
	padding-left: 4px;
	padding-right: 4px;
	-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
	-ms-transition: border linear 0.2s, box-shadow linear 0.2s;
	-o-transition: border linear 0.2s, box-shadow linear 0.2s;
	-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
	transition: border linear 0.2s, box-shadow linear 0.2s;
	width: inherit;
}
input[disabled], select[disabled], textarea[disabled] {
	background: #ddd;
	border-color: #aaa;
}

/***=select***/	
select { padding-right: 0; }
select[multiple=multiple] {
	height: auto;
	min-width: 250px;
}
select.chosen {
	min-width: 250px;
	padding: 0;
	width: 100%;
}

/***=radio/checkbox***/
input[type=radio], input[type=checkbox] { vertical-align: text-bottom; }

/***=textarea***/
textarea { height: 120px; }
	
/*=jquery override*/
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
	font-family: inherit;	
	font-size: 12px;
	font-size: 1.2rem;
}

/***=label***/
label {
	color: #333131;
	display: block;
	font-size: 12px;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0.5em 0 0.25em;
	text-shadow: 0 0 2px #fff;
}
/*=required label*/
label.required:after {
	color: #dd0201;
	content: " *";
	font-size: 12px;
	font-size: 1.2rem;
	font-weight: 700;
	vertical-align: text-top;
}
    
/* To do, figure out where paragraph elements are used and why (assign?) */
p.radio label,
p.checkbox label,
input[type="radio"]+label,
input[type="checkbox"]+label,
[class^="icon-"]+label {
	display: inline-block;
	line-height: 12px;
	margin: 0;
}	
input[type="radio"]:checked+label.radio-label, input[type="checkbox"]:checked+label.radio-label { color: #000; }

/*****=form element extensions*****/
input[type=text].form-field-date { width: 100px; }
input[type=text].form-field-copyname {
	color: #6d6c6a;
	font-size: 14px;
	font-size: 1.4rem;
	line-height: 1.3;
	width: 250px;
}

/***=search input***/
input[type=search], input.search {
	border-radius: 12px;
	padding: 0 8px;
	width: 150px;
}
.table-toolbar input.search, .table-toolbar input[type=search] {
	position: absolute;
	right: 0;
	top: 9px;
}

/***=subscription code textarea*****/
textarea.subscription-code { height: 300px; }



                                                                /* Legacy Classes (TO DO, refactor) */

                                                                .lineInstructions {
	                                                                color: #444;
	                                                                display: inline-block;
	                                                                font-size: 11px;
	                                                                font-size: 1.1rem;
	                                                                font-style: italic;
	                                                                font-weight: bold;
	                                                                margin-top: 5px;
																}
                                                                
                                                                .h-radio-list td { padding-right: 10px; }
                                                                .v-radio-list td { padding-bottom: 10px; }
/*****=form element extensions (END)*****/


/*****=form field*****/
.form-field {
	margin: 0 0 15px;
	overflow: visible;
	position: relative;
	
	/***TODO:  remove width declaration??***/
	width: 250px;
}
/*****=form field (END)*****/

/*****=form field extensions (all require form-field)*****/
/*TODO:  try to remove width declarations??*/
.form-field.short { width: 115px; }
.form-field.short-number { width: 40px; }
.form-field.long { width: 360px; }
.form-field.stretch { width: auto; }
.form-field.slider { overflow: visible; }
.form-field.color-picker input[type=text] { width: 75px; }

/***=oversized field***/
.form-field.oversized { width: 360px; }
.form-field.oversized label {
	color: #000;
	font-size: 20px;
	font-size: 2rem;
	font-weight: 300;
	line-height: 1.25;
}
.form-field.oversized input {
	color: #94938f;
	font-size: 1.6rem;
	font-size: 16px;
	height: 36px;
}

/***=full/field action/tall fields***/
.form-field.full, .form-field.field-action {
	margin-top: 15px;
	width: 100%;
}
.form-field.field-action input, .form-field.field-action select { max-width: 250px; }
.form-field.full textarea { height: 200px; }
.form-field.tall textarea { height: 350px; }

/***=inline field***/
.form-field.inline {
	display: inline-block;
	margin-right: 6px;
}
.form-field.oversized.inline {
	margin-right: 15px;
	vertical-align: text-top;
}

/***=date field***/
.form-field.date { width: 100px; }
.form-field.date-from { padding-right: 20px; }
.form-field.date-from:after {
	background: url(../images/ui/ui-toggle-arrow.png) 50% -2px;
	bottom: 0;
	content: "";
	height: 22px;
	opacity: 0.5;
	position: absolute;
	right: 0;
	width: 12px;
}

/***=other field***/
.form-field.other {
	background: rgba(255,255,255,0.75);
	border: 1px dotted #ccc;
	border-radius: 3px;	
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-webkit-box-sizing:border-box;
	box-sizing: border-box;
	padding: 4px;
}	
input.other ~ input[type=text] {
	visibility: hidden;
	width: 125px;
}
input.other:checked ~ input[type=text] { visibility: visible; }

/***=details field***/
.form-field-details { margin-top: 12px; }
input[type=radio] ~ .form-field-details,
input[type=checkbox] ~ .form-field-details { margin-left: 24px; }

/***=stacked fields***/
.stacked-fields {
    border: 1px solid #d3d2ce;
	border-radius: 5px;
    max-width: 450px;
    min-width: 360px;
}
.stacked-fields .form-field {
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
    margin: 0;
    padding: 6px;
	-moz-transition: height 0.3s ease; 
	-o-transition: height 0.3s ease; 
    -webkit-transition: height 0.3s ease;
	transition: height 0.3s ease;
}
.stacked-fields .form-field + .form-field { border-top: 1px solid #d3d2ce; }
/*****=form field extensions (END)*****/


/*****=form actions*****/
.actions { margin: 0 0 20px; }
.actions.inline { vertical-align: bottom; }
.actions.oversized.inline { display: inline-block; }
.actions a { margin-right: 3px; }
.actions a:last-child { margin-right: 0; }
/*****=form actions (END)*****/
	

/*****=hints*****/
.form-hint {
	background-image: -moz-linear-gradient(top, #fceec1, #eedc94);
	background-image: -ms-linear-gradient(top, #fceec1, #eedc94);
	background-image: -o-linear-gradient(top, #fceec1, #eedc94);
	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fceec1), color-stop(100%, #eedc94));
	background-image: -webkit-linear-gradient(top, #fceec1, #eedc94);
	background-image: linear-gradient(top, #fceec1, #eedc94);
	border-left: 1px solid #eedc94;
	border-right: 1px solid #eedc94;
	border-top: 1px solid #eedc94;
	border-bottom: 1px solid #e4c652;
	background-color: #eedc94;
	background-repeat: repeat-x;
	border-radius: 4px;
	bottom: -30px;
	-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
	color: #404040;
	padding: 4px 8px;
	position: absolute;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	visibility: hidden;
}
input:focus + .form-hint, textarea:focus + .form-hint { visibility: visible; }
/*****=hints (END)*****/


/*****=plugins*****/
/***=chosen***/
select.chosen-select { width: 320px; }
.form-field.col-filter select.chosen-select { width: inherit; }
.form-field.col-filter .chzn-container-single .chzn-single,
.form-field.col-filter .chzn-container-single .chzn-single div { border-radius: 0; }
.chzn-container {
	display: block;
	margin-bottom: 1em;
}
/*****=plugins (END)*****/


/*****=user made forms*****/
/***=wrapper***/
.userForm-wrapper {
	background: #fff;
	border: 1px solid #e5e5e1;
	border-radius: 5px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 1.2rem;
	margin-bottom: 15px;
	padding: 12px;
}
.userForm-wrapper select { min-width: 250px; }
 
/***=section***/   
/*To-Do: the renderer is using -heading for _questions_ and -section for "headings"...confusing and needs fixing*/
.userForm-section {
	border-bottom: 1px dotted #ccc;
	color: #414b52;
	display: block;
	font-size: 24px;
	font-size: 2.4rem;
	font-weight: 100;
	line-height: 1;
	margin: 0 0 0.5em;
	padding-bottom: 0.25em;
}

/***=heading***/
.userForm-heading {
	color: #616b72;
	display: block;
	font-size: 18px;
	font-size: 1.8rem;
	font-weight: 300;
	margin: 0 0 0.5em;
}
    
.userForm-wrapper .comment-box {
	margin-bottom: 24px;
	width: 100%;
}

/***=summary***/ 
.userForm-summary-wrapper {
	background: #616b72;
	border-radius: 5px;
	margin: 0 0 24px;
}
.userForm-summary {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.userForm-summary li {
	border-top: 1px solid #818b92;
	color: #d1dbe2;
	font-size: 12px;
	font-size: 1.2rem;
	height: 24px;
	line-height: 24px;
	margin: 0;
	padding: 6px;
	text-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.userForm-summary li:first-child { border-top: none; }
.userForm-summary li strong {
	color: #fff;
	padding-right: 4px;
}            
li.userForm-summary-item:before {
	background-image: url(../images/ui/ui-icons-white.png);
	background-repeat: no-repeat;
	content: "";
	float: left;
	height: 24px;
	width: 28px;
}               
.userForm-summary-form:before { background-position: 50% -1158px; }
.userForm-summary-date:before { background-position: 50% -1572px; }
.userForm-summary-assessor:before { background-position: 50% -868px; }
.userForm-summary-student:before { background-position: 50% -868px; }
    
/***=user form (table)***/
/*Tables still wrap _every_ question right now, so css selectors need to be clever*/
.userForm {
	margin-bottom: 36px;
	min-width: 100%;
}
.userForm th {
	background: #616b72;
	border-left: 1px solid #fff;
	color: #fff;
	font-weight: 700;
	padding: 4px 6px;
	text-align: left;
	text-shadow: 0 - 2px #333131; 
	vertical-align: top;
}
.userForm td {
	border-left: 1px dotted #c2c2c2;
	padding: 6px;
	vertical-align: middle;
}
.userForm > tbody > tr:first-child:last-child td:first-child:last-child { padding-left: 0; }
.userForm > tbody > tr + tr td { border-top: 1px dotted #c2c2c2; }
.userForm > tbody > tr + tr:last-child td { border-bottom: 1px dotted #c2c2c2; }
.userForm td:first-child { border-left: none; }
.userForm `.caption td {
	background: #efefef;
	border-bottom: 1px solid #c2c2c2;
	color: #333131;
	font-size: 14px;
	font-size: 1.4rem;
	font-weight: 700;
	padding: 4px 6px;
}    
/*=total row*/
.userForm .userFormTotal { background: #4f5256;	 }
.userForm .userFormTotal td {
	background: #4f5256;
	border-bottom: none;
	color: #fff;
	font-weight: bold;
}  
.userForm .userFormTotal td:first-child { border-left: none;  }        
/*=inputs/textares*/
.userForm textarea { min-width: 400px; }
.userForm input[type=text] { min-width: 200px; }
.userForm tr + tr td input[type=text], .userForm tr + tr td textarea {
	min-width: 150px;
	width: 100%;
}
/*****=user made forms (END)*****/

/*****=scale slider*****/
.rangeContainer {
	border: 1px solid #efefef;
	padding: 6px;
	text-align: center;
}
input.sliderValue {
	display: block;
	margin: 3px auto;
	min-width: 40px !important;
	text-align: center;
	width: 40px !important;
}
.slider-container {
	float: left;
	margin-top: 4px;
	width: 50%;
}
.form-scale-slider {
	display: inline-block;
	margin: 10px 6px 0;
	width: 150px;
}
.form-scale-label {
	background: #616b72 url(../images/layout/layout-box-bg-trans.png);	
	border: 1px solid #e5e5e1;
	border-radius: 0 5px 5px 0;
	border-right: none;
	-webkit-box-shadow: inset 0 0 8px rgba(51,49,49,0.5);
	box-shadow: inset 0 0 8px rgba(51,49,49,0.5);	
	color: #fff;
	display: inline-block;
	font-size: 10px;
	font-size: 1rem;
	font-weight: 500;
	min-width: 50px;
	padding: 2px 10px;
	text-shadow: 0 0 2px #333131;
	vertical-align: top;
}	
.form-scale-label.min-label { border-radius: 5px 0 0 5px; }
/*****=scale slider (END)*****/


