/* FORMS */

form.styled{
	padding-bottom: 20px;
	background:  url('../../../images/tfl/online/panel-shadow.gif') left bottom repeat-x;
}
form.styled fieldset{
	border: 0 none;
	margin: 0;
	margin-bottom: 8px;
	padding: 0;
}
form.styled legend{
	min-height: 1.2em;
 	width: 100%;
 	margin: 0;
	padding-top: 4px;
 	margin-bottom: 4px;
 	padding-bottom: 4px;
 	color: #000;
 	font-family:Arial, Helvetica, sans-serif;
 	font-size: 1.25em;
    font-weight: bold;
    border-bottom: 1px solid #CCC;
	white-space: normal;
}
form.styled textarea,
form.styled input{
  	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.2em;
}
form.styled label{
	text-align: right;
	float: left;
	width: 100px;
	margin-top: 4px;
	margin-right: 4px;
	/* For specific versions of FF */
	display: -moz-inline-stack;
	display: -moz-inline-block;
}
form.styled label.mandatory,
form.styled label[title~=mandatory]{
	background: url('../../../images/tfl/online/mandatory.gif') right no-repeat;
}
form.styled .linear label{
	text-align: left;
	display: block;
	float: none;
	width: auto;
}
form.styled .label-help{
	font-weight: normal;
	display: block;
}
form.styled legend label{
	float: none;
}
form.styled em,
em.alert{
	font-style: normal;
	color: red;
}
form.styled fieldset ol{
	float: left;
	margin: 0;
	padding: 0;
	margin-bottom: 19px;
}
form.styled .highlight-box ol{
	float: none;
}
form.styled fieldset li{
	list-style: none;
	background-image: none;
	padding-left: 0;
	border: 2px solid #FFF;
	margin-bottom: 2px;
	clear: left;
}
form.styled fieldset fieldset{
	border: 0 none;
}
form.styled fieldset fieldset legend{
  	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size: 1em;
	border-bottom: 0 none;
	color: #666;
}
form.styled fieldset fieldset label{
	display: block;
  	width: auto;
	margin-left: 100px;
}
form.styled ol{
	margin-top: 8px !important;
}
/* grey form backgrounds */
form.grey{
	background-color: #F7F7F7;
	padding-left: 2px; padding-right: 2px;
}
form.styled.grey fieldset li{
	border: 2px solid #F7F7F7;
}
/* Forms in supporting content column adopt the grey panel style */
#supporting-content .styled legend{
  	padding-top: 5px;
  	width: 182px;
  	font-family:Arial, Helvetica, sans-serif;
  	background:  url('../../../images/tfl/online/grey-panel-header.gif') repeat-x;
  	border-bottom: 0 solid;
}
#supporting-content .styled{
  	color: #666;
  	background-color: #F7F7F7;
  	margin-bottom: 0;
}
#supporting-content .styled a{
	margin-left: 8px;
	padding-left: 8px
}
#supporting-content .styled .button{
	margin: 0 8px;
}
#supporting-content .styled legend a{
	background-image: none;
	padding-left: 0;
	color: #113B92;
}
#supporting-content .styled select,
#supporting-content .styled input{
	width: 167px;
	margin-left: 8px;
	margin-bottom: 8px;
}
#supporting-content .styled input.button{
	width: auto;
}
#supporting-content .styled label{
	margin-left: 8px;
}

/* DATA PROTECTION STATEMENT */
.data-protection{
	background: url('../../../images/tfl/online/dp-padlock.gif') no-repeat right top;
}

/* SPECIFIC FORM STYLES */
/* Journey Planner */
#jpForm label{
  	position: absolute;
  	left: -1999px;
}
#jpForm fieldset{
	margin-bottom: 0;
}
#jpForm .advanced{
	padding-left: 5px;
	background:  url('../../../images/tfl/online/green-bullet.gif') no-repeat 4px left;
	vertical-align: middle;
	line-height: 1em;
	float: left;
}
#name_destination,
#name_origin{
	width: 163px;
	margin-left: 8px;
}
/*Contact forms */
#contact-form label{
	width: 80px;
}
/* QAS Address finder */
#qas-address-finder ol{
	margin-bottom: 0;
}
#qas-address-finder #qas-house{
	width: 215px;
}
#qas-address-finder #qas-postcode{
	width: 100px;
}
#qas-address-finder #manual-entry{
	font-weight: bold
}
#qas-address-finder #qas-results{
	height: 250px;
	padding-right: 8px;
	padding-bottom: 8px;
	
	position: absolute;
	margin-top: 25px;
	margin-left: -330px;
	z-index: 100;
}
#qas-address-finder #qas-results h2{
	padding-right: 10px;
	margin-right: -7px;
}
#qas-address-finder #addresses{
	height: 250px;
	overflow: auto;
	margin-bottom: 0;
}
.qas-close{
	color: #FFF;
	float: right;
	margin-top: -3.3em;
}
.label-challenge{
	background-color: #FFFFFF;
}
.label-challenge-alert{
	color: #FF0000;
}
/* BUTTON STYLES */

.button-default-1,
.button-neg-1,
.button-pos-1,
.button-add-1,
.button-back-1,
.button-next-1,
.button-default-2,
.button-neg-2,
.button-pos-2,
.button-add-2,
.button-back-2,
.button-next-2{
    font-family: Arial, Helvetica, sans-serif;
	font-size: 1.2em;
	display: inline-block;
	padding: 0px 6px;
	color: #000;
	overflow: visible;
	width: auto;
	cursor:pointer;
}


/* Primary action style */
.button-default-1,
.button-neg-1,
.button-pos-1,
.button-add-1,
.button-back-1,
.button-next-1{
	font-weight: bold;
	border: 2px solid #666;		
	/* Safari styles*/
	-webkit-border-radius: 2px;
	-webkit-box-shadow: 0 0 5px #246CCE;	
}

/* Secondary action style */
.button-default-2,
.button-neg-2,
.button-pos-2,
.button-add-2,
.button-back-2,
.button-next-2{
	border: 1px solid #999;	
}

/* Tertiary action style */
.button-default-3,
.button-neg-3,
.button-pos-3,
.button-add-3,
.button-back-3,
.button-next-3,
.button-search-3{
	color: #246CCE;
	border: 0 solid;
	overflow: visible;
	width: auto;	
}
.grey .button-default-3,
.grey .button-neg-3,
.grey .button-pos-3,
.grey .button-add-3,
.grey .button-back-3,
.grey .button-next-3{
	background-color: #F7F7F7;	
}
.button-default-3{
	padding:0;
}

/* Nasty Safari hack so buttons heights are all the same */
@media all and (min-width: 0px) {
             body:not(:root:root) 
			 	.button-default-1,
				.button-neg-1,
				.button-pos-1,
				.button-add-1,
				.button-back-1,
				.button-next-1,
				.button-default-2,
				.button-neg-2,
				.button-pos-2,
				.button-add-2,
				.button-back-2,
				.button-next-2{ padding: 2px 6px; }
}

/* Buttons with left-aligned icons */
.button-neg-1,
.button-pos-1,
.button-add-1,
.button-back-1,
.button-neg-2,
.button-pos-2,
.button-add-2,
.button-back-2,
.button-neg-3,
.button-pos-3,
.button-add-3,
.button-back-3,
.button-search-3{
	padding-left: 19px;
}
/* Buttons with right-aligned icons */
.button-next-1,
.button-next-2,
.button-next-3{
	padding-right: 19px;
}

.button-default-1,
.button-default-2{ 
	background: #E0E0E0 url('../../../images/tfl/online/button-default.gif') left center repeat-x;
}
.button-default-3{ 
	background: none;
}
.button-neg-1,
.button-neg-2{ 
	background: #E0E0E0 url('../../../images/tfl/online/button-cross.gif') left center repeat-x;
}
.button-neg-3{ 
	background: url('../../../images/tfl/online/cross.gif') left center no-repeat;
}
.button-pos-1,
.button-pos-2{ 
	background: #E0E0E0 url('../../../images/tfl/online/button-tick.gif') left center repeat-x;
}
.button-pos-3{ 
	background: url('../../../images/tfl/online/tick.gif') left center no-repeat;
}
.button-add-1,
.button-add-2{ 
	background: #E0E0E0 url('../../../images/tfl/online/button-add.gif') left center repeat-x;
}
.button-add-3{ 
	background: url('../../../images/tfl/online/add.gif') left center no-repeat;
}
.button-back-1,
.button-back-2{ 
	background: #E0E0E0 url('../../../images/tfl/online/button-arrow-left.gif') left center repeat-x;
}
.button-back-3{ 
	background: url('../../../images/tfl/online/arrow-left.gif') left center no-repeat;
}
.button-next-1,
.button-next-2{ 
	background: #E0E0E0 url('../../../images/tfl/online/button-arrow-right.gif') right center repeat-x;
}
.button-next-3{ 
	background: url('../../../images/tfl/online/arrow-right.gif') right center no-repeat;
}


.button-search-3{ 
	background: url('../../../images/tfl/online/zoom.png') left center no-repeat;
}

.disabled{
	filter: alpha(opacity=50);
	opacity: 0.5;
}

/* button row */
.button-row{
	list-style-type: none;
	padding: 8px 0;
	margin: 0;
	width: 100%;
	border-top: 1px solid #CCC;
	height: 100%;
}
.button-row:after{content: ""; display: block; height: 0; clear: both }

.button-row li{
	float: left;
	clear: none !important;
	width: 33%;
	text-align: center;
}
.grey .button-row{
	background-color: #F0F0F0;
}

/* ALERTS */
.alert{
	text-align: center;
	color: #000;
	background-color: #FFF69F; 
	margin-bottom: 19px;
	padding: 4px;
	zoom: 1;
}
.alert span{
	padding-left: 20px;
	padding-bottom: 1px;
	background: left center no-repeat;
}

.alert.hidden {
	display: none;
	text-align: left !important;
}

.alert.positive span{
	background-image: url('../../../images/tfl/online/tick.gif');
}
.alert.negative span{
	background: url('../../../images/tfl/online/cross.gif') no-repeat;
}
.alert.validation span{
	background: url('../../../images/tfl/online/exclamation.png') no-repeat;
	font-weight: bold;
}

.styled li .help{
	background: #9fc3ff url('../../../images/tfl/online/form-help-arrow.gif') left top no-repeat;
	color: #000;
	padding: 4px;
	padding-left: 16px;
	position: absolute;
	margin-top: 2px;
  width: 184px;
}
.grey li .help{
	background-image: url('../../../images/tfl/online/form-help-arrow-grey.gif') !important;
}

.alert.validation{
	background-color: #FFF !important;
	border: 2px solid red;
	text-align: left !important;
}
.alert.validation ol{
	margin-top: 4px;
	margin-bottom: 4px;
}
.alert.validation a{
	color: #000;
}

.error-message{
	color: red;
	padding: 0 0 1px 20px;
	background: url('../../../images/tfl/online/exclamation.png') 3px 1px no-repeat;
	
}

/*INFO Message Block*/
.infoBlock{
	text-align: left;
	color: #000;
	background-color: #FFF69F;
	margin-bottom: 19px;
	padding: 4px;
	zoom: 1;
}

/* OLD BUTTON STYLES (DEPRECATED) */

input.button,
input.green-button{
	font-size: 1em !important;
	background: #63B2DF url('../../../images/tfl/online/button-blue.gif') left center repeat-x;
	color: #FFF;
	font-weight: bold;
	padding: 1px;
	border: 2px groove #057AB6;
	height: 22px;
}
input.green-button{
	background: #8EC335 url('../../../images/tfl/online/button-green.gif') left center repeat-x;
	border-color: #6FA417;
}
