﻿/*                                                    */
/*  main 'top-level' form elements                    */
/*                                                    */
@import url('calendar.css');
.cform {
	margin: 10px auto 0 auto;
	width: 410px;
}
.cform fieldset {
	margin-top: 10px;
	padding: 5px 0 15px 0;
	border: 1px solid #adadad;
	border-left-color: #ececec;
	border-top-color: #ececec;
	background: #f7f7f7;
}
.cform .cf_hidden {
	display: none;
	border: none!important;
	background: none!important;
	padding: 0!important;
	margin: 0!important;
}
.cform legend {
	margin-left: 10px;
	padding: 0 0 0 330px;
	font: normal 20px Tahoma;
	color: #666666;
}
ol.cf-ol {
	margin: 0!important;
	padding: 0!important;
}
ol.cf-ol li {
	background: none!important;
	margin: 5px 0!important;
	padding: 0;
	list-style: none!important;
	text-align: right;
	line-height: 1.3em;
}
/*                                                    */
/* global definitions for field labels                */
/*                                                    */
.cform label {
	width: 90px;
	margin: 4px 10px 0 0;
	display: -moz-inline-box; /*for mozilla*/;
	display: inline-block; /*for Opera & IE*/;
	text-align: right;
	vertical-align: top;
}
.cform label span {
	width: 90px; /* must be the same as above!*/;
	text-align: right;
	direction: rtl;
	display: block;
}
label.cf-before {
	margin: 4px 10px 0 0;
}
label.cf-after {
	margin: 4px 15px 0pt 6px;
	text-align: left;
	width: 115px;
}
label.cf-after span {
	width: 115px;
	display: block;
}
label.cf-group-after {
	margin: 3px 4px 0 2px;
	width: 72px;
	text-align: left;
}
label.cf-group-after span {
	width: 72px;
	display: block;
}
/*                                                    */
/*   FORM FIELDS general formatting                   */
/*                                                    */
.cform input, .cform textarea, .cform select {
	padding: 3px;
	background: #f9f9f9;
	border: 1px solid #888888;
	vertical-align: top;
}
.cform input:hover, .cform textarea:hover, .cform select:hover {
	background: #C2DDEF;
}
.cform input:focus, .cform textarea:focus, .cform select:focus {
	background: #F3F8F8;
}
.cform textarea, .cform input {
	width: 250px;
}
.cform select {
	width: 158px; /* attempt to have equal length */;
	padding: 2px 0;
}
.cform select.cfselectmulti {
	height: 7.5em;
}
.cform textarea {
	font-family: tahoma;
	font-size: 0.9em;
	overflow: auto;
}
/*                                                    */
/* formatting for text:  "(required)"  & other        */
/*                                                    */
span.reqtxt, span.emailreqtxt {
	margin: 3px 3px 0 0;
	font-size: 0.9em;
	display: -moz-inline-box;
	vertical-align: top;
}
/*                                                    */
/*   FORM submit button                               */
/*                                                    */
p.cf-sb {
	padding: 0!important;
	margin: 0;
}
.cform input.sendbutton {
	width: 50px;
	padding: 5px;
	margin: 10px 0 0 310px;
	font-size: 0.8em;
	background: url(../images/button-bg.gif) repeat-x;
	border: 1px solid #adadad!important;
	border-left-color: #ececec!important;
	border-top-color: #ececec!important;
}
/*                                                    */
/*   FORM FIELDS enhanced error display               */
/*                                                    */
ol.cf-ol li.cf_li_err {
	background: #FFDFDF url(li-err-bg.png) repeat!important;
	border-color: #DF7D7D;
	border-style: solid;
	border-width: 1px 0pt;
	padding: 5px 0!important;
	margin: 5px 0!important;
}
ol.cf-ol li ul.cf_li_text_err {
	height: 1%;
	min-height: 1%;
	margin: 0 0 0 100px;
	padding: 0;
	color: #333;
}
ol.cf-ol ul.cf_li_text_err li {
	background: url(icon-alert.png) no-repeat left 1px!important;
	list-style: none!important;
	font-weight: bold;
	text-indent: 0;
	margin: 0 0 2px!important;
	padding-left: 15px;
}
ol.cf-ol ul.cf_li_text_err li:before {
	content: '';
}
/*                                                    */
/* change formatting of response msgs here            */
/*                                                    */
div.cf_info {
	color: #333;
	display: none;
	padding: 10px 15px!important;
	width: 380px;
	line-height: 1.3em;
	margin: 10px auto;
}
div.cf_info ol {
	margin: 0;
	padding: 5px 15px 0 30px;
}
div.cf_info ol li {
	padding: 1px 0;
	margin: 2px 0;
}
div.cf_info a {
	color: #ad2929!important;
	text-decoration: underline!important;
}
div.success {
	background: #F7F7F7 none repeat scroll 0% 50%;
	color: #444444;
	display: block;
}
div.failure {
	display: block;
	background: #FFDFDF url(li-err-bg.png) repeat!important;
	border-color: #DF7D7D;
	border-style: solid;
	border-width: 1px 0pt;
}
/*                                                    */
/*   formatting for invalid user inputs               */
/*                                                    */
.cform .cf_error {
	color: #ad2929;
	border: 1px solid #ad2929;
}
div.mailerr {
	display: block;
}
.mailerr, .cform .cf_errortxt {
	color: #ad2929;
}
/*                                                    */
/*  Other: link love                                  */
/*                                                    */
.linklove {
	width: 410px;
	margin: 0 auto 10px!important;
	padding: 0!important;
	text-align: center!important;
}
.linklove a, .linklove a:visited {
	font-size: 0.8em;
	font-family: Tahoma;
	color: #aaaaaa!important;
}
/*                                                    */
/*  Other: browser hacks                              */
/*                                                    */
* html .cform fieldset {
	position: relative;
	margin-top: 15px;
	padding-top: 25px;
}
* html .cform legend {
	position: absolute;
	top: -10px;
	left: 10px;
	margin-left: 0;
}
* + html .cform fieldset {
	position: relative;
	margin-top: 15px;
	padding-top: 25px;
}
* + html .cform legend {
	position: absolute;
	top: -10px;
	left: 10px;
	margin-left: 0;
}
* html ol.cf-ol, * html ol.cf-ol li, * html span.reqtxt, * html span.emailreqtxt {
	display: inline-block;  /*for ie6*/
}
* + html .cform label, * + html ol.cf-ol, * + html ol.cf-ol li, * + html span.reqtxt, * + html span.emailreqtxt {
	display: inline-block; /*for ie7*/
}
* html img.captcha {
	margin-bottom: 1px!important;
}
* + html img.captcha {
	margin-bottom: 1px!important;
}
/*  my Persian Form Tweaks  */
#cf_field_4, #cf_field_3 , #cf2_field_2, #cf2_field_3 {
	direction:ltr;
}