/**
 * Global Fixes - Override ALL Tilda restrictions
 * MUST BE LOADED LAST!
 */

/* Remove ALL height restrictions */
*,
*::before,
*::after {
    max-height: none !important;
}

/* Fix HTML and Body */
html {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    position: static !important;
}

/* Remove fixed height from Tilda */
.csssize {
    height: auto !important;
    max-height: none !important;
}

#allrecords {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
}

.t-records {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
}

/* Ensure ALL sections are visible */
section,
.bsl-contact-form-section,
.bsl-contact-info-section {
    position: static !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Force footer to be visible */
#t-footer,
footer,
.modern-footer {
    display: block !important;
    position: static !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure footer is always at the bottom */
body {
    display: flex !important;
    flex-direction: column !important;
}

#allrecords {
    flex: 0 0 auto !important;
}

.bsl-contact-form-section,
.bsl-contact-info-section,
footer {
    flex: 0 0 auto !important;
}
