/* Custom BootStrap CSS */
@media (min-width: 768px) {
    .fs-md-1 {
        font-size: calc(1.375rem + 1.5vw) !important; /* Largest text */
    }
    .fs-md-2 {
        font-size: calc(1.325rem + 0.9vw) !important;
    }
    .fs-md-3 {
        font-size: calc(1.3rem + 0.6vw) !important;
    }
    .fs-md-4 {
        font-size: calc(1.275rem + 0.3vw) !important;
    }
    .fs-md-5 {
        font-size: 1.25rem !important;
    }
    .fs-md-6 {
        font-size: 1rem !important; /* Smallest text */
    }
}

/* WPForms */
/* Center the form container */
.wpforms-container.wpf-center {
    margin: 0 auto !important;
    max-width: 500px !important;
    width: 500px !important;
}

/* Center submit button and make it full width */
.wpf-center .wpforms-submit-container {
    display: inline-block;
    text-align: center;
    width: 100% !important;
}

/* Center page break elements */
.wpf-center .wpforms-field-pagebreak {
    display: inline-block;
    text-align: center;
    width: 100% !important;
}

/* Remove default page break button decorations */
.wpf-center .wpforms-pagebreak-left .wpforms-page-button:before,
.wpf-center .wpforms-pagebreak-left .wpforms-page-button:after {
    content: none;
}

/* Center all text elements */
.wpf-center .wpforms-title,
.wpf-center .wpforms-description,
.wpf-center .wpforms-field-label,
.wpf-center .wpforms-field-sublabel,
.wpf-center .wpforms-field-description {
    text-align: center;
}

/* Mobile responsiveness */
@media only screen and (max-width: 600px) {
    .wpforms-container.wpf-center {
        max-width: unset !important;
        width: auto !important;
    }
}

/* Header CSS */
header {
    background: #111;
    width: 100%;
    height: 100px;
    padding: 0 15%;
}
header .col-auto img {
    padding: 0 20px;
    max-height: 75px;
}
header .top-bar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 1;
}
header .top-bar li a {
    padding: 0.25rem 1rem;
    text-decoration: none;
    color: #fff;
}
header .top-bar li {
    position: relative;
}
header .top-bar li:first-child a {
    padding-left: 0;
}
header .top-bar li:last-child a {
    padding-right: 0;
}
header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
header .burger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    margin-left: auto;
}
header .search {
    margin-left: auto;
}
header .search img {
    width: 50px;
    height: auto;
    filter: invert(1);
    cursor: pointer;
}
.search-form {
    display: none;
}
.search-form.active {
    display: block;
}
.search img.active {
    display: none;
}

header .auth {
    margin-left: auto;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .search-form {
        display: none;
    }
    .search img {
        display: none;
    }

    header {
        padding: 0 5%;
        height: auto;
    }
    .top-bar {
        display: none;
        flex-direction: column;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #111;
        z-index: 1000;
    }
    .top-bar li {
        padding: 0;
        margin: 0;
    }
    .top-bar li a {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        padding: 0.5rem 0 !important;
        margin: 0 !important;
    }
    .top-bar li:last-child a {
        padding-bottom: 0.5rem;
        margin-bottom: 0;
    }

    /* Show menu when active */
    .top-bar.active-menu {
        display: flex;
    }
    
    /* Reduce logo size */
    header .col-auto img {
        max-height: 50px !important;
    }
    
    /* Hide top-bar on mobile, show burger menu */
    header .top-bar {
        display: none;
    }
    
    header .burger-menu {
        display: block;
    }
    
    /* Center logo and search icon */
    header .container {
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    /* Smaller padding for search icon */
    header .search img {
        width: 25px;
    }
}

/* Footer CSS */
footer {
    background: #111;
    color: white;
    text-align: center;
    width: 100%;
    padding: 1rem;
}

/* Ensure full viewport height */
.full-screen {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

/* Main Page CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    
    font-size: 1rem;
}
.page-wrap {
    padding: 0;
    margin: 0;
}

/* Burger Menu */
.burger-menu {
    display: none;
}

/* FP Icon Grid CSS */
#fp-icon-grid .row div img {
    max-width: 80px;
    margin-bottom: 15px;
    
    filter: invert(1);
    cursor: pointer;
}

#fp-icon-grid .row div h5 {
    font-weight: bold;
}

#fp-icon-grid {
    padding: 50px 0;
    border-radius: 5px;
}