/*  STYLE ADDS */

body {
    font: 14px/21px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
    background: #a8dbf6 url("lawref/images/page-bg.jpg") top left no-repeat;
    background-size: 100% auto;
    color: #333;
}

a, a:visited {
	line-height: inherit;
	text-decoration: none;
	color: #000000;
}
.warning a, .message a {
    text-decoration: underline;
}
a.button, a.button:visited {
    color: #0C2958;
}
td.action { text-align: center; }

.wrapper {
	width: 960px;
	margin: 20px auto;
}

.client_dialog div:first-child {
    text-align: center;
}

/*  HEADER  */

.TEST_HEADER:before {
    content: 'TEST MODE';
    font-size: 100px;
    position: absolute;
    z-index: -1;
    opacity: 0.5;
    color: black;
    text-shadow: 0 0 10px red;
    right: 0;
}

.header h1 {
    height: 50px;
    width: 100%;
}
.header h1.logo a {
    width: 90%;
    height: 88px;
	background: url("../images/lawyer-referral-logo.png") no-repeat 0 0;
	font: 0/0 a;
	text-shadow: none;
	color: transparent;
    position: absolute;
}

h2 a {
    margin-left: 1em;
}

h2 a span {
    font-size: 12.6px;
}

.header #toplinks { float: right; text-align: right; margin-bottom: 7px; font-size: 16px; font-weight: normal; position:relative; z-index: 1000; }

.header #navigation { float: left; width: 960px; margin-top: 30px; border-bottom: solid 1px #000000; }

.footer {
	float: left;
	width: 960px;
	text-align: center;
	font-size: 0.8em;
}

.fc-description {
    max-height: 4em;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}
.editable:hover {
    background: #cff;
}
.fc-title { margin-top: 6px }
.tightfit .fc-description, .tightfit .fc-title {
    margin-top: 0;
    font-size: 0.6em;
    float: left;
    max-width: 49%;
}

span .ui-selectmenu { margin-bottom: 2px; }

/* END STYLE ADDS */


#debug {
    padding: 1px 20px 20px;
    margin: 20px 0 0;
    background: #FEE;
}
#debug table {
    width: 100%;
}
#debug table, #debug table td, #debug table th {
    border: 1px solid #000;
    border-collapse: collapse;
}
#debug table td, #debug table th {
    padding: 5px;
}
select {
    padding: 0.4em 1em;
}
select#language {
    width: 80px;
}
.icon {
    font-size: .4em;
    margin-right: 5px;
}
table#indexTable {
    width: 100%;
}
.ui-select-menu { float: left; margin-right: 10px; }
.trailing_buttons { clear:both; padding-top: 1em; }
.ui-widget { font-size: 0.9em; }
#navigation .ui-widget { font-size: 1.1em; margin-right: 12px; } /* ADD */

.main_menu {
    list-style-type: none;
    height: 1.5em;
    margin: 0;
    padding: 0;
}
.main_menu li {
    float:left;
    padding: 0;
}
.main_menu li.logout {
    float:right;
    margin-left: 10px;
}
.content_wrapper { 
    clear: both;
    padding: 20px 0;
}
form label {
    display: block;
}
form input, form select, form textarea {
    margin: 0 0 0.5em 0;
}
form textarea { width: 100%; min-width: 300px; max-width: 500px }
form label { font-weight: bold; }
form { margin: 0 }
.node a {
    margin-top: 0.5em;
    display: block;
}
.node a:first-child {
    margin-top: 0;
}
form span a {
    margin-bottom: 1em;
}
.answer div.answer_description {
    font-size: .8em;
    font-style: italic;
}
.expand_hint {
    margin-top: 0.5em;
    background: none;
    border: none;
}
.practice_area { 
    color: #365F08;
}
.question {
    color: #20498c;
    background: #ffffff;
}
.question .review {
display: none;
}
.question:hover .review {
display: block;
}
.answer {
    color: #20498c;
}
.ui-state-hover.practice_area, .ui-state-hover.question {
    color: #dd7a05;  
}
.ui-state-hover.answer {
	color: #ffffff;
}

fieldset { border: solid 1px #000; }
legend { color: #20498c; font-weight: bold; }
#question_grow_shrink {
    position:relative;
    z-index: 100;
}
.jOrgChart .node { position: relative; }
.tree_view .answer_delete {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 0 5px #000;
}
.answer_delete span.ui-button-text { padding: 0; }
.standard_view .icon {
    float:right;
}
#jOrgChart{
    overflow-x: scroll;
    padding-bottom: 1em;
}
#questionaire {
    text-align: center;
}
#question_tree_wrapper {
    text-align: center;
    min-height: 200px;
}
ul#questions {
    list-style: none;
}
ul#questions li {
    text-align: center;
}
div.question {
    margin: 0.5em;
}
.padded {
    padding: 0.5em 1em;
}
.centered {
    text-align: center;
}
.big_button {
    display: block !important; 
    font-size: 1.25em !important;
}
span.answer {
    margin: 0.5em;
}
.answer.ui-button-disabled { opacity: 1 }
div.review, .note {
    color: #888;
    font-style: italic;
}
div.review {
    float: right;
    font-size: 0.5em;
}
.note {
    font-size: 0.8em;
}
div.group { 
    clear:both;
    margin-bottom: 1em;
}
div.group:last-child {
    margin-bottom: 0;
}
.grouped {
    float:left;
    margin-right: 0.5em;
}
div.group div.grouped:last-child, div.group:last-child {
    float: none;
    border: none;
    display: inline-block;
}
.ui-selectmenu {
    font-size: 0.81em;
}
.input_error {
    background: #FAA !important;
    color: red !important;
    font-style: italic;
}
select.multiselect {
    width: 600px;
    height: 300px;
}
.multiselect-label {
    float: none !important;
    margin-bottom: -5px;
    padding-bottom: 0 !important;
}
#practice_area { display: none; }
#practice_area_name {
    font-style: italic;
    font-weight: bold;
    font-size: 1.2em;
}
.paypal_button {
    border: none;
    background: none;
    cursor: pointer;
}
.paypal_checkout { border-collapse: collapse; }
.paypal_checkout, .paypal_checkout table.checkout {
    width: 100%;
}
.checkout_header {
    line-height: 1.1em;
}
table.checkout table th, table.checkout table td {
    text-align: right;
}
table.checkout table td {
    width: 6em;
    line-height: 1.5em;
    padding: 0;
}
table.checkout table {
    padding: 0;
    border-collapse: collapse;
}
.error {
    clear:both;
    background: #FAA;
    border: 1px solid #F00;
    margin-top: 1em;
    padding: 0.5em;
}
.message {
    clear:both;
    background: #AFA;
    border: 1px solid #0F0;
    margin-top: 1em;
    padding: 0.5em;
}
.referral_number {
    margin: 0.5em 0;
}
fieldset.referral label {
    display: inline-block;
    min-width: 10em;
}


/**** Checkout ****/
.checkout .ui-widget-header {
    padding: 0.4em 1em;
    font-size: 1.5em;
}
div.checkout {
    padding: 0.4em 1em;
    font-size: 1.25em;
}
.checkout label {
    display: block;
    font-weight: bold;
    margin-top: 1em;
}
.checkout input[type="text"], .checkout input[type="number"] {
    width: 80%;
}
.checkout input.short {
    width: 20%;
}
label:after {
    color: #654B24;
}
label[for="card_number"].Visa:after {
    content: ': Visa';
}
label[for="card_number"].MasterCard:after {
    content: ': Master Card';
}
label[for="card_number"].AmericanExpress:after {
    content: ': American Express';
}
label[for="card_number"].DinersClub:after {
    content: ': Diners Club';
}
label[for="card_number"].Discover:after {
    content: ': Discover';
}
label[for="card_number"].JCB:after {
    content: ': JCB';
}
label.required:after {
    font-size: 0.8em;
}
label.required_contact:after {
    font-size: 0.8em;
}
label.missing:after {
    color: red;
    font-size: 0.8em;
}
.missing_contact label.required_contact:after {
    color: red;
}
.missing_contact label.contact:after {
    color: red;
    font-size: 0.8em;
}
.checkout select.month {
    width: 250px;
}
.checkout select.ID {
    width: 400px;
}
input[type="text"], input[type="password"] { width: 250px; }
select { width: 285px; }
#password label { font-size: 0.8em; font-style: italic; }
.grouped.group_city_line:last-child {
    width: 5em;
    min-width: 400px;
}
.readonly {
    background: #444 !important;
    color: #ddd !important;
}
.autocomplete:after {
    padding-left: 0.5em;
    color: #282;
}
.ui-keyboard input.padded {
    padding: 0.4em 0;
}

.login_forgot { font-size: 0.8em; font-style: italic; }
fieldset.login-form-area { width: 30% }


/* LAST MINUTE CHANGES */
.ui-icon-pencil, .ui-icon-trash {
    background-image: none !important;
    width: auto;
    height: auto;
    text-indent: 0;
}

ul.referral_status_list { display: none; }
p.referral_status_filter label{
    margin-left: 2em;
    padding-right: 0.5em;
}
select[name="fee"] { width: 500px }

.answer_edit .ui-icon, .answer .ui-icon {
    font-size: 1.5em;
    padding: 0.1em 0.5em;
}

.payment_type_select {
    margin-top: 0.5em;
}
.language_selection { text-align: center; padding-bottom: 0.5em; }
h3.language_selection { padding-bottom: 0; margin: 0 }

.payment_type_select label, .payment_type_select input {
    display: inline;
}
.payment_type_select label {
    margin: 0 1em 0 0.25em;
}
#referrals img {
    margin: 0 auto;
    display: block;
}
fieldset.referrals {
    margin-bottom: 1em;
}
#referrals label {
    display: inline;
}
#referrals span {
    display:inline-block;
}
#referrals span.number {
    width: 6em;
}
#referrals span.created {
    width: 6em;
}
#referrals span.name {
    min-width: 10em;
}

textarea.feedback {
    width: 100%;
    height: 20em;
}

.warning {
    border: 1px solid red;
    background: #faa;
    font-style: italic;
    font-weight: bold;
    padding: 0.5em;
    border-radius: 5px;
    font-size: 1.5em;
}

ul.selected li {
    height: auto;
}
ul.selected li, ul.available li {
    white-space: pre;
}
#calendar-data-error {
    display: none; 
}
.fc-event-time {
  margin-top: 2em; }
.published_event .fc-event-time {
    margin-top: 0; }

.fc-event .btn-type-delete {
  position: relative;
  z-index: 1000; }

.fc-event-title, .fc-event-time {
  max-width: 100%;
  display: block;
  max-height: 3em;
  text-overflow: ellipsis;
  overflow: hidden; }
.fc-event-inner {
  padding: 5px 10px;
  overflow: visible; }
.fc-event {
  color: #555 !important;
  overflow: hidden;
  background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #79bbff), color-stop(1, #378de5) );
  background: -moz-linear-gradient( center top, #79bbff 5%, #378de5 100% );
  padding: 0 1px 0 5px !important;
}
.event_delete {
    position: absolute;
    top: 2px;
    right: 2px;
    padding: 0 2px !important;
    height: 20px !important;
    z-index: 10;
}
.event_delete span {
    background-image: url("lawref/images/ui-icons_b83400_256x240.png") !important;
    width: 16px;
    height: 16px;
}
.calendar_message {
    position: absolute;
    top: -50px;
    right: 0;
    display: none;
    z-index: 1000;
    margin: 0;
}
.calendar_wrapper { position: relative; }
.calendar_select a.ui-selectmenu { font-size: 1em; margin: 0 }
.calendar_select { padding: 0.25em 0; text-align: center; }
.calendar_select > a:first-child { float:left; }
a.edit { float: right; margin-left: 1em; cursor: pointer; position:relative; z-index: 1000 }
.available .ui-state-active { color: #1f1f1f; }

.issues h3 { margin: 0; background: #A44; color: #fff; text-align: center }
.issues ul { margin: 0; padding-left: 1em }
.quick_select { text-align: center; }

/*** END Standard styles ***/

/* Resize */
/* #HD monitor Landscape at 1920x1080
   ================================================== */

@media only screen and (min-width: 1900px) and (max-width: 1950px) {

    body { font: 18px/28px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
    .wrapper {  width: 1770px;  margin: 60px auto; }
    .header h1 { height: 50px; }
    .header h1.logo a { width: 952px; height: 88px; background: url("../images/lawyer-referral-logo.png") no-repeat 0 0; }
    .header #toplinks { width: 400px; margin-bottom: 7px; font-size: 14px; font-weight: normal; }
    .header #navigation { width: 1770px; margin-top: 40px; }
    .content_wrapper { padding: 30px 0; }
    .footer { width: 1770px; font-size: 0.9em; }
}

/* #HD monitor Portrait at 1080w
   ================================================== */

@media only screen and (min-width: 1025px) and (max-width: 1090px) {

    body { font: 18px/28px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
    .wrapper {  width: 1030px;  margin: 30px auto; }
    .header h1.logo { float: none; width: 100%; }
    .header h1 { height: 50px; }
    .header h1.logo a { width: 500px; height: 88px; background: url("../images/lawyer-referral-logo.png") no-repeat 0 0; }
    .header #toplinks {  float: none; width: 100%; font-size: 14px; }
    .header #navigation { width: 100%; margin-top: 30px; }
    .content_wrapper { padding: 30px 0; }
    .footer { width: 1030px; font-size: 0.9em; }
}

/* Tablet or small laptop in portrait mode
   ================================================== */

@media only screen and (min-width: 768px) and (max-width: 959px) {

    .wrapper {  width: 748px;  margin: 15px auto; }
    .header #navigation { width: 100%; margin-top: 20px; }
    .content_wrapper { padding: 25px 0; }
    .footer { width: 748px; }
}

/* >1280: 1360, 1366, 1440w
   ================================================== */

@media only screen and (min-width: 1281px) and (max-width: 1441px) {

    .wrapper {  width: 90%;  margin: 30px auto; }
    .header h1 { height: 50px; }
    .header h1.logo a { width: 500px; height: 88px; background: url("../images/lawyer-referral-logo.png") no-repeat 0 0; }
    .header #toplinks { width: 400px; margin-bottom: 7px; font-size: 13px; }
    .header #navigation { width: 100%; margin-top: 20px; }
    .content_wrapper { padding: 25px 0; }
    .footer { width: 90%; }
}

/* 1600,1680w
   ================================================== */

@media only screen and (min-width: 1442px) and (max-width: 1889px) {

    body { font: 18px/28px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
    .wrapper {  width: 1400px;  margin: 60px auto; }
    .header h1 { height: 88px; }
    .header h1.logo a { width: 500px; height: 88px; background: url("../images/lawyer-referral-logo.png") no-repeat 0 0; }
    .header #toplinks { width: 600px; margin-bottom: 7px; font-size: 14px; font-weight: normal; }
    .header #navigation { width: 1400px; margin-top: 40px; }
    .content_wrapper { padding: 30px 0; }
    .footer { width: 1400px; font-size: 0.9em; }
}

/* #HD monitor Landscape at bigger than 1920
   ================================================== */

@media only screen and (min-width: 1951px) and (max-width: 2569px) {

    body { font: 18px/28px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
    .wrapper {  width: 1900px;  margin: 60px auto; }
    .header h1 { height: 88px; }
    .header h1.logo a { width: 500px; height: 88px; background: url("../images/lawyer-referral-logo.png") no-repeat 0 0; }
    .header #toplinks { width: 400px; margin-bottom: 7px; font-size: 14px; font-weight: normal; }
    .header #navigation { width: 1900px; margin-top: 40px; }
    .content_wrapper { padding: 30px 0; }
    .footer { width: 1900px; font-size: 0.9em; }
}


.terms h1, .terms h2, .terms h3 { text-align: center; }
.terms h1 { margin-bottom: 0; font-variant: small-caps; }
.terms h1 { line-height: 1.2em; font-weight: normal; }
.terms h2 { text-decoration: underline; margin-top: 0; }
.terms ol ol { list-style-type: lower-alpha; }
.terms_dialog .ui-dialog-titlebar-close { display: none; }
.terms_dialog .agree { float: right; }
.active_email {
    border-color: red;
}
