/* 1 - PHONES */
@media (max-width: 576px) {
    #form_title {
        margin-top: 20px;
    }

    .step_title {
        display: block !important;
        max-width: 100px !important;
        font-size: 9.5px !important;
        line-height: 1.4em !important;
        padding: 10px 5px 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 {
        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;
    }

    #pay_dues_form {
        height: 126vh !important;
        width: 90% !important;
        margin: 6% 3% 6% 3% !important;
    }

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

    #pay_dues_form {
        height: 127vh !important;
        width: 70% !important;
        margin: 6% 3% 6% 3% !important;
    }

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

    #pay_dues_form {
        height: 50vh !important;
        width: 60% !important;
        margin: 6% 3% 6% 3% !important;
    }

    #pay_dues_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 !important;
        background-repeat: no-repeat !important;
        padding-top: 40px;
        height: 20vh !important;
        width: 100%;
        word-break: normal;
        font-family: 'Sufler Press' !important;
    }
}

/* 4 - BIG LAPTOP */
@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;
    }

    #pay_dues_form {
        height: 50vh !important;
        width: 70% !important;
        margin: 6% 3% 6% 3% !important;
    }

    #pay_dues_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 !important;
        background-repeat: no-repeat !important;
        padding-top: 40px;
        height: 20vh !important;
        width: 100%;
        word-break: normal;
        font-family: 'Sufler Press' !important;
    }
}

/* 5 - MONITORS */
@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;
    }

    #pay_dues_form {
        height: 50vh !important;
        width: 70% !important;
        margin: 6% 3% 6% 3% !important;
    }

    #pay_dues_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 !important;
        background-repeat: no-repeat !important;
        padding-top: 40px;
        height: 20vh !important;
        width: 100%;
        word-break: normal;
        font-family: 'Sufler Press' !important;
    }
}

/* General Styles */
.form_container {
    margin: auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
    font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
    /* max-width: 900px; */
    line-height: 1.7em;
}

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 {
    /* flex-grow: 1; */
    /* Allow the form to grow but leave space for the sidebar */
    /* flex-basis: auto; */
    /* Prevent excessive growth */
    box-sizing: border-box;
}

@keyframes fancyFadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
        /* Start smaller */
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
        /* Slightly overshoot for a bounce effect */
    }

    100% {
        opacity: 1;
        transform: scale(1);
        /* Settle at normal size */
    }
}


/* Styles for fatal error container */
.fatal_error_container {
    display: flex;
    height: 2000px;
}

.fatal_error_container.hidden {
    display: none;
}

/* Loading Indicator */
.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 {
    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 heading */
#pay_dues_form > h2 {
    text-align: center;
}

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

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 {
    /* flex-grow: 1; */
    /* Allow the form to grow but leave space for the sidebar */
    /* flex-basis: auto; */
    /* Prevent excessive growth */
    box-sizing: border-box;
}

@keyframes fancyFadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
        /* Start smaller */
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
        /* Slightly overshoot for a bounce effect */
    }

    100% {
        opacity: 1;
        transform: scale(1);
        /* Settle at normal size */
    }
}

.step {
    display: none;
    animation: fancyFadeZoomIn 1s ease-out backwards;
    /* Apply the animation */
    opacity: 0;
    transform: scale(0.8);
    /* Match the starting scale of the animation */
    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;
    /* Allow content to expand naturally */
    overflow: visible;
    /* Prevent clipping */
}

.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_div {
    margin-bottom: 15px;
    /* Consistent vertical spacing */
    display: flex;
    /* Use Flexbox for layout */
    flex-direction: column;
    /* Stack label and input vertically */
    align-items: flex-start;
    /* Align labels and inputs to the left */
    justify-content: center;
    gap: 5px;
    /* Space between label and input */
}

label {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 0;
}

.paydues_form_input,
.member_form_select {
    width: 100%;
    padding: 10px !important;
    font-size: 1em;
    border: 1px solid #ccc !important;
    border-radius: 0px;
    box-sizing: border-box;
}

.radio_group {
    display: flex;
    gap: 20px;
}

.radio_item {
    display: flex;
    align-items: center;
    gap: 5px;
}

input[type="radio"] {
    margin: 0;
}

.form_button {
    padding: 13px;
    margin-left: 50px;
    font-size: 1em;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 0px;
    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;
}

/* Error Styles */
.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-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #ff1100;
}

.error_message_container.hidden {
    display: none;
}

.invalid {
    border: 1px solid #ff3434 !important;
}

.required_indicator {
    color: rgb(0, 0, 0);
    font-weight: bold;
}

/* Media query for smaller screens */
@media (max-width: 816px) {
    .fatal_error_container {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        height: auto;
    }

    #pay_dues_form {
        width: 100%;
    }
}

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

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

.summary_label {
    display: flex;
    text-align: left;
    width: 50%;
    justify-content: flex-start;
    align-items: start;
}

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

/* Summary warning container */
.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;
}

/* Informational Container */
.renew_member_info_container {
    background-color: #9ac7ff;
    border-radius: 5px;
    color: #000000;
    border: 1px solid #0073ff;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    font-size: 0.9em;
}

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

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

/* Alert link */
.alert-link {
    text-decoration: underline;
    color: #ff0000;
}

/* Captcha */
#post-217 > div > div > div > div > div.et_pb_row.et_pb_row_4 > div > div > div > div > form > p {
    color: #000;
    padding-bottom: 50px;
    padding-left: 50px;
}

/* Hidden Fields */
.hidden {
    display: none;
}