
/*Mega menu*/


@media (max-width: 1037px) {


.gb-overlay__content {

        max-height: calc(100dvh - var(--gb-menu-offset, 0px));
        overflow-y: auto !important;
        overflow-x: hidden;
}
























/* =============================================================================
   MISC — Back-to-top button, contact form, mobile overflow fixes
   ============================================================================= */

/* ── Back-to-top button ──────────────────────────────────────────────────────── */
.back-to-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.125rem;
    height: 3.125rem;
    background-color: #0073aa;
    border-radius: 50%;
    position: fixed;
    bottom: 0.938rem;
    right: 1.25rem;
    z-index: 9999;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #ffffff;
    display: block;
}

.back-to-top:hover {
    background-color: #005177;
    cursor: pointer;
}

/* ── Contact form (CF7 + Essential Forms) ────────────────────────────────────── */
.contact-form,
.wpcf7 {
    width: 100%;
    max-width: 100%;
    border-radius: 0.5rem;
    border-color: #d8deeb !important;
    font-size: 1.2rem;
    word-break: break-word;
    overflow-x: hidden;
}

.contact-form p,
.wpcf7 p {
    margin: 0 0 1em 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form input[type="submit"],
.wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.contact-form label,
.wpcf7 label {
    word-wrap: break-word;
}

.contact-form * {
    max-width: 100%;
}

/* ── Mobile overflow fixes ───────────────────────────────────────────────────── */
/* GenerateBlocks images */
.gb-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}
