/* ==============================================================
   GLOBAL TYPOGRAPHY — unified, easy to adjust
   ============================================================== */

/* Base font for all text elements */
body,
button,
input,
select,
textarea {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
                 sans-serif !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    font-weight: 300 !important;
}

/* Headings — global hierarchy */
h1 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
    font-size: 48px !important;
    line-height: 1.2 !important;
}

h2 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600 !important;  /* premium, stronger H2 */
    font-size: 36px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.5px !important;
}

/* GLOBAL H3 — tuned to sit correctly under the stronger H2 */
h3 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 550 !important;   /* stronger, but not competing with H2 */
    font-size: 24px !important;    /* slight bump for clarity */
    line-height: 1.32 !important;  /* tighter, more premium geometry */
    letter-spacing: 0.3px !important;
}


h4 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
}

h5 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
}

h6 {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}


/* Paragraphs and list items */
p,
li {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 300 !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* Strong/emphasis still respect hierarchy */
strong, b {
    font-weight: 600 !important;
}

em, i {
    font-style: italic !important;
}

/* /* ==============================================================
   UPPER FOOTER (footer-widgets) — charcoal premium finish
   ============================================================== */

.footer-widgets,
.footer-widgets .wrap,
.footer-widgets .widget {
    background-color: #111111 !important;   /* charcoal */
    color: #ffffff !important;
}

/* Footer widget headings */
.footer-widgets h2,
.footer-widgets h3,
.footer-widgets h4 {
    color: #ffffff !important;
}

/* Footer links */
.footer-widgets a {
    color: #ffffff !important;
    font-weight: 500 !important;
}

.footer-widgets a:hover {
    color: #d0e6ff !important;   /* soft blue hover */
}

/* ==============================================================
   FP1 HERO — remove ALL extra top padding on mobile
   ============================================================== */

@media (max-width: 768px) {

    /* Remove theme padding */
    .front-page-1,
    .front-page-1 .image-section,
    .front-page-1 .widget-area {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove Genesis widget padding */
    .front-page-1 .widget {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove pseudo-element padding */
    .front-page-1 .image-section::before {
        padding-top: 0 !important;
        margin-top: 0 !important;
        height: auto !important;
    }

    /* Force the hero to start immediately */
    .front-page-1 .image-section {
        padding-top: 32px !important;   /* controlled, minimal */
        padding-bottom: 48px !important;
    }
}

/* ==============================================================
   FP2 — Force H2 to match global weight (600)
   ============================================================== */

.front-page-2 h2 {
    font-weight: 600 !important;
}
.front-page-2 h3 {
    font-weight: 550 !important;
}

/* ==============================================================
   EXISTING WORKING CUSTOM CSS (LAYOUT, CARDS, FP SECTIONS)
   ============================================================== */

/*
==============================================================
GLOBAL / LEGACY CUSTOMISATIONS (KEPT)
==============================================================
*/

@media only screen and (max-width: 800px) {
    .one-third-center {
        margin: 0;
        width: 100%;
    }
}

.team-content {
    padding: 0 0 25px !important;
}

.entry-header::after {
    padding-bottom: 10px !important;
}

/* Background boxes for FP4 */
#text-86 { background: rgba(2,116,189,0.8); }
#text-88 { background: rgba(127,28,106,0.8); }
#text-87 { background: rgba(204,202,201,0.8); }
#text-85 { background: rgba(86,143,15,0.8); }

/* Blog styling */
.display-posts-listing .listing-item { clear: both; }
.display-posts-listing img {
    float: left;
    margin: 0 10px 10px 0;
    padding: 10px;
}

.pt-cv-title a { font-weight: 600; }
.pt-cv-title { font-size: 20px; }
.pt-cv-content, .pt-cv-content * { font-size: 16px; }

.btn-success {
    color: #ffffff;
    background-color: #0274bd;
    border-color: #0274bd;
}

/* Footer */
.footer-widgets .wrap {
    padding-bottom: 25px;
    padding-top: 25px;
}

.footer-widgets .widget { margin-bottom: 0; }

/* Popup */
.popmake.theme-2557 > .popmake-close { display: none; }
.popmake.theme-2557 p { margin: 5px; }
.popmake.theme-2557 input { padding: 5px; }
.popmake.theme-2557 { max-height: 100%; }

/*
==============================================================
FRONT PAGE 2 — LAYOUT ONLY (NO TYPOGRAPHY, NO EXTRA PADDING)
==============================================================
*/

/* Left align FP2 content */
.front-page-2 .fp2-why-optimal {
    text-align: left !important;
}

.front-page-2 .fp2-grid,
.front-page-6 .fp2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px !important;
    max-width: 1100px;
    margin: 0 auto;
}


/* Responsive */
@media (max-width: 900px) {
    .front-page-2 .fp2-grid,
    .front-page-6 .fp2-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .front-page-2 .fp2-grid,
    .front-page-6 .fp2-grid {
        grid-template-columns: 1fr;
    }
}

/*
==============================================================
FRONT PAGE 3 — LAYOUT ONLY (NO TYPOGRAPHY, NO EXTRA PADDING)
==============================================================
*/

/* Remove table layout */
#front-page-3 .image-section {
    display: block !important;
    height: auto !important;
}

#front-page-3 .image-section .widget-area {
    display: block !important;
    text-align: left !important;
    vertical-align: top !important;
    padding: 0 !important;
}

/* FP3 cards */
#front-page-3 .widget {
    background: rgba(0,0,0,0.35) !important;
    padding: 16px !important;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    backdrop-filter: blur(2px);
    text-align: left !important;
    margin-bottom: 24px;
}

/* FP3 grid */
#front-page-3 .widget-area {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding: 0 !important;
}

/*
==============================================================
FRONT PAGE 7 — LAYOUT ONLY (NO TYPOGRAPHY, NO EXTRA PADDING)
==============================================================
*/

/* Neutralise theme floats */
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text,
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text > .widget-wrap {
    float: none !important;
    width: 100% !important;
    clear: none !important;
    margin: 0 !important;
    display: block !important;
    box-sizing: border-box;
}

/* Flex layout */
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
}

/* Header full width */
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text:nth-of-type(1) {
    flex: 0 0 100% !important;
}

/* Three equal columns */
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text:nth-of-type(2),
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text:nth-of-type(3),
#front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text:nth-of-type(4) {
    flex: 0 0 calc(33.333% - 24px) !important;
}

/* FP7 cards */
#front-page-7 .widget {
    background: rgba(0,0,0,0.35) !important;
    padding: 16px !important;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    backdrop-filter: blur(2px);
}

/* FP7 text stays white */
#front-page-7,
#front-page-7 .widget,
#front-page-7 .widget * {
    color: #ffffff !important;
}

/* ==========================================================
   REMOVE TABLE LAYOUT FROM ALL FRONT-PAGE IMAGE SECTIONS
   (This restores automatic height behaviour)
   ========================================================== */

.front-page-1 .image-section,
.front-page-3 .image-section,
.front-page-5 .image-section,
.front-page-7 .image-section {
    display: block !important;
    table-layout: auto !important;
}

.front-page-1 .image-section .widget-area,
.front-page-3 .image-section .widget-area,
.front-page-5 .image-section .widget-area,
.front-page-7 .image-section .widget-area {
    display: block !important;
    vertical-align: top !important;
    text-align: left !important;
}

/* ==========================================================
   FORCE-REMOVE TABLE LAYOUT FROM ALL IMAGE-SECTIONS
   (This restores automatic height behaviour)
   ========================================================== */

.front-page-1 .image-section,
.front-page-5 .image-section,
.front-page-7 .image-section {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

.front-page-1 .image-section .widget-area,
.front-page-5 .image-section .widget-area,
.front-page-7 .image-section .widget-area {
    display: block !important;
    vertical-align: top !important;
    text-align: left !important;
}

/* Unified vertical padding for all image sections on the front page */

.front-page-1 .image-section,
.front-page-3 .image-section,
.front-page-5 .image-section,
.front-page-7 .image-section {
    padding-top: 62px !important;
    padding-bottom: 62px !important;
}

.front-page-5 .image-section,
.front-page-7 .image-section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

/* FP5 – header full width, three boxes in thirds */
.front-page-5 .flexible-widgets.widget-thirds .widget:first-child {
    float: none;
    width: 100%;
    clear: both;
}

/* All widgets after the header = thirds */
.front-page-5 .flexible-widgets.widget-thirds .widget:nth-of-type(n+2) {
    float: left;
    width: 31.6239%;
    margin-left: 2.564%;
}

.front-page-5 .flexible-widgets.widget-thirds .widget:nth-of-type(2) {
    margin-left: 0;
}

/* FP5 — Shading for ALL widgets including header */
.front-page-5 .flexible-widgets.widget-thirds .widget {
    background: rgba(0,0,0,0.35) !important;
    padding: 24px !important;
    border-radius: 12px !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25) !important;
    box-sizing: border-box !important;
}

==============================================================
   MOBILE FIX — stack FP3, FP5, FP6, FP7 cards vertically
   ============================================================== */

@media (max-width: 768px) {

    /* FP3 grid collapses to 1 column */
    #front-page-3 .widget-area {
        grid-template-columns: 1fr !important;
    }

    /* FP5, FP6, FP7 — remove floats and forced widths */
    .front-page-5 .flexible-widgets.widget-thirds .widget,
    
    .front-page-7 .flexible-widgets.widget-thirds .widget {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* FP7 flex layout collapses cleanly */
    #front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap {
        flex-direction: column !important;
    }

    #front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text {
        flex: 0 0 100% !important;
    }
}
/* ==============================================================
   GLOBAL MOBILE SYSTEM — typography, spacing, cards, FP1 hero
   ============================================================== */

@media (max-width: 768px) {

    /* -----------------------------------------
       MOBILE TYPOGRAPHY — H1 / H2 / H3
       ----------------------------------------- */

    h1 {
        font-size: 32px !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 28px !important;
        line-height: 1.28 !important;
    }

    h3 {
        font-size: 20px !important;
        line-height: 1.32 !important;
    }

    p, li {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }


    /* -----------------------------------------
       MOBILE CARD PADDING — FP3 / FP5 / FP6 / FP7
       ----------------------------------------- */

    #front-page-3 .widget,
    .front-page-5 .flexible-widgets.widget-thirds .widget,
    #front-page-7 .widget {
        padding: 18px !important;
        border-radius: 12px !important;
    }


    /* -----------------------------------------
       MOBILE STACKING — FP3 / FP5 / FP6 / FP7
       ----------------------------------------- */

    /* FP3 grid → 1 column */
    #front-page-3 .widget-area {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

   

    /* FP7 flex → column */
    #front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap {
        flex-direction: column !important;
        gap: 18px !important;
    }

    #front-page-7 .flexible-widgets.widget-area.widget-thirds .wrap > .widget_text {
        flex: 0 0 100% !important;
    }


    /* -----------------------------------------
       UNIFIED MOBILE SPACING — FP3 / FP5 / FP6 / FP7
       ----------------------------------------- */

    #front-page-3 .widget,
    .front-page-5 .flexible-widgets.widget-thirds .widget,
   
    #front-page-7 .widget {
        margin-bottom: 24px !important;
    }

    .front-page-5,

    #front-page-7,
    #front-page-3 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }


    /* -----------------------------------------
       FP1 HERO — mobile layout fix
       ----------------------------------------- */

    .front-page-1 .image-section {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
        text-align: left !important;
    }

    .front-page-1 h1 {
        font-size: 34px !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
    }

    .front-page-1 p {
        font-size: 18px !important;
        line-height: 1.55 !important;
        margin-bottom: 24px !important;
    }

    /* FP1 hero button spacing */
    .front-page-1 .button,
    .front-page-1 a.button {
        margin-top: 12px !important;
        padding: 14px 24px !important;
        font-size: 16px !important;
    }
}
/* ==============================================================
   FP1 HERO — reduced top padding on mobile
   ============================================================== */

@media (max-width: 768px) {
    .front-page-1 .image-section {
        padding-top: 32px !important;   /* reduced from 80px */
        padding-bottom: 48px !important; /* still balanced */
    }
}
/* ==============================================================
   FP1 HERO — remove ALL extra top padding on mobile
   ============================================================== */

@media (max-width: 768px) {

    /* Remove theme padding */
    .front-page-1,
    .front-page-1 .image-section,
    .front-page-1 .widget-area {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove Genesis widget padding */
    .front-page-1 .widget {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove pseudo-element padding */
    .front-page-1 .image-section::before {
        padding-top: 0 !important;
        margin-top: 0 !important;
        height: auto !important;
    }

    /* Force the hero to start immediately */
    .front-page-1 .image-section {
        padding-top: 32px !important;   /* controlled, minimal */
        padding-bottom: 48px !important;
    }
}
/* ==============================================================
   UNIFIED OVERLAY — FP1, FP3, FP5, FP7
   Lightened charcoal gradient overlay above background images
   ============================================================== */

.front-page-1 .image-section::before,
.front-page-3 .image-section::before,
.front-page-5 .image-section::before,
.front-page-7 .image-section::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1 !important;

    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.32) 0%,   /* lighter top */
        rgba(0,0,0,0.18) 100%  /* lighter bottom */
    ) !important;

    pointer-events: none !important;
}



/* Ensure FP7 text sits above the overlay */
.front-page-1 .image-section .widget-area,
.front-page-3 .image-section .widget-area,
.front-page-5 .image-section .widget-area,
.front-page-7 .image-section .widget-area {
    position: relative !important;
    z-index: 2 !important;
}

/* FP6 — MATCH FP2 GRID & CLEAN LAYOUT */

}

/* Remove all legacy FP6 styling */
.front-page-6 .widget,
.front-page-6 .widget * {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove FP6 overlay */
.front-page-6 .image-section::before {
    background: none !important;
}

/* FP6 spacing (match FP2 rhythm) */
.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* MOBILE — collapse to 1 column */
@media (max-width: 768px) {
    .front-page-6 .fp6-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
/* ==============================================================
   FP6 — REMOVE ALL THEME WIDGET SPACING & WRAPPERS
   ============================================================== */

/* Remove Genesis widget padding inside FP6 */
.front-page-6 .widget,
.front-page-6 .widget-wrap {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove Altitude Pro flexible-widgets spacing */
.front-page-6 .flexible-widgets.widget-thirds {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove spacing applied to the wrap container */
.front-page-6 .flexible-widgets.widget-thirds .wrap {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove spacing between widgets (even though there is only one) */
.front-page-6 .flexible-widgets.widget-thirds .widget {
    margin: 0 !important;
}

/* Ensure FP6 section matches FP2 vertical rhythm */
.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}
/* ==============================================================
   FP6 — HARD ALIGN TO FP2 STRUCTURE
   ============================================================== */

/* Kill all wrapper spacing inside FP6 */
.front-page-6 .flexible-widgets.widget-thirds,
.front-page-6 .flexible-widgets.widget-thirds .wrap,
.front-page-6 .widget,
.front-page-6 .widget-wrap,
.front-page-6 .textwidget {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Make the inner content behave like FP2 */
.front-page-6 .textwidget {
    max-width: 1100px;
    margin: 0 auto;
}

/* FP6 grid — identical to FP2, but anchored to the actual HTML */
.front-page-6 .textwidget .fp6-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* Items left-aligned, like FP2 */
.front-page-6 .textwidget .fp6-item {
    text-align: left;
}

/* Section padding to match FP2 rhythm */
.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .front-page-6 .textwidget .fp6-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
/* ==============================================================
   FINAL FIX — FP6 + FP5 MOBILE
   ============================================================== */

/* FP6 — kill all theme layout wrappers */
.front-page-6 .flexible-widgets.widget-thirds,
.front-page-6 .flexible-widgets.widget-thirds .wrap,
.front-page-6 .widget_text,
.front-page-6 .widget-wrap,
.front-page-6 .textwidget {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* FP6 — force grid to apply no matter what wrappers exist */
.front-page-6 .textwidget .fp6-grid,
.front-page-6 .widget_text .fp6-grid,
.front-page-6 .widget-wrap .fp6-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    max-width: 1100px !important;
    margin: 32px auto 0 auto !important;
}

/* FP6 items */
.front-page-6 .fp6-item {
    text-align: left !important;
}

/* FP6 section spacing */
.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* FP6 mobile — collapse to 1 column */
@media (max-width: 768px) {
    .front-page-6 .fp6-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* ==============================================================
   FP5 — RESTORE MOBILE STACKING (critical)
   ============================================================== */

@media (max-width: 768px) {

    /* Kill floats and widths */
    .front-page-5 .flexible-widgets.widget-thirds .widget {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block !important;
    }

    /* Ensure spacing is clean */
    .front-page-5 .flexible-widgets.widget-thirds .widget {
        margin-bottom: 24px !important;
    }
}
/* FP6 — match FP2 breakpoints for grid behaviour */
@media (max-width: 900px) {
    .front-page-6 .fp6-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .front-page-6 .fp6-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==============================================================
   FP6 — FINAL FIX: MATCH FP2 SPACING + FIX MOBILE STACKING
   ============================================================== */

/* 1. Kill the theme's thirds layout at the container level */
.front-page-6 .flexible-widgets.widget-thirds,
.front-page-6 .flexible-widgets.widget-thirds .wrap {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Remove widget spacing that FP2 does not have */
.front-page-6 .widget_text,
.front-page-6 .widget-wrap,
.front-page-6 .textwidget {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. FP6 grid — identical to FP2 */
.front-page-6 .fp6-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    max-width: 1100px !important;
    margin: 32px auto 0 auto !important; /* FP2 spacing */
}

/* 4. FP6 items */
.front-page-6 .fp6-item {
    text-align: left !important;
}

/* 5. FP6 section spacing (match FP2 rhythm) */
.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* 6. FP6 MOBILE — force stacking */
@media (max-width: 768px) {

    /* Kill the theme's thirds layout completely */
    .front-page-6 .flexible-widgets.widget-thirds .widget,
    .front-page-6 .flexible-widgets.widget-thirds .wrap > * {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Force grid to 1 column */
    .front-page-6 .fp6-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}
/* FP6 — clamp spacing to match FP2 */
.front-page-6 .flexible-widgets.widget-thirds,
.front-page-6 .flexible-widgets.widget-thirds .wrap,
.front-page-6 .widget_text,
.front-page-6 .widget-wrap,
.front-page-6 .textwidget {
    margin: 0 !important;
    padding: 0 !important;
}

.front-page-6 .fp6-grid {
    margin-top: 32px !important;   /* same as FP2 */
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.front-page-6 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}
/* FP2 — remove left indent so grid aligns with H2 */
.front-page-2 .fp2-grid {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
/* ==============================================================
   FP1 — Modern Hero Layout
   ============================================================== */

/* Subtitle under H1 */
.front-page-1 .fp1-subtitle {
    font-size: 22px;
    font-weight: 300;
    margin: 16px 0 28px 0;
    max-width: 700px;
}

/* Three highlight points */
.front-page-1 .fp1-highlights {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    max-width: 900px;
}

.front-page-1 .fp1-point {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

/* Supporting paragraph */
.front-page-1 .fp1-support {
    font-size: 20px;
    line-height: 1.55;
    margin-bottom: 32px;
    max-width: 700px;
}

/* Credibility footer */
.front-page-1 .fp1-credibility {
    font-size: 16px;
    opacity: 0.85;
    margin-top: 24px;
}

/* ==============================================================
   FP1 — Mobile Layout
   ============================================================== */

@media (max-width: 768px) {

    .front-page-1 .fp1-subtitle {
        font-size: 18px;
        line-height: 1.45;
        margin-bottom: 20px;
    }

    .front-page-1 .fp1-highlights {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .front-page-1 .fp1-point {
        font-size: 17px;
        line-height: 1.45;
    }

    .front-page-1 .fp1-support {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .front-page-1 .fp1-credibility {
        font-size: 15px;
        margin-top: 20px;
    }
}
/* FP1 — Icon container */
.front-page-1 .fp1-icon-svg {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.front-page-1 .fp1-icon-svg svg {
    width: 100%;
    height: 100%;
}

/* FP1 — Highlight row layout */
.front-page-1 .fp1-highlights {
    display: flex;
    gap: 28px;
    margin: 28px 0;
    max-width: 900px;
}

.front-page-1 .fp1-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
}

/* FP1 — Mobile layout */
@media (max-width: 768px) {

    .front-page-1 .fp1-highlights {
        flex-direction: column;
        gap: 18px;
        margin: 24px 0;
    }

    .front-page-1 .fp1-icon-svg {
        width: 34px;
        height: 34px;
    }

    .front-page-1 .fp1-point {
        font-size: 17px;
        line-height: 1.45;
    }
}
/* ==============================================================
   FOOTER — Campaign Monitor Inline Form (Premium Styling)
   ============================================================== */

/* Style the submit button */
.site-footer .js-cm-form button[type="submit"] {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
    margin-top: 12px !important;
}

/* Hover effect */
.site-footer .js-cm-form button[type="submit"]:hover {
    background: rgba(255,255,255,0.85) !important;
    color: #000000 !important;
}

/* Style the input fields */
.site-footer .js-cm-form input[type="text"],
.site-footer .js-cm-form input[type="email"] {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    margin-bottom: 10px !important;
}

/* Style labels */
.site-footer .js-cm-form label {
    font-size: 15px !important;
    color: #ffffff !important;
    margin-bottom: 4px !important;
    display: block !important;
}
/* Force footer subscribe button styling */
.footer-subscribe-button {
    display: inline-block;
    background-color: #000000 !important;   /* black background */
    color: #ffffff !important;              /* white text */
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #000000 !important;
}

/* Hover state */
.footer-subscribe-button:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Match FP1 transparent button inside footer widgets */
.footer-widgets .footer-subscribe-button {
    display: inline-block;
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 6px !important;
    border: 1px solid #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

/* Hover state — FP1 style */
.footer-widgets .footer-subscribe-button:hover {
    background-color: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}
.fp4-button-black {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
}

.fp4-button-black:hover,
.fp4-button-black:focus {
  background-color: #222222 !important;
  border-color: #222222 !important;
  color: #ffffff !important;
}
/* ----------------------------------------------------------
   GLOBAL BUTTON SYSTEM — Optimal Advisory
   All buttons default: black background, white text
----------------------------------------------------------- */

.button,
.button-primary,
a.button,
a.button-primary,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.more-link,
.site-inner a.button,
.widget-area .button,
.footer-widgets .button {
    background-color: #000000 !important;
    border: 1px solid #000000 !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: inline-block !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.button:hover,
.button-primary:hover,
a.button:hover,
a.button-primary:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.more-link:hover,
.site-inner a.button:hover,
.widget-area .button:hover,
.footer-widgets .button:hover,
.button:focus,
.button-primary:focus {
    background-color: #222222 !important;
    border-color: #222222 !important;
    color: #ffffff !important;
}

/* ----------------------------------------------------------
   FP1 HERO BUTTON — transparent white style
   Altitude Pro front-page 1 section
----------------------------------------------------------- */

.front-page-1 .button,
.front-page-1 a.button,
.front-page-1 .button-primary {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

/* FP1 hover */
.front-page-1 .button:hover,
.front-page-1 a.button:hover,
.front-page-1 .button-primary:hover {
    background-color: rgba(255,255,255,0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}
/* Overlay */
.oa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

/* Modal */
.oa-modal {
  background: #fff;
  max-width: 540px;
  width: 100%;
  border-radius: 8px;
  padding: 32px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: oaFadeIn 0.25s ease-out;
}

@keyframes oaFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Close button */
.oa-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* Typography */
.oa-modal-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
}

.oa-modal-intro {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
}

/* Form layout */
.oa-grid {
  display: flex;
  gap: 16px;
}

.oa-grid .oa-field {
  flex: 1;
}

.oa-field {
  margin-bottom: 18px;
}

.oa-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.oa-field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
}

/* Checkbox group */
.oa-checkbox-group > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* Submit button */
.oa-submit {
  background: #003366;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}

.oa-submit:hover {
  background: #00264d;
}
/* Footer Subscribe Button — Base */
.footer-widgets .footer-subscribe-button {
    display: inline-block;
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 6px !important;
    border: 1px solid #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

/* Hover */
.footer-widgets .footer-subscribe-button:hover {
    background-color: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}
/* ==============================================================
   MODAL — visual styling only (no click / JS changes)
   ============================================================== */

/* Center overlay and give it a soft dim background */
.oa-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;              /* stays controlled by your onclick */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  padding: 20px;
}

/* Modal card */
.oa-modal {
  background: #ffffff;
  max-width: 520px;
  width: 100%;
  border-radius: 10px;
  padding: 32px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* Close “×” button */
.oa-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  color: #333;
}

/* Title + intro */
.oa-modal-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
  color: #222;
}

.oa-modal-intro {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

/* Two-column grid for first/last name */
.oa-grid {
  display: flex;
  gap: 16px;
}

.oa-grid .oa-field {
  flex: 1;
}

/* Fields */
.oa-field {
  margin-bottom: 18px;
}

.oa-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.oa-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
}

.oa-field input:focus {
  border-color: #003366;
  outline: none;
  background: #ffffff;
}

/* Checkbox group */
.oa-checkbox-group > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* Submit button */
.oa-submit {
  background: #003366;
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

.oa-submit:hover {
  background: #00264d;
}

/* Mobile: stack grid */
@media (max-width: 480px) {
  .oa-grid {
    flex-direction: column;
  }
}
/* ==============================================================
   FP6 — FINAL MOBILE STACKING FIX
   ============================================================== */
@media (max-width: 768px) {
  .front-page-6 .fp6-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .front-page-6 .fp6-item {
    width: 100% !important;
    margin: 0 !important;
  }
}
/* ==============================================================
   FP6 — ABSOLUTE FINAL MOBILE STACKING FIX
   ============================================================== */
@media (max-width: 768px) {
  .front-page-6 .fp6-grid {
    display: block !important;
  }

  .front-page-6 .fp6-item {
    width: 100% !important;
    margin-bottom: 24px !important;
    display: block !important;
  }
}
/* ==============================================================
   MODAL — MOBILE HEIGHT + SCROLL FIX
   ============================================================== */

.oa-modal-overlay {
  align-items: flex-start !important;
  overflow-y: auto !important;
}

.oa-modal {
  max-height: 90vh !important;
  overflow-y: auto !important;
  margin: 40px auto !important;
}

@media (max-width: 480px) {
  .oa-modal {
    padding: 20px !important;
  }
}
/* ==============================================================
   FP6 — hard mobile stacking fix
   ============================================================== */
@media (max-width: 768px) {
  .front-page-6 .fp6-grid {
    display: block !important;              /* stop acting like a grid */
  }

  .front-page-6 .fp6-grid > .fp6-item {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 24px !important;
  }
}
/* ==============================================================
   Modal — mobile width + scroll
   ============================================================== */

/* Let the overlay scroll if needed */
.oa-modal-overlay {
  align-items: flex-start !important;
  overflow-y: auto !important;
}

/* Constrain height and allow internal scroll */
.oa-modal {
  max-height: 90vh !important;
  overflow-y: auto !important;
}

/* On small phones, shrink width to viewport */
@media (max-width: 480px) {
  .oa-modal {
    width: 90vw !important;
    max-width: 90vw !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    margin: 40px auto !important;
  }
}
/* ==============================================================
   FP6 — responsive grid pinned to this section only
   ============================================================== */

/* Desktop stays 3 columns via existing rules */

/* ≤ 900px: 2 columns */
@media (max-width: 900px) {
  .fp-section-acquisition-searches .fp6-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

/* ≤ 600px: 1 column, full-width cards */
@media (max-width: 600px) {
  .fp-section-acquisition-searches .fp6-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .fp-section-acquisition-searches .fp6-grid > .fp6-item {
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    float: none !important;
    display: block !important;
  }
}
/* ==============================================================
   Modal — compress + fit on mobile, allow scroll
   ============================================================== */

/* Base constraint so it never overflows viewport height */
.oa-modal {
  max-height: 90vh !important;
  overflow-y: auto !important;
}

/* Mobile: narrower, less padding, smaller typography */
@media (max-width: 768px) {
  .oa-modal-overlay {
    align-items: flex-start !important;
    padding: 10px !important;
  }

  .oa-modal {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 20px auto !important;
    padding: 16px !important;
  }

  .oa-modal-title {
    font-size: 18px !important;
  }

  .oa-modal-intro {
    font-size: 14px !important;
  }

  .oa-modal input {
    font-size: 14px !important;
    padding: 8px 10px !important;
  }
}

/* Very small phones: extra compression */
@media (max-width: 480px) {
  .oa-modal {
    padding: 14px !important;
  }
}
/* ==============================================================
   FINAL FIX — FP2, FP4, FP6 = SINGLE COLUMN SECTIONS
   ============================================================== */

/* FP2 and FP4 already behave as single-column — no change needed */

/* FP6 — force single-column layout on ALL screen sizes */
.front-page-6 .fp6-grid {
    display: block !important;
}

.front-page-6 .fp6-grid > .fp6-item {
    width: 100% !important;
    display: block !important;
    float: none !important;
    margin: 0 0 32px 0 !important;
}

/* ==============================================================
   MODAL — MOBILE WIDTH + SCROLL FIX
   ============================================================== */

.oa-modal-overlay {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 10px !important;
}

.oa-modal {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 20px auto !important;
    padding: 20px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

@media (max-width: 480px) {
    .oa-modal {
        padding: 16px !important;
    }
}
/* ==============================================================
   FP6 — FINAL: NO COLUMNS, SIMPLE VERTICAL STACK
   ============================================================== */

/* Kill grid on FP6 and stack items */
.front-page-6 .fp6-grid {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    max-width: 1100px !important;
    margin: 32px auto 0 auto !important;
}

.front-page-6 .fp6-item {
    width: 100% !important;
    margin: 0 0 24px 0 !important;
}

/* Make sure any theme thirds layout can't interfere */
.front-page-6 .flexible-widgets.widget-thirds,
.front-page-6 .flexible-widgets.widget-thirds .wrap,
.front-page-6 .flexible-widgets.widget-thirds .widget {
    float: none !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* ==============================================================
   FP6 — SINGLE-COLUMN, NO GRID, MATCH FP2/FP4 FEEL
   ============================================================== */

/* Kill grid layout on FP6 completely */
.front-page-6 .fp6-grid {
    display: block !important;          /* no CSS grid */
    max-width: 1100px !important;
    margin: 32px auto 0 auto !important;
    padding: 0 !important;
}

/* Ensure any fp-grid / fp-grid-3 helpers do nothing in FP6 */
.front-page-6 .fp6-grid.fp-grid.fp-grid-3 {
    display: block !important;
    grid-template-columns: none !important;
}

/* Each FP6 item is full-width, stacked */
.front-page-6 .fp6-item {
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    text-align: left !important;
}

/* Last item: no extra bottom gap if you want it tighter */
.front-page-6 .fp6-item:last-child {
    margin-bottom: 0 !important;
}

/* Mobile: just tighten spacing a little */
@media (max-width: 768px) {
    .front-page-6 .fp6-grid {
        margin-top: 24px !important;
    }
}
/* ==============================================================
   MODAL FORM — ALIGNMENT + MOBILE FIT
   ============================================================== */

/* Checkbox group layout */
.oa-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* Each checkbox row */
.oa-checkbox-group > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Checkbox input */
.oa-checkbox-group input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
}

/* Checkbox label */
.oa-checkbox-group label {
  font-size: 15px;
  line-height: 1.4;
  color: #222;
  margin: 0;
}

/* Modal container */
#oa-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

/* Modal inner box */
#oa-modal-overlay .oa-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  margin: 40px auto;
  padding: 24px;
  border-radius: 8px;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

/* Form fields */
#oa-modal-overlay input,
#oa-modal-overlay select,
#oa-modal-overlay textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Labels */
#oa-modal-overlay label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

/* Submit button */
#oa-modal-overlay button[type="submit"] {
  background: #003366;
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  #oa-modal-overlay .oa-modal {
    padding: 20px;
    margin: 20px auto;
    width: 94%;
    max-width: 94%;
  }

  .oa-checkbox-group label {
    font-size: 14px;
  }

  #oa-modal-overlay input,
  #oa-modal-overlay select,
  #oa-modal-overlay textarea {
    font-size: 14px;
    padding: 8px 10px;
  }

  #oa-modal-overlay button[type="submit"] {
    font-size: 14px;
    padding: 10px 16px;
  }
}
/* ==========================================================
   SUBSCRIBE MODAL — FIX WIDTH + FIX CHECKBOX ALIGNMENT
   ========================================================== */

/* 1. Modal container — stop full-width expansion */
#oa-modal-overlay .oa-modal {
    max-width: 480px !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 28px 24px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25) !important;
    box-sizing: border-box !important;
}

/* 2. Neutralise Altitude Pro form styling INSIDE the modal */
#oa-modal-overlay input,
#oa-modal-overlay select,
#oa-modal-overlay textarea {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

/* 3. Field spacing */
#oa-modal-overlay .oa-field {
    margin-bottom: 16px !important;
}

/* 4. Two-column grid for first/last name */
#oa-modal-overlay .oa-grid {
    display: flex !important;
    gap: 16px !important;
}

#oa-modal-overlay .oa-grid .oa-field {
    flex: 1 !important;
}

/* 5. Checkbox group — FIX LEFT ALIGNMENT */
#oa-modal-overlay .oa-checkbox-group {
    border: 0 !important;
    padding: 0 !important;
    margin: 16px 0 !important;
    text-align: left !important;
}

#oa-modal-overlay .oa-checkbox-group > label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

#oa-modal-overlay .oa-checkbox-group div {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}

#oa-modal-overlay .oa-checkbox-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}

/* 6. Submit button */
#oa-modal-overlay .oa-submit {
    background: #000 !important;
    color: #fff !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 6px !important;
    width: 100% !important;
    cursor: pointer !important;
}

/* 7. Mobile tightening */
@media (max-width: 600px) {
    #oa-modal-overlay .oa-modal {
        padding: 20px 16px !important;
        margin: 20px auto !important;
    }

    #oa-modal-overlay .oa-grid {
        flex-direction: column !important;
        gap: 12px !important;
    }
}
/* ==========================================================
   SUBSCRIBE MODAL — MOBILE TIGHTENING + FIX CLOSE BUTTON
   ========================================================== */

@media (max-width: 600px) {

    /* Reduce modal padding so it fits inside viewport */
    #oa-modal-overlay .oa-modal {
        padding: 16px 14px 18px !important;
        margin: 10px auto !important;
        max-height: 90vh !important;   /* ensures it never exceeds screen height */
        overflow-y: auto !important;   /* scrolls internally if needed */
    }

    /* Move close button so it never overlaps text */
    #oa-modal-overlay .oa-modal-close {
        top: 6px !important;
        right: 8px !important;
        font-size: 20px !important;
        z-index: 10 !important;
    }

    /* Add top padding to modal content so text clears the close button */
    #oa-modal-overlay .oa-modal-title,
    #oa-modal-overlay .oa-modal-intro {
        margin-top: 12px !important;
    }

    /* Slightly reduce spacing between fields */
    #oa-modal-overlay .oa-field {
        margin-bottom: 12px !important;
    }

    /* Reduce checkbox spacing */
    #oa-modal-overlay .oa-checkbox-group {
        margin: 12px 0 !important;
    }

    /* Reduce button size slightly */
    #oa-modal-overlay .oa-submit {
        padding: 10px 16px !important;
        font-size: 15px !important;
    }
}
/* ==========================================================
   SUBSCRIBE MODAL — ULTRA-TIGHT MOBILE SPACING
   ========================================================== */

@media (max-width: 600px) {

    /* Reduce modal padding and height */
    #oa-modal-overlay .oa-modal {
        padding: 12px 14px 14px !important;
        margin: 8px auto !important;
        max-height: 88vh !important;   /* fits on one screen */
        overflow-y: auto !important;
    }

    /* Close button — smaller + better placement */
    #oa-modal-overlay .oa-modal-close {
        top: 4px !important;
        right: 6px !important;
        font-size: 18px !important;
    }

    /* Title + intro spacing */
    #oa-modal-overlay .oa-modal-title {
        margin-top: 10px !important;
        margin-bottom: 6px !important;
        font-size: 22px !important;
        line-height: 1.25 !important;
    }

    #oa-modal-overlay .oa-modal-intro {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    /* Field spacing tightened */
    #oa-modal-overlay .oa-field {
        margin-bottom: 10px !important;
    }

    /* Input padding reduced */
    #oa-modal-overlay input {
        padding: 8px 10px !important;
        font-size: 15px !important;
    }

    /* Two-column grid → tighter gap */
    #oa-modal-overlay .oa-grid {
        gap: 10px !important;
    }

    /* Checkbox group — tighter vertical spacing */
    #oa-modal-overlay .oa-checkbox-group {
        margin: 10px 0 !important;
    }

    #oa-modal-overlay .oa-checkbox-group div {
        margin-bottom: 4px !important;
        gap: 6px !important;
    }

    /* Submit button — smaller + tighter */
    #oa-modal-overlay .oa-submit {
        padding: 10px 14px !important;
        font-size: 15px !important;
        margin-top: 6px !important;
    }
}
/* ==========================================================
   SUBSCRIBE MODAL — DESKTOP TIGHTENING
   ========================================================== */

@media (min-width: 601px) {

    /* Reduce modal padding */
    #oa-modal-overlay .oa-modal {
        padding: 22px 24px 24px !important;
        max-width: 440px !important;   /* slightly narrower = more premium */
    }

    /* Title spacing */
    #oa-modal-overlay .oa-modal-title {
        margin-top: 6px !important;
        margin-bottom: 8px !important;
        font-size: 24px !important;
        line-height: 1.25 !important;
    }

    /* Intro spacing */
    #oa-modal-overlay .oa-modal-intro {
        margin-top: 0 !important;
        margin-bottom: 14px !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    /* Field spacing tightened */
    #oa-modal-overlay .oa-field {
        margin-bottom: 12px !important;
    }

    /* Input padding reduced */
    #oa-modal-overlay input {
        padding: 9px 12px !important;
        font-size: 16px !important;
    }

    /* Two-column grid gap tightened */
    #oa-modal-overlay .oa-grid {
        gap: 14px !important;
    }

    /* Checkbox group tightened */
    #oa-modal-overlay .oa-checkbox-group {
        margin: 12px 0 !important;
    }

    #oa-modal-overlay .oa-checkbox-group div {
        margin-bottom: 4px !important;
    }

    /* Submit button tightened */
    #oa-modal-overlay .oa-submit {
        padding: 11px 18px !important;
        font-size: 16px !important;
        margin-top: 8px !important;
    }

    /* Close button slightly smaller + better positioned */
    #oa-modal-overlay .oa-modal-close {
        top: 8px !important;
        right: 10px !important;
        font-size: 20px !important;
    }
}
/* ==========================================================
   SUBSCRIBE MODAL — ULTRA-COMPACT MOBILE VERSION
   ========================================================== */

@media (max-width: 600px) {

    /* Modal container */
    #oa-modal-overlay .oa-modal {
        padding: 10px 12px !important;
        margin: 6px auto !important;
        max-height: 85vh !important;   /* fits on one screen */
        overflow-y: auto !important;
        border-radius: 8px !important;
    }

    /* Close button */
    #oa-modal-overlay .oa-modal-close {
        top: 4px !important;
        right: 6px !important;
        font-size: 18px !important;
        z-index: 20 !important;
    }

    /* Title */
    #oa-modal-overlay .oa-modal-title {
        margin-top: 8px !important;
        margin-bottom: 4px !important;
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    /* Intro text */
    #oa-modal-overlay .oa-modal-intro {
        margin: 0 0 8px 0 !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    /* Field spacing */
    #oa-modal-overlay .oa-field {
        margin-bottom: 8px !important;
    }

    /* Input fields */
    #oa-modal-overlay input {
        padding: 7px 9px !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    /* Two-column grid */
    #oa-modal-overlay .oa-grid {
        gap: 8px !important;
    }

    /* Checkbox group */
    #oa-modal-overlay .oa-checkbox-group {
        margin: 8px 0 !important;
    }

    #oa-modal-overlay .oa-checkbox-group div {
        margin-bottom: 3px !important;
        gap: 6px !important;
    }

    /* Submit button */
    #oa-modal-overlay .oa-submit {
        padding: 9px 12px !important;
        font-size: 15px !important;
        margin-top: 6px !important;
    }
}
/* ==========================================================
   SUBSCRIBE MODAL — DESKTOP OFFSET BELOW FIXED HEADER
   ========================================================== */

@media (min-width: 601px) {
    #oa-modal-overlay .oa-modal {
        margin-top: 60px !important;   /* sits below the menu bar */
    }
}
/* ==========================================================
   SUBSCRIBE MODAL — TIGHTEN FIELD SPACING (MOBILE + DESKTOP)
   ========================================================== */

/* Reduce spacing between First Name, Last Name, Email */
#oa-modal-overlay .oa-field {
    margin-bottom: 8px !important;   /* default was ~16–20px */
}

/* Reduce spacing inside the two-column grid */
#oa-modal-overlay .oa-grid {
    gap: 8px !important;             /* tighter gap between FN / LN */
}

/* Slightly reduce input padding to visually tighten the blocks */
#oa-modal-overlay input {
    padding: 8px 10px !important;
}
/* ==========================================================
   SUBSCRIBE MODAL — VERY TIGHT FIELD SPACING
   ========================================================== */

/* Reduce spacing between all input blocks */
#oa-modal-overlay .oa-field {
    margin-bottom: 4px !important;   /* was 8–16px */
}

/* Reduce spacing inside the two-column grid (First/Last Name) */
#oa-modal-overlay .oa-grid {
    gap: 6px !important;             /* was 10–16px */
}

/* Reduce input padding slightly to visually tighten blocks */
#oa-modal-overlay input {
    padding: 7px 9px !important;     /* was 10–12px */
    font-size: 15px !important;
}
/* ==========================================================
   SUBSCRIBE MODAL — FIX PADDING + CLOSE BUTTON + TIGHTER FIELDS
   ========================================================== */

/* 1. Restore padding below the submit button */
#oa-modal-overlay .oa-modal {
    padding-bottom: 20px !important;   /* ensures breathing room at bottom */
}

/* 2. Fix close button overlapping the title */
#oa-modal-overlay .oa-modal-close {
    top: 10px !important;
    right: 12px !important;
    font-size: 20px !important;
    z-index: 20 !important;
}

#oa-modal-overlay .oa-modal-title {
    margin-top: 26px !important;       /* pushes title safely below the X */
}

/* 3. Make spacing between all input blocks even tighter */
#oa-modal-overlay .oa-field {
    margin-bottom: 4px !important;     /* was 8px → now very tight */
}

/* 4. Make First/Last Name grid even tighter */
#oa-modal-overlay .oa-grid {
    gap: 4px !important;               /* was 6–10px → now ultra-tight */
}

/* 5. Slightly reduce input padding to visually compress blocks */
#oa-modal-overlay input {
    padding: 6px 9px !important;       /* tighter but still readable */
    font-size: 15px !important;
}
/* ==========================================================
   SUBSCRIBE MODAL — ULTRA-TIGHT INPUT BLOCK SPACING
   ========================================================== */

/* 1. Reduce spacing between all input blocks */
#oa-modal-overlay .oa-field {
    margin-bottom: 2px !important;   /* was 4px → now extremely tight */
}

/* 2. Reduce spacing inside the First/Last Name grid */
#oa-modal-overlay .oa-grid {
    gap: 4px !important;             /* was 6px → now tighter */
}

/* 3. Reduce padding inside inputs to shrink vertical height */
#oa-modal-overlay input {
    padding: 6px 8px !important;     /* was 7–10px */
    font-size: 15px !important;
    line-height: 1.2 !important;     /* tighter vertical rhythm */
}

/* 4. Slightly tighten checkbox spacing too */
#oa-modal-overlay .oa-checkbox-group div {
    margin-bottom: 2px !important;
}
/* ==========================================================
   SUBSCRIBE MODAL — EXTREME TIGHT INPUT BLOCK SPACING
   ========================================================== */

#oa-modal-overlay .oa-field {
    margin-bottom: 1px !important;   /* almost no gap */
}

#oa-modal-overlay .oa-grid {
    gap: 3px !important;             /* FN/LN nearly touching */
}

#oa-modal-overlay input {
    padding: 5px 8px !important;     /* smallest safe padding */
    font-size: 14px !important;
    line-height: 1.15 !important;
}
/* ============================
   Unified Newsletter Modal
   ============================ */

#oa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

#oa-modal {
  background: #fff;
  max-width: 640px;
  width: 90%;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

#oa-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.oa-modal-content {
  margin-top: 1rem;
}
/* ============================================
   UNIFIED MODAL — BASE LAYOUT
   ============================================ */

#oa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
}

#oa-modal {
  background: #fff;
  max-width: 640px;
  width: 100%;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

#oa-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ============================================
   FORM ELEMENTS — GLOBAL FIXES
   ============================================ */

#oa-modal input,
#oa-modal select,
#oa-modal textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  margin-top: 6px;
}

/* Make Describe Buy Interests a textarea instead of a single-line input */
#oa-modal input[name="cm-f-ddmjht"] {
  display: none !important;
}

#oa-modal .oa-modal-content textarea.cm-textarea {
  display: block !important;
  min-height: 90px;
  resize: vertical;
  line-height: 1.4;
}

/* ============================================
   BUY / SELL CHECKBOX GROUP
   ============================================ */

#oa-modal fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

#oa-modal fieldset > label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

#oa-modal fieldset div {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

#oa-modal fieldset div input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

/* ============================================
   SUBMIT BUTTON — FIX WHITE BUTTON ISSUE
   ============================================ */

#oa-modal button[type="submit"],
#oa-modal .cm-button,
#oa-modal input[type="submit"] {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 22px !important;
  font-size: 16px !important;
  border-radius: 6px !important;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

#oa-modal button[type="submit"]:hover {
  background: #333 !important;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 600px) {
  #oa-modal {
    padding: 1.5rem;
    width: 100%;
  }

  #oa-modal input,
  #oa-modal textarea {
    font-size: 16px;
  }

  #oa-modal fieldset div {
    flex-direction: row;
    align-items: center;
  }
}
/* ============================================
   FIX MODAL WIDTH (DESKTOP + MOBILE)
   ============================================ */

#oa-modal {
  max-width: 720px !important;   /* wider, more readable */
  width: 95% !important;
}

@media (max-width: 600px) {
  #oa-modal {
    width: 95% !important;
    padding: 1.25rem !important;
  }
}

/* ============================================
   FIX FIELD WIDTHS (CM plugin fields)
   ============================================ */

#oa-modal input[type="text"],
#oa-modal input[type="email"],
#oa-modal input[type="tel"],
#oa-modal textarea,
#oa-modal select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  border-radius: 6px !important;
  border: 1px solid #ccc !important;
  margin-bottom: 14px !important;
}

/* ============================================
   BUY / SELL CHECKBOX ALIGNMENT
   ============================================ */

#oa-modal fieldset {
  border: none !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
}

#oa-modal fieldset > label {
  display: block !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

#oa-modal fieldset div {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
}

#oa-modal fieldset div input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

/* ============================================
   FIX "DESCRIBE BUY INTERESTS" WRAPPING
   ============================================ */

/* Hide CM's single-line input */
#oa-modal input[name="cm-f-ddmjht"] {
  display: none !important;
}

/* Style the textarea we inject */
#oa-modal textarea.cm-textarea {
  display: block !important;
  min-height: 110px !important;
  resize: vertical !important;
  line-height: 1.4 !important;
  padding: 12px 14px !important;
}

/* ============================================
   FIX SUBMIT BUTTON (WHITE → BLACK)
   ============================================ */

#oa-modal button[type="submit"],
#oa-modal input[type="submit"],
#oa-modal .cm-button {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 22px !important;
  font-size: 16px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 10px !important;
}

#oa-modal button[type="submit"]:hover {
  background: #333 !important;
}
/* ============================================
   FIX FIELD WIDTHS
   ============================================ */

#oa-modal .campaign-monitor-custom-field,
#oa-modal .cmApp_cf input[type="text"],
#oa-modal .cmApp_cf input[type="email"],
#oa-modal .cmApp_cf textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  margin-bottom: 14px !important;
}

/* ============================================
   FIX BUY / SELL CHECKBOXES
   ============================================ */

#oa-modal .cm-multi div {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#oa-modal .cm-multi div label {
  display: inline-block !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
}

#oa-modal .cm-multi div input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
}

/* ============================================
   FIX DESCRIBE BUY INTERESTS (FORCE TEXTAREA)
   ============================================ */

#oa-modal .campaign-monitor-custom-field textarea {
  min-height: 110px !important;
  resize: vertical !important;
  line-height: 1.4 !important;
}

/* ============================================
   FIX SUBMIT BUTTON
   ============================================ */

#oa-modal .cmApp_cf input[type="submit"],
#oa-modal .cmApp_cf button[type="submit"] {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 22px !important;
  font-size: 16px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  width: 100% !important;
}

#oa-modal .cmApp_cf input[type="submit"]:hover {
  background: #333 !important;
}

/* ============================================
   MOBILE FIXES
   ============================================ */

@media (max-width: 600px) {
  #oa-modal {
    width: 95% !important;
    margin: 20px auto !important;
    padding: 1.25rem !important;
  }

  #oa-modal .cmApp_cf input,
  #oa-modal .cmApp_cf textarea {
    font-size: 16px !important;
    padding: 14px !important;
  }
}
/* ============================================
   MOBILE FIX — MAKE FORM WIDER & LESS TALL
   ============================================ */

@media (max-width: 600px) {

  /* Make modal fill the screen width */
  #oa-modal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 1.25rem !important;
  }

  /* Allow scrolling instead of stretching vertically */
  #oa-modal-overlay {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 10px !important;
  }

  /* Make fields full width */
  #oa-modal .campaign-monitor-custom-field,
  #oa-modal .cmApp_cf input,
  #oa-modal .cmApp_cf textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    padding: 14px !important;
  }

  /* Fix checkbox layout */
  #oa-modal .cm-multi div {
    display: block !important;
  }

  #oa-modal .cm-multi div label,
  #oa-modal .cm-multi div input[type="checkbox"] {
    display: inline-block !important;
    vertical-align: middle !important;
  }
}
/* ============================================
   MOBILE — MAKE FORM FULL WIDTH
   ============================================ */
@media (max-width: 600px) {

  /* Make modal full width */
  #oa-modal {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 1.25rem !important;
  }

  /* Allow scrolling instead of stretching vertically */
  #oa-modal-overlay {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 10px !important;
  }

  /* Force all CM fields to full width */
  #oa-modal .cmApp_cf,
  #oa-modal .cmApp_cf div,
  #oa-modal .campaign-monitor-custom-field,
  #oa-modal .cmApp_cf input,
  #oa-modal .cmApp_cf textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Fix checkbox layout */
  #oa-modal .cm-multi div {
    display: block !important;
  }

  #oa-modal .cm-multi div label,
  #oa-modal .cm-multi div input[type="checkbox"] {
    display: inline-block !important;
    vertical-align: middle !important;
  }
}
