/** ----------------------------------------------------------
 *
 * This stylesheet includes both generic form styles and 
 *    additional form styles for the User Defined Form Module.
 *
 ** ------------------------------------------------------- */


/* GENERIC FORMS
----------------------------------------------- */
.medium-editor-element {
    margin-left: 15px;
    margin-right: 15px;
}
#step2,
#step3,
#step4,
#step5 {
    display: none;
}

form h2,form h3,form h4 {
    margin-bottom: 15px !important;
    margin-top: 50px !important;
    display: block;
    color: #214572 !important;
    font-weight: 500 !important;
}
div.field_divider {
    height: 50px;

}
div.field {
    margin: 0;
    width: 100%;
    border: 1px solid #ccc;
    padding: 5px 0 0 0;
}
div.field .nolabel {
    margin-top:30px;
}

div.field .description {
    font-size: 80%;
    padding: 0 15px;
    color: #808080;
}

.fieldgroup {
    display: inline-block;
       
}
.fieldgroup > .middleColumn > .fieldgroup-field {
    float: left;
    margin-right: 15px;
    flex-grow: 1;
}
.fieldgroup > .middleColumn > .fieldgroup-field.last {
    float: left;
    margin-right: 0;
}
.fieldgroup {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}
.fieldgroup label.left {
    font-weight: 700 !important;
    max-width: 200px;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
form {width:100%; margin-top:30px;}

form label {
    margin-bottom: 5px;
    display: block !important;
    font-weight: 400 !important;
    color: #214572 !important;
}
    .fieldholder-small-label,
    form label.left {
       display: block;
       font-weight: 400;
        width:100%;
        padding: 0 15px;
        font-size: 14px;
    }
    form label.right {
        color: #888;
        font-weight: 400;
        width:100%;
        padding: 0 15px;
        font-size: 14px;
    }
    form label  a{
        font-weight: 700 !important;
        color: #214572 !important;
    }    
a.btn {
    margin-top: 30px;
}
form input.text,
form textarea,
form input.file,
form .textajaxuniquetext,   /* Not sure if this is used? */
form select {
    width: 100%;
    padding: 6px 15px;
    font-size: 15px;
     -webkit-box-shadow: 0 0px 0 #ccc, 0 -1px #fff inset;
    -moz-box-shadow: 0 0px 0 #ccc, 0 -1px #fff inset;
    box-shadow: 0 0px 0 #ccc, 0 -1px #fff inset;
    background: #f3f3f3;
    border: none;
}
    .ie7 form select { width: 400px; } /* fix for ie7's rendering of max-width property on select input */

form input.text:focus,
form textarea:focus,
form .textajaxuniquetext:focus,
form select:focus {
    outline:none;
}
form input[disabled], form textarea[disabled] {
    background-color: #f7f7f7;
    border: 1px solid #dad9d9;
}
textarea {
    resize: vertical; /* forces text area to be resized vertically only */
}

.field.checkbox {
    display: inline-block !important;
    padding: 10px 0;
}
.checkbox input[type="checkbox"] {
    margin-left: 15px !important;
}
.checkbox label.right {
    min-height: auto !important;
    padding-left: 40px;
}
/* Radio and Checkbox */
.field .checkbox, 
.field .radio {
    float: left; 
    width: 16px;
    height: 16px;
    margin-right: 26px;
    margin-top: 5px;
    padding: 0;
}
    .checkbox label.right,
    .radio label.right {
        float: left;
    }


/* Messages */
form .message {
    background-color: #fef4ba;
    padding: 5px 10px;
    border: 1px solid #e8c805;
    border-radius: 3px;
}
    form .good {
        background-color: #ecf9d0;
        border-color: #c8d401;
    }
    form .bad, form .required {
        background-color: #f9d0d0;
        border-color: #cf0000;
        color: #b80000;
    }

    .form-group-75 {
        min-width: 75%;
    }

    .form-group-75 > .form-control {
        width: 100% !important;
    }

/* ACTIONS */
.Actions {
    margin-bottom: 20px;
	display:inline-block;
	text-align:right;
	width:100%;
}
    input[type="submit"], .Actions .action {
        background: #e20012;
        color: #e7e7e7;
        display: inline-block;
        border-radius: 0px;
        padding: 6px 15px;
        margin-top: 10px;
        margin-bottom: 10px;
        letter-spacing: 1px;
        border: none;
        width: 100%;
    }
    input[type="submit"]:hover, .Actions .action:hover {
        background: #C80000;
        color: #fff;
    }
    a.btn {
        line-height: 18px;
        margin-bottom: 10px;
    }
    .ie7 input.action {
        width: 0;                     /* IE table-cell margin fix */
        overflow: visible;
    }
    input.action[class] {             /* IE ignores [class] */
        width: auto;                  /* cancel margin fix for other browsers */
    }

    .ie7 .Actions .action {
        float: left;
    }
    .Actions:after {
        color: #B94A48;
        display: inline-block;
        font-weight: normal;
        margin-top: 9px;
    }
    #MemberLoginForm_LoginForm .Actions:after {
        display: none;
    }


/* AREA SPECIFIC */
    /* LOGIN and FORGOT PASSWORD */
    #Remember {
        min-height: 20px;
    }
    #ForgotPassword {
        clear: left;
    }
    #MemberLoginForm_LostPasswordForm .Actions:after {
        display: none;
    }



/* USER DEFINED USER FORM MODULE STYLES
----------------------------------------------- */

/*Generic and mixed*/
.FormHeading {
    clear: both;
    padding-top: 15px;
}
form .date .middleColumn input {
    /*background: transparent url(../images/icons/your_icon_here.png) no-repeat scroll 90px 5px;*/
    width: 114px;
}
.Actions input.resetformaction,
.Actions input.action-minor {                  /* Clear button */
    float: left;
    background-color: #888;
}
.Actions input.resetformaction:hover,
.Actions input.action-minor:hover {            /* Clear button */
    background-color: #aaa;
}

/* Labels */
.checkbox label.right {
    font-size: 13px;                            /* reset to default */
    color: #333;                                /* reset to default */
}
form .requiredField label.left:after { /* pseudo element adds an asterisk to a required fields label */
    color: #B94A48;
    content: "*";
    font-size: 14px;
    font-weight: normal;
    padding-left: 3px;
}

/* Radio / Checkbox */
form .checkboxset ul,
form .optionset ul {
    margin: 0;
	padding-left:0;
}
    form .checkboxset li,
    form .optionset li {
        margin-bottom: 15px;
        list-style-type:none;
		cursor:pointer;
    }
    form div.checkbox:after { /* clearfix */
        content: ".";
        display: block;
        height: 0;
        clear: both;
        visibility: hidden;
    }
    form .checkbox .checkbox { clear: both; }

/* Messages */
span.message {
    margin: 10px 0;
    display: block;
    max-width: 390px;
    clear: left;
}


select {
    padding:3px;
    margin: 0;
	border-radius:0;
    outline:none;
    display: inline-block;
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    cursor:pointer;
}

select[multiple], select[size] {
    height: 180px !important;
}



/* Error messages */
input:invalid,
textarea:invalid {
    border-bottom: 1px solid #b80000 !important;
}
form input.valid
{
    border-bottom: 1px solid #c8d401 !important;
}
.no-boxshadow input:invalid,
.no-boxshadow textarea:invalid {
    background-color: #f0dddd
}

/* To test - potentially not needed? */
.ss-uploadfield-item-info button{
    margin-top: 4px !important;
    float: left;
}
form .creditCardField input,
form input.currency {
    width: 50px;
}
form #DMYDate-month,
form #DMYDate-day {
    width: 25px
}

form span.readonly {
    padding: 6px 15px;
}




/* Responsive form styles
----------------------------------------------- */

@media only screen and (max-width: 700px) { 

    /* To test - potentially not needed? */
	.header form .middleColumn {
	    float: none;
	    width: 100% !important;
	}
	form label.left,
	#MemberLoginForm_LoginForm label {
	    margin-bottom: 8px
	}
	
	form {width:100%;}
	div.field {margin:15px 0 10px;}
	form .middleColumn {width:100%;}
	form label.left {display:block; width:100%; line-height:1;}
}

@media only screen and (max-width: 900px) { 
    form {
        max-width: 100%;
    }
}

@media only screen and (min-width: 700px) { 

}