/* Mobile First Stack */
.single-tribe_events .tribe_events {
    display: flex;
    flex-direction: column;
}
.single-tribe_events .tribe_events .main-col,
.single-tribe_events .tribe_events .sidebar-col {
    flex-basis: 100%;
    padding: 0;
}

/* Desktop: Side-by-side */
@media (min-width: 768px) {
    .single-tribe_events .tribe_events {
        flex-direction: row;
    }
    .single-tribe_events .tribe_events .main-col {
        flex-basis: 66%;
        padding-right: 10px;
    }
    .single-tribe_events .tribe_events .sidebar-col {
        flex-basis: 33%;
        padding-left: 10px;
    }
}

/* -------------------------------------------------------------------------
   HEADER Z-INDEX FIX (Global)
   Ensure the site header stays above all content on all pages
   ------------------------------------------------------------------------- */
.site-header,
.elementor-location-header,
.elementor-section-wrap > .elementor-section.elementor-sticky {
    z-index: 9999 !important;
    position: relative; /* Ensure z-index applies if not already set */
}


/* -------------------------------------------------------------------------
   Login Form - Styles
   ------------------------------------------------------------------------- */
.frm_forms input[type=text],
.frm_forms input[type=password],
.frm_forms input[type=email],
.frm_form_field input[type=text],
.frm_form_field input[type=password],
.frm_form_field input[type=email],
input#user_pass0,
input#user_login {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.frm_forms input[type=text]:focus,
.frm_forms input[type="password"]:focus,
.frm_forms input[type="email"]:focus,
.frm_form_field input[type=text]:focus,
.frm_form_field input[type=password]:focus,
.frm_form_field input[type=email]:focus,
input#user_pass0:focus,
input#user_login:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    color: #0f172a !important;
    outline: 2px solid rgba(59, 130, 246, 0.2);
}

.frm_forms .frm_primary_label,
.frm_forms .frm_checkbox label, 
.frm_forms .frm_radio label,
.frm_form_field .frm_primary_label,
.frm_form_field label,
.login label {
    color: #334155 !important;
    font-weight: 500;
}


/* Autofill overrides to prevent yellow background on filled fields */
.frm_forms input:-webkit-autofill,
.frm_forms input:-webkit-autofill:hover, 
.frm_forms input:-webkit-autofill:focus, 
.frm_forms input:-webkit-autofill:active,
.frm_form_field input:-webkit-autofill,
.frm_form_field input:-webkit-autofill:hover, 
.frm_form_field input:-webkit-autofill:focus, 
.frm_form_field input:-webkit-autofill:active,
input#user_pass0:-webkit-autofill,
input#user_login:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
    transition: background-color 5000s ease-in-out 0s;
}
