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



/*USERFORMS*/

#Form_Form .field {
    float: none
}

#Form_Form .field.lefthalf,
#Form_Form .field.righthalf {
    /*float: left;*/
    width: 49%;
    display: inline-block
}

#Form_Form .field.righthalf .middleColumn {
    width: 92%
}

#Form_Form .field.lefthalf {
    clear: left
}

#Form_Form .field.righthalf {
    clear: right;
    /*float: left;*/
    /*padding-right: 20px;*/
    /*width: 48%;*/
    /*display: table-cell*/
}


/*#Form_Form .field.righthalf:after {
    clear: both;
    content: " ";
    display: block;
    float: none;
    height: 10px;
    overflow: hidden;
    width: 100%;
}*/

#Form_Form .FormHeading {
    border-top: 1px solid #006BBA;
    margin-top: 40px;
    padding-top: 10px;
    width: 92%;

}

/*#Form_Form  .FormHeading:before {clear:right}*/

#Form_Form .checkbox {
    /*float:none!important;*/
    margin-bottom: 5px;
    width: auto !important;
}

#Form_Form .checkboxset label,
#Form_Form .checkbox label {
    display: inline-block;
    padding-bottom: 0;
    padding-top: 5px;
    max-width: 90%;
}

#Form_Form li * {
    /*float:none!important*/

}

#Form_Form fieldset .field {
    width: 100%
}

.typography #Form_Form ul {
    margin: 0;
    padding: 0;
}

.typography #Form_Form ul li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}


/* GENERIC FORMS
----------------------------------------------- */
bodu {
    form {
        max-width: 500px;
        width: 50%;
    }

    div.field {
        margin: 10px 0 15px;
    }

    fieldset {
        border: 0;
        margin: 0;
        padding: 0;
    }

    form label {
        margin-bottom: 5px;
    }

    form label.left {
        display: block;
        font-weight: bold;
    }

    form label.right {
        font-size: 12px;
        color: #888;
    }

    form input.text,
    form textarea,
    form .textajaxuniquetext,
    /* Not sure if this is used? */
    form select {
        width: 100%;
        max-width: 400px;
        padding: 6px 5px;
        font-size: 15px;
        background-color: #fff;
        border: 1px solid #dad9d9;
    }

    .ie7 form select {
        width: 400px;
    }

    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;
    }


    /* Radio and Checkbox */
    .field .checkbox,
    .field .radio {
        float: left;
        width: 13px;
        height: 13px;
        margin-right: 6px;
        margin-top: 3px;
        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: #8fbe00;
    }

    form .bad,
    form .required {
        background-color: #f9d0d0;
        border-color: #cf0000;
        color: #b80000;
    }


    /* ACTIONS */
    .Actions {
        margin-bottom: 20px;
    }

    a.btn,
    button,
    input[type="submit"],
    .Actions .action {
        background: #b80000;
        color: #fff;
        display: inline-block;
        border-radius: 4px;
        padding: 6px 15px;
        margin-top: 10px;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        border: none;
        font-size: 13px;
        margin-right: 10px;
        float: left;
    }

    a.btn:hover,
    button,
    input[type="submit"]:hover,
    .Actions .action:hover {
        background: #C80000;
        color: #fff;
    }

    a.btn {
        line-height: 18px;
        margin-bottom: 10px;
    }

    a.btn:after {
        /* creates arrow in button */
        content: '\2192';
        padding-left: 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;
        content: "* Indicates a required field";
        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;
    }

    /* Search / Login */
    .header form .middleColumn {
        /* float: none;
        width: 100% !important; */
    }




    /* 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 {
        /* Clear button */
        float: left;
        background-color: #888;
    }

    .Actions input.resetformaction: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 {
        color: #B94A48;
        content: "*";
        font-size: 14px;
        font-weight: normal;
        padding-left: 3px;
    }

    /* Radio / Checkbox */
    form .checkboxset ul,
    form .optionset ul {
        margin: 0;
    }

    form .checkboxset li,
    form .optionset li {
        margin-bottom: 5px;
        list-style-type: none;
    }

    form div.checkbox:after {
        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;
    }

    div.holder-required {
        /* This class needs to be changed - is used for both input and div */
        /* background-color: #f9d0d0;
        border: 1px solid #cf0000;
        padding: 10px;
        margin-left: -11px; */
    }

    form input.holder-required {
        /* This class needs to be changed - is used for both input and div */
        border: 1px solid #cf0000;
    }

    /* Error messages */
    input:invalid,
    textarea:invalid {
        border-radius: 1px;
        -moz-box-shadow: 0px 0px 5px red;
        -webkit-box-shadow: 0px 0px 5px red;
        box-shadow: 0px 0px 5px red;
    }

    .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,
    form input.numeric {
        width: 50px;
    }

    form #DMYDate-month,
    form #DMYDate-day {
        width: 25px
    }




    /* 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
        }
    }

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

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

}



/* Registration form margin fixes (SS6 compatibility)
----------------------------------------------- */
#Form_RegisterForm .field,
#Form_ProfileForm .field,
#Form_AddForm .field {
    margin-top: 0;
    margin-bottom: 10px;
}

/* ConfirmedPasswordField generates nested .field elements - normalize these */
#Form_RegisterForm .confirmedpassword .field,
#Form_ProfileForm .confirmedpassword .field,
#Form_AddForm .confirmedpassword .field {
    margin-bottom: 5px;
}

/* Password field holder - remove extra margin */
#Form_RegisterForm_Password_Holder,
#Form_ProfileForm_Password_Holder,
#Form_AddForm_Password_Holder {
    margin-top: 10px;
}

/* Consistent label spacing */
#Form_RegisterForm label.left,
#Form_ProfileForm label.left,
#Form_AddForm label.left {
    margin-bottom: 2px;
    padding-bottom: 0;
}

/* Textarea height adjustments */
#Form_RegisterForm textarea,
#Form_ProfileForm textarea,
#Form_AddForm textarea {
    min-height: 60px;
}

/* MemberProfilePage layout fixes (SS6 compatibility)
----------------------------------------------- */
/* Override: remove green line completely (dev1 has no border) and remove extra padding */
body[class*="MemberProfilePage"] #maincontent {
    border-top: none;
    padding-top: 0;
    padding-right: 0;
}

/* Match dev1 content centering: 60px side margins = 30px container padding + 30px content margin */
body[class*="MemberProfilePage"] .content {
    margin-left: 30px;
    margin-right: 30px;
}

/* Dev1 has 0px margin-top on h2 headings */
body[class*="MemberProfilePage"] .content h2 {
    margin-top: 0;
}

.change-password-toggle {
    margin-top: -6px;
    margin-bottom: 10px;
}

/* Slide animation for password fields */
#password-fields {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.25s ease-out;
}

#password-fields.open {
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.3s ease-in, opacity 0.25s ease-in;
}

.password-fields-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    padding-top: 10px;
    /* Add some spacing when it opens */
}

.password-fields-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.password-fields-container .field {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}