/* 	Adapted from ZURB Foundation https://github.com/zurb/foundation
  Make sure to include app.js / foundation.js if you are going to use inline label inputs
*/

/* ---------------------------------------------------- */
/* Buttons                                              */
/* ---------------------------------------------------- */

a.button, .button {
  background: #00a6fc;
  display: inline-block;
  text-align: center;
  padding: 9px 34px 11px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px; font-size: 1.3rem;
  line-height: 1;
  position: relative;
  cursor: pointer;
  border: none;
  outline: none;
  margin: 0;
}
  
/* Don't use native buttons on iOS */
input[type=submit].button, button.button { -webkit-appearance: none; }
  
/* Hide inner focus effect in Firefox */
button::-moz-focus-inner, input[type="reset"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner, input[type="submit"]::-moz-focus-inner, input[type="file"] > input[type="button"]::-moz-focus-inner {
  border: none;
}
  
.button.radius {
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}
.button.round {
  -moz-border-radius: 1000px;
  -webkit-border-radius: 1000px;
  border-radius: 1000px;
}

.button.full-width {
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center;
}

.button.left-align {
  text-align: left;
  text-indent: 12px;
}
  
/* Sizes ---------- */
.tiny.button			{ font-size: 10px; padding: 6px 14px 8px; width: auto; }
.small.button 			{ font-size: 11px; padding: 8px 20px 10px; width: auto; }
.medium.button 			{ font-size: 13px; width: auto; }
.large.button 			{ font-size: 18px; padding: 11px 48px 13px; width: auto; }

/* Colors ---------- */
.blue.button			{ background-color: #00a6fc; }
.red.button				{ background-color: #e91c21; }
.white.button			{ background-color: #e9e9e9; color: #333; }
.black.button			{ background-color: #141414; }
.green.button			{ background-color: #5b8737; }

/* Hovers ---------- */
.button:hover, .button:focus 				{ background-color: #0192dd; color: #fff; }
.blue.button:hover, .blue.button:focus		{ background-color: #0192dd; }
.red.button:hover, .red.button:focus 		{ background-color: #d01217; }
.white.button:hover, .white.button:focus	{ background-color: #dadada; color: #333; }
.black.button:hover, .black.button:focus	{ background-color: #000; }
.green.button:hover, .green.button:focus	{ background-color: #699c40; }	

/* Disabled ---------- */
.button.disabled, .button[disabled] { opacity: 0.6; cursor: default; }

/* Correct FF button padding */
@-moz-document url-prefix("http://") {
input[type=submit].button::-moz-focus-inner, button.button::-moz-focus-inner { border: 0; padding: 0; }
input[type=submit].tiny.button		{ padding: 5px 14px 7px; }
input[type=submit].small.button		{ padding: 7px 20px 8px; }
input[type=submit].medium.button	{ padding: 8px 34px 9px; }
input[type=submit].large.button		{ padding: 9px 48px 10px; }
}


/* ---------------------------------------------------- */
/* Standard Forms                                       */
/* ---------------------------------------------------- */

form.custom { margin: 0 0 18px; }
form.custom label { display: block; font-size: 13px; line-height: 18px; cursor: pointer; margin-bottom: 9px; }

input.input-text, textarea { border-right: 1px solid #bbb; border-bottom: 1px solid #bbb; }
input.input-text, textarea, select { display: block; margin-bottom: 9px; }
label + input.input-text, label + textarea, label + select, label + div.dropdown, select + div.dropdown { margin-top: -9px; }
textarea { max-width: 100%; }

/* Text input and textarea font and padding */
input.input-text, textarea { font-size: 13px; padding: 4px 3px 2px; background: #fff; }
input.input-text:focus, textarea:focus { outline: none !important; }
input.input-text.oversize, textarea.oversize { font-size: 18px !important; padding: 4px 5px !important; }
input.input-text:focus, textarea:focus { background: #f9f9f9; }

/* Text input and textarea, disabled */
input.input-text[disabled], textarea[disabled] { background-color: #ddd; }

/* Inlined Label Style */
input.placeholder, textarea.placeholder { color: #888; }

/* Text input and textarea sizes */
input.input-text, textarea { width: 254px; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; }
input.small, textarea.small { width: 134px; }
input.medium, textarea.medium { width: 254px; }
input.large, textarea.large { width: 434px; }
input.expand, textarea.expand { width: 100%; }

/* Lock textareas so they can't be resized beyond their set width in webkit */
textarea.locked 	{ max-width: 254px; }
	textarea.locked.small 	{ max-width: 134px; }
	textarea.locked.large 	{ max-width: 434px; }
	textarea.locked.expand 	{ max-width: 100%; }

/* Fieldsets */
form.custom fieldset { padding: 9px 9px 2px 9px; border: solid 1px #ddd; margin: 18px 0; }

/* Inlined Radio & Checkbox */
.form-field input[type=radio], div.form-field input[type=checkbox] { display: inline; width:auto; margin-bottom:0; }

/* Errors */
.form-field.error input, input.input-text.red { border-color: #C00000; background-color: pink; }
.form-field.error label, label.red { color: #C00000; }
.form-field.error small, small.error { margin-top: -6px; display: block; margin-bottom: 9px; font-size: 11px; color: #C00000; width: 254px; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; }

div.form-field.error small, small.error { padding: 6px 4px; border-width: 0 1px 1px 1px; margin-top: -10px; color: #C00000; font-size: 12px; font-weight: bold; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; -webkit-border-bottom-left-radius: 2px; -webkit-border-bottom-right-radius: 2px; -moz-border-radius-bottomleft: 2px; -moz-border-radius-bottomright: 2px; }

.small + small.error { width: 134px; }
.medium + small.error { width: 254px; }
.large + small.error { width: 434px; }
.expand + small.error { width: 100%; }

.small.oversize + small.error { width: 144px; }
.medium.oversize + small.error { width: 264px; }
.large.oversize + small.error { width: 444px; }
.expand.oversize + small.error { width: 100%; }

/* ---------------------------------------------------- */
/* Custom Forms                                       */
/* ---------------------------------------------------- */

form.custom span.custom { display: inline-block; width: 14px; height: 14px; position: relative; top: 2px; border: solid 1px #ccc; background: url(skin/custom-form-sprites.png) 0 0 no-repeat; }
form.custom span.custom.radio { border-radius: 7px; -webkit-border-radius: 7px; -moz-border-radius: 7px; }
form.custom span.custom.radio.checked { background-position: 0 -14px; }
form.custom span.custom.checkbox.checked { background-position: 0 -28px; }

form.custom div.custom.dropdown { display: block; position: relative; width: auto; height: 28px; margin-bottom: 9px; margin-top: 2px; }
form.custom div.custom.dropdown a.current { display: block; width: auto; line-height: 26px; min-height: 26px; padding: 0 38px 0 6px; border: solid 1px #ddd; color: #141414; background-color: #fff; word-wrap: nowrap; }
form.custom div.custom.dropdown a.selector { position: absolute; width: 26px; height: 26px; display: block; background: url(skin/custom-form-sprites.png) -14px 1px no-repeat; right: 0; top: 0; border: solid 1px #ddd; }
form.custom div.custom.dropdown:hover a.selector,
form.custom div.custom.dropdown.open a.selector { background-position: -14px -26px; }

form.custom div.custom.dropdown ul { position: absolute; width: auto; display: none; margin: 0; left: 0; top: 27px; margin: 0; padding: 0; background: #fff; background: grey; border: solid 1px #ddd; }
form.custom div.custom.dropdown ul li { cursor: pointer; padding: 3px 38px 3px 6px; min-height: 18px; margin: 0; white-space: nowrap}
form.custom div.custom.dropdown ul li.selected { background: url(skin/custom-form-sprites.png) right -52px no-repeat; }
form.custom div.custom.dropdown ul li:hover { background-color: #2a85e8; color: #fff; }
form.custom div.custom.dropdown ul li.selected:hover { background: url(skin/custom-form-sprites.png) #2a85e8 right -78px no-repeat; }
form.custom div.custom.dropdown ul.show { display: block; }

form.custom div.custom.dropdown.open ul { display: block; z-index: 10; max-height: 300px; overflow:auto}

form.custom div.custom.dropdown.small { width: 134px !important; }
form.custom div.custom.dropdown.medium { width: 254px !important; }
form.custom div.custom.dropdown.large { width: 434px !important; }
form.custom div.custom.dropdown.expand { width: 100% !important; }

form.custom div.custom.dropdown.open.small ul { width: 132px !important; }
form.custom div.custom.dropdown.open.medium ul { width: 252px !important; }
form.custom div.custom.dropdown.open.large ul { width: 432px !important; }
form.custom div.custom.dropdown.open.expand ul { width: 100% !important; box-sizing: border-box; }

/* Custom input, disabled */
form.custom .custom.disabled { background-color: #ddd; }
