/* ==========================================================================
   1 - PHONES (max-width: 576px)
   ========================================================================== */
   @media (max-width: 576px) {

    /* Form Title */
    #form_title {
        margin-top: 20px;
    }
    
    /* Sidebar Step Titles */
    .step_title {
        display: block !important;
        max-width: 100px !important;
        font-size: 9.5px !important;
        line-height: 1.4em !important;
        padding: 10px 5px;
        border-left: 1px solid #595959 !important;
        height: auto !important;
    }
    
    .step_title.active {
        background-image: none !important;
        border-bottom: 1px solid #EBEBEB;
        border-left: 1px solid #FFFFFF !important;
    }
    
    /* Form Container */
    .form_container {
        margin: auto;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        line-height: 1.7em;
        font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
        max-width: none !important;
        width: 100% !important;
    }
    
    /* Member Sign Up Form */
    #member_signup_form {
        width: 90% !important;
        margin: 3% !important;
    }

    /* Additional content container if used */
    #change_your_details_form {
        flex: 2;
    }
    
    /* Sidebar (used in the fatal error container) */
    aside {
        display: flex !important;
        flex: 1;
        text-align: center;
        color: #ffffff;
        background-image: url(https://cfmeuvic.wpenginepowered.com/wp-content/uploads/2024/10/Form-Container.png);
        background-size: cover !important;
        background-position: center;
        background-repeat: no-repeat;
        padding-top: 40px;
        height: 100vh !important;
        width: 100%;
        word-break: normal;
        font-family: 'Sufler Press' !important;
    }
}

/* ==========================================================================
   2 - TABLET PORTRAIT (min-width: 576px and max-width: 810px)
   ========================================================================== */
@media only screen and (min-width: 576px) and (max-width: 810px) {

    .step_title {
        display: block !important;
        max-width: 100px !important;
        font-size: 10px !important;
        height: auto !important;
    }
    
    .form_container {
        margin: auto;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        line-height: 1.7em;
        font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
        max-width: none !important;
        width: 100% !important;
    }
    
    #member_signup_form {
        width: 70% !important;
        margin: 3% !important;
    }

    #change_your_details_form {
        flex: 2;
    }
    
    aside {
        display: flex !important;
        flex: 1;
        text-align: center;
        color: #ffffff;
        background-image: url(https://cfmeuvic.wpenginepowered.com/wp-content/uploads/2024/10/Form-Container.png);
        background-size: cover !important;
        background-position: center;
        background-repeat: no-repeat;
        padding-top: 40px;
        height: 100vh !important;
        width: 100%;
        word-break: normal;
        font-family: 'Sufler Press' !important;
    }
}

/* ==========================================================================
   3 - SMALL LAPTOP + TABLET LANDSCAPE (min-width: 810px and max-width: 1200px)
   ========================================================================== */
@media only screen and (min-width: 810px) and (max-width: 1200px) {

    .form_container {
        margin: auto;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        line-height: 1.7em;
        font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
        max-width: none !important;
        width: 100% !important;
    }
    
    #member_signup_form {
        width: 60% !important;
        margin: 3% !important;
    }

    
    /* Sidebar within the Member Sign Up Form */
    #member_signup_form aside {
        flex: 1;
        text-align: center;
        color: #ffffff;
        background-image: url(https://cfmeuvic.wpenginepowered.com/wp-content/uploads/2024/10/Form-Container.png);
        background-size: cover !important;
        background-position: center;
        background-repeat: no-repeat;
        padding-top: 40px;
        height: 100vh !important;
        width: 100%;
        word-break: normal;
        font-family: 'Sufler Press' !important;
    }
}

/* ==========================================================================
   4 - BIG LAPTOP (min-width: 1201px and max-width: 1400px)
   ========================================================================== */
@media only screen and (min-width: 1201px) and (max-width: 1400px) {

    .form_container {
        margin: auto;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        line-height: 1.7em;
        font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
        max-width: none !important;
        width: 100% !important;
    }
    
    #member_signup_form {
        width: 70% !important;
        margin: 3% !important;
    }

    #change_your_details_form {
        flex: 2;
    }
    
    #member_signup_form aside {
        flex: 1;
        text-align: center;
        color: #ffffff;
        background-image: url(https://cfmeuvic.wpenginepowered.com/wp-content/uploads/2024/10/Form-Container.png);
        background-size: cover !important;
        background-position: center;
        background-repeat: no-repeat;
        padding-top: 40px;
        height: 100vh !important;
        width: 100%;
        word-break: normal;
        font-family: 'Sufler Press' !important;
    }
}

/* ==========================================================================
   5 - MONITORS (min-width: 1401px and max-width: 5000px)
   ========================================================================== */
@media only screen and (min-width: 1401px) and (max-width: 5000px) {

    .form_container {
        margin: auto;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        line-height: 1.7em;
        font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
        max-width: none !important;
        width: 100% !important;
    }
    
    #member_signup_form {
        width: 70% !important;
        margin: 3% !important;
    }

    #change_your_details_form {
        flex: 2;
    }
    
    #member_signup_form aside {
        flex: 1;
        text-align: center;
        color: #ffffff;
        background-image: url(https://cfmeuvic.wpenginepowered.com/wp-content/uploads/2024/10/Form-Container.png);
        background-size: cover !important;
        background-position: center;
        background-repeat: no-repeat;
        padding-top: 40px;
        height: 100vh !important;
        width: 100%;
        word-break: normal;
        font-family: 'Sufler Press' !important;
    }
}

/* ==========================================================================
   BASE STYLES & COMMON CLASSES/IDS
   ========================================================================== */

/* Container for the entire form */
.form_container {
    margin: auto;
    display: flex;
    flex-direction: column;
    min-height: 1200px;
    box-sizing: border-box;
    font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
    max-width: 900px;
    line-height: 1.7em;
}

/* Fatal error container */
.fatal_error_container {
    display: flex;
    height: 2000px;
}
.fatal_error_container.hidden {
    display: none;
}

/* Loading indicator overlay */
.loading_indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading_indicator::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}
.loading_indicator.hidden {
    display: none;
}

/* Loading text styling */
#loading_text {
    font-family: inherit;
    color: #ffffff;
    font-size: 1.2em;
    margin-left: 10px;
    font-weight: bold;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Form headings */
#member_signup_form > h2,
#change_your_details_form > h2 {
    text-align: center;
}

/* Member sign-up message text */
#member_signup_message_text {
    font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
    color: black;
    font-size: 0.9em;
    padding-bottom: 20px;
}

/* Sidebar (aside) styling */
aside {
    height: auto;
    flex: 1;
    text-align: center;
    color: #ffffff;
    background-image: url('https://cfmeuvic.wpenginepowered.com/wp-content/uploads/2024/10/Form-Container.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 40px;
    width: 100%;
    word-break: normal;
    font-family: 'Sufler Press' !important;
}

/* Styled form wrapper */
.styled_form {
    box-sizing: border-box;
}

/* Keyframes for step animations */
@keyframes fancyFadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Multi-step form container */
.step {
    display: none;
    animation: fancyFadeZoomIn 1s ease-out backwards;
    opacity: 0;
    transform: scale(0.8);
    max-height: 0;
    overflow: hidden;
    padding-left: 20px;
}
.step.active {
    display: block;
    animation: fancyFadeZoomIn 1s ease-out backwards;
    opacity: 1;
    transform: scale(1);
    max-height: none;
    overflow: visible;
}

/* Sidebar step titles */
.step_title {
    width: 100%;
    height: 50px;
    font-size: 1.18em;
    background: rgb(17, 16, 16);
    color: rgb(247, 247, 247);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.step_title.active {
    background: #ffffff;
    color: black;
    background-image: url('https://cfmeuvic.wpenginepowered.com/wp-content/uploads/2024/11/CFMEU-Button-Double-Arrow-Icon.svg');
    background-position: right 1px bottom 50%;
    background-repeat: no-repeat;
    background-size: 18px;
    height: 60px;
}
.step_title.hidden {
    background: rgb(0, 0, 0);
    color: rgb(77, 70, 70);
}

/* Input field containers */
.input_div {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

/* Agree to Terms container */
#agree_to_terms_container {
    display: flex;
    align-items: normal;
    flex-direction: row-reverse;
}

/* Hide optional elements */
.optionalDiv {
    display: none;
}

/* Form labels */
label {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 0;
}

/* Input and select fields */
.member_form_input,
.member_form_select {
    width: 100%;
    padding: 10px !important;
    font-size: 1em;
    border: 1px solid #ccc !important;
    border-radius: 0;
    box-sizing: border-box;
}

/* Radio button groups */
.radio_group {
    display: flex;
    gap: 20px;
}
.radio_item {
    display: flex;
    align-items: center;
    gap: 5px;
}
input[type="radio"] {
    margin: 0;
}

/* Form buttons */
.form_button {
    padding: 13px;
    margin-left: 50px;
    font-size: 1em;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
}
.form_button.hidden {
    display: none;
}
.form_button:hover {
    background-color: #444;
    transform: translateX(-10px);
    padding-left: 30px;
    padding-right: 30px;
    margin-left: 20px;
}
.button_container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
}

/* Levie Programs (dropdown) */
#levie_programs_container {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}
.form_label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}
.dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-menu .dropdown-item {
    padding: 10px;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.dropdown-menu .dropdown-item:hover {
    background: #0078d7;
    color: #fff;
}
.dropdown-menu .dropdown-item input {
    margin-right: 10px;
}
.dropdown-container.active .dropdown-menu {
    display: block;
}

/* Adjust multi-select font size on small screens */
@media (max-width: 768px) {
    #levie_programs {
        font-size: 0.9em;
    }
}

/* Error message container */
.error_message_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #ff887f;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #ff1100;
}
.error_message_container.hidden {
    display: none;
}

/* Invalid input styling */
.invalid {
    border: 1px solid #ff3434 !important;
}

/* Required field indicator */
.required_indicator {
    color: rgb(0, 0, 0);
    font-weight: bold;
}

/* For smaller screens: adjust layout of fatal error container and form width */
@media (max-width: 816px) {
    .fatal_error_container {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        height: auto;
    }
    #member_signup_form {
        width: 100%;
    }
    #change_your_details_form {
        flex: 2;
    }
}

/* Terms and Conditions link styling */
.message_link, #terms_and_conditions_link {
    text-decoration: underline;
    color: #1ebfc7;
}

/* Summary Styles */
.summary_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
}
.member_summary_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
}

.member_summary_item.hidden {
    display: none;
}

.display_levy_total_container{
    display: block;
}
.display_levy_total_container .hidden {
    display: none;
}

.summary_label {
    display: flex;
    text-align: left;
    width: 50%;
    justify-content: flex-start;
    align-items: flex-start;
}
.summary_value {
    display: flex;
    text-align: right;
    /* width: 50%; */
    justify-content: flex-end;
    font-weight: normal;
    color: #555;
}

/* End-of-form warning */
.end_form_warning_container {
    background-color: #ffcfcb;
    color: rgb(250, 0, 0);
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
    border: 1px solid red;
}

/* New member informational container */
.new_member_info_container {
    background-color: #9ac7ff;
    border-radius: 5px;
    color: #000;
    border: 1px solid #0073ff;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    font-size: 0.9em;
}
.new_member_details_container.hidden {
    display: none;
}

/* Start over container */
.start_over_container {
    padding: 10px;
    margin: 10px 0;
    text-align: center;
}
.start_over_container.hidden {
    display: none;
}

/* WooCommerce Cart Metadata (if used) */
.wc-block-components-product-metadata > ul > li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.wc-block-components-product-metadata > ul > li > span:first-child {
    font-weight: bold;
    color: #555;
}

/* Links Shown in Errors */
.error-links, .phone-link {
    color: black;
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Direct Debit Form Styles */
#direct_debit_header{
    padding-top: 50px;
}

/* Levies Container */
#levies_container{
    padding-top: 30px;
}
