/* Suggested order:
 * display
 * list-style
 * position
 * float
 * clear
 * width
 * height
 * margin
 * padding
 * border
 * background
 * color
 * font
 * text-decoration
 * text-align
 * vertical-align
 * white-space
 * other text
 * content
 *
 */


/* -----------------------------------------------
	Customized Rendering
----------------------------------------------- */


/* --- error messages --- */

.content ul.accessible_mailform_error_list {
    margin: 10px 0px;
}

/* --- required element before --- */

.requiredElement {
    padding-left: 10px;
}
.requiredElement span {
    position: absolute;
    top: 0;
    left: 0;
}

/* --- right floating Input --- */

.formElement label {
    /*width: 29%;*/
    width: 50%;
}
.formElement .formField {
    /*width: 69%;*/
    width: 48%;
}
.formElement label {
    display: inline;
    float: left;
}
.formElement .formField {
    display: inline;
    float: right;
}
span.specialformitem {
    display: block;
    margin-left: 50%;
}

/* --- left floating radio --- */

.formElement fieldset input, #rightContent .formElement fieldset input {
    clear: left;
    float: left;
    height: 18px;
}
.formElement fieldset label, #rightContent .formElement fieldset label {
    float: left;
    width: 88% !important;
    width: 83%;
    line-height: 18px;
}
*+html .formElement fieldset label, *+html #rightContent .formElement fieldset label {
    width: 83% !important;
}

/* --- none floating Input for rightContent --- */

#rightContent .formElement label, #rightContent .formElement .formField {
    width: 100%;
}
#rightContent .formElement label {
    display: block;
    float: none;
}
#rightContent .formElement .formField {
    display: block;
    float: none;
}
#rightContent .formElement input, #rightContent .formElement textarea, #rightContent .formElement select, #rightContent .formElement fieldset {
    width: 100%;
}

/* --- left floating Checkbox for rightContent --- */

#rightContent .checkboxElement label, #rightContent .checkboxElement .formField {
    width: 49%;
}
#rightContent .checkboxElement label {
    display: inline;
    float: right;
}
#rightContent .checkboxElement .formField {
    display: inline;
    float: left;
}
#rightContent .checkboxElement input, #rightContent .checkboxElement textarea, #rightContent .checkboxElement select, #rightContent .checkboxElement fieldset {
    width: 100%;
}

/* -----------------------------------------------
	Customized Styling
----------------------------------------------- */

.formElement, .commentElement {
    margin-bottom: 5px;
    padding-bottom: 4px;
    float: left;
    width: 100%;
}
.formElement .text, .formElement .button {
    border-color: #999;
    background: #f9f9f9;
}
.formElement .button {
    background: #e1e1e1;
    padding: 5px;
    margin-left: 50%;
    margin-top: 15px;
}
.content .formElement .button {
    margin-left: 50%;
    margin-top: 15px;
}
.formElement label {
    line-height: 16px;
}
#rightContent .checkboxElement label {
    width: 88% !important;
    width: 86%;
}
*+html #rightContent .checkboxElement label {
    width: 86% !important;
}
#rightContent .checkboxElement .formField {
    width: 4%;
}
.checkboxElement input {
    top: 0 !important;
    top: -2px;
    left: 0 !important;
    left: -4px;
}
*+html .checkboxElement input {
    top: -2px !important;
    left: -4px !important;
}
.radioElement fieldset input {
    top: 2px;
    left: 0 !important;
    left: -4px;
    height: auto !important;
    margin-right: 5px !important;
    margin-right: 1px;
}
*:first-child+html .radioElement fieldset input {
    height: 18px !important;
}
*+html .radioElement fieldset input {
    top: 2px !important;
    left: -4px !important;
    margin-right: 1px !important;
}

/* for tablet only */

@media screen and (max-width:991px) and (min-width:768px) {
    .formElement textarea {
        width: 40%;
    }
}

/* for mobile only */

@media screen and (max-width:767px) {
    span.specialformitem, .formElement .button {
        transform: translateX(-50%);
    }
    input, textarea, select {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
        margin-top: 5px;
    }
    input[type=checkbox] {
        width: auto;
    }
}
