/* ################################################################
 * # forms
 * ################################################################ */

/* mainform */ 

.formdiv {
    color: #000000;
    font-size: 12px;
    display: inline;
    float: left; 
    width: 720px;
}

fieldset.mainform {
    margin-bottom: 16px;
    border: 1px solid #000000;
}

fieldset.mainform .rowx,
fieldset.mainform .row {
    display: block;
    float: left;
    width: 99%;
    vertical-align: middle;
    clear: both;
}

fieldset.mainform .header {
    display: block;
    float: left;
    width: 99%;
    color: #00a5f0;
    font-size: 1.5em;
    line-height: 1em;
    margin-bottom: 36px;
    clear: both;
}

fieldset.mainform .rowx label,
fieldset.mainform .row label {
    font-size: 75%;
    color: #000000;
    display: block;
    float: left;
    padding: 4px 4px 4px 4px;
    width: 148px; /* 160 - 4 - 4 - 4 extra */
    margin-bottom: 1px;
}

fieldset.mainform .row span.required,
fieldset.mainform .rowx span.required {
    float: right;
    color: #e40074;
}

fieldset.mainform .row span.error,
fieldset.mainform .rowx span.error {
    display: inline;
    float: right;
    color: #e40074;
    font-size: 50%;
    background-image: url('/modules/UpCoupon/images/arrow_form_error.gif');
    background-position: 24px center;
    background-repeat: no-repeat;
    padding: 4px 0px 4px 39px;
    width: 250px; /* 240 - 4 - 14  */
    height: 24px;
    line-height: 24px;
}    

fieldset.mainform .row label.checkbox_txt,
fieldset.mainform .rowx label.checkbox_txt {
    width: 200px; 
}

fieldset.mainform .row span.bg, 
fieldset.mainform .rowx span.bg {
    display: block;
    float: left;
    padding: 4px 4px 4px 4px;
    margin-bottom: 4px;
    background-image: url('/modules/images/pattern-grey.gif');
}

fieldset.mainform .row span.txt, 
fieldset.mainform .rowx span.txt {
    font-size: 50%;
    color: #000000;
    display: block;
    float: left;
    padding: 4px 4px 4px 4px;
    margin-bottom: 4px;
}

fieldset.mainform .rowx span.bg-radio,
fieldset.mainform .rowx span.bg-checkbox {
    display: block;
    float: left;
    padding: 4px 4px 4px 4px;
    margin-bottom: 4px;
}

fieldset.mainform .row select {
    background-color: #FFFFFF;
    width: 230px;
    height: 20px;
    border: 1px solid #00a5f0;
}

fieldset.mainform .row input {
    width: 230px;
    height: 20px;
    border: 1px solid #00a5f0;
}

fieldset.mainform .row input.cms_textfield_small {
    width: 53px;
    height: 20px;
    border: 1px solid #00a5f0;
}

fieldset.mainform .row .inputfile {
    width: 230px;
    height: 24px;
}

fieldset.mainform .row .inputfile:hover {
    background-position: right -24px;
}

/* file_input */

fieldset.mainform .row .file_input_textbox {
    display: inline;
    float: left;
    width: 170px;
    float: left;
    cursor: pointer;
}

fieldset.mainform .row .file_input_textbox_error {
    display: inline;
    float: left;
    width: 170px;
    float: left;
    border: 1px solid #e40074;
    cursor: pointer;
}

fieldset.mainform .row .file_input_div {
    display: inline;
    float: left;
    position: relative; 
    width: 60px; 
    height: 24px; 
    overflow: hidden;
    cursor: pointer;
}

fieldset.mainform .row .file_input_button {
    display: inline;
    float: left;
    position: absolute; 
    top: 0px;
    width: 60px; 
    height: 24px;
    background-color: #ffc100;
    font-size: 80%;
    font-weight: bold;
    color: #000000;
    border: 0;
    cursor: pointer;
}

fieldset.mainform .row .file_input_hidden,
fieldset.mainform .row .cms_browse {
    position: absolute;
    right: 0px; 
    top: 0px; 
    width: 60px;
    height: 24px;
    font-size: 45px;
    opacity: 0.0; 
    filter: alpha(opacity=0); 
    -ms-filter: "alpha(opacity=0)"; 
    -khtml-opacity: 0; 
    -moz-opacity: 0;
    cursor: pointer;
}


/* /file_input */

fieldset.mainform .row input.error {
    border: 1px solid #e40074;
}

fieldset.mainform .row input:hover, 
fieldset.mainform .row input:focus,
fieldset.mainform .row input.file:hover, 
fieldset.mainform .row input.file:focus {
    border: 1px solid #e40074;
}

fieldset.mainform .row select:hover {
    border: 1px solid #e40074;
}

fieldset.mainform .row select.error {
    border: 1px solid #e40074;
}

fieldset.mainform .row option:hover, 
fieldset.mainform .row option:focus {
    background: #ccedfc;
}

fieldset.mainform .row textarea {
    width: 230px;
    height: 106px;
    border: 1px solid #00a5f0;
    overflow: auto;
}

fieldset.mainform .row textarea:hover, 
fieldset.mainform .row textarea:focus {
    border: 1px solid #e40074;
}

fieldset.mainform .row textarea.error {
    border: 1px solid #e40074;
}

fieldset.mainform .rowx label.radio {
    display: block;
    /* width: 97px; */
    text-indent: -15px;
    padding: 4px 4px 4px 15px;
    background-image: url('/modules/UpCoupon/images/mainform-radio-bg.gif');
    background-position: left center;
    background-repeat: no-repeat;
}

fieldset.mainform .rowx label.checkbox {
    display: block;
    /* width: 99%; */
    text-indent: -15px;
    padding: 4px 4px 4px 15px;
    background-image: url('/modules/UpCoupon/images/mainform-checkbox-bg.gif');
    background-position: left center;
    background-repeat: no-repeat;
}

fieldset.mainform .rowx label.radio-big {
    display: block;
    width: 15px;
    text-indent: -15px;
    padding: 4px 4px 4px 15px;
    background-image: url('/modules/UpCoupon/images/mainform-radio-bg.gif');
    background-position: left center;
    background-repeat: no-repeat;
}

fieldset.mainform .rowx label.checkbox-big {
    display: block;
    width: 15px;
    text-indent: -15px;
    padding: 4px 4px 4px 15px;
    background-image: url('/modules/UpCoupon/images/mainform-checkbox-bg.gif');
    background-position: left center;
    background-repeat: no-repeat;
}

fieldset.mainform .rowx span.radio-big,
fieldset.mainform .rowx span.checkbox-big {
    display: block;
    float: left;
    width: 205px;    
}    

fieldset.mainform .rowx input.radio,
fieldset.mainform .rowx input.checkbox {
    width: 13px;
    height: 13px;
    padding: 0;
    margin: 0px 0px 0px 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    overflow: hidden;
    border: 0;
}

fieldset.mainform .row .button-container {
    display: block; 
    float: left; 
    width: 120px;
}

fieldset.mainform .row input.cms_submit,
fieldset.mainform .row input.cms_reset {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8px;
    width: 115px;
    height: 24px;
    font-weight: bold;
    font-size: 80%;
    background-color: #ffc100;
    background-repeat: no-repeat;
    background-position: right top;
    border: 0 none;
    cursor: pointer;
    padding: 0px 0px 0px 0px;
    /* padding: 24px 0px 0px 0px; */  /* <--- remove text */ 
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}

fieldset.mainform .row input[type=submit]:hover.cms_submit,
fieldset.mainform .row input[type=reset]:hover.cms_reset {
    background-color: #FFFFFF;
}
