/* =====================================================
   CHECK BEFORE YOU BUY
   GLOBAL / PAGE CSS
   ===================================================== */


/* =====================================================
   FORM STYLING
   ===================================================== */

.cbyb-form,
.wpforms-container.cbyb-form {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.cbyb-form .wpforms-field-container,
.cbyb-form .wpforms-field,
.cbyb-form .wpforms-submit-container {
    padding: 0 !important;
    margin: 0 !important;
}

.cbyb-form input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 58px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #172033 !important;
    box-shadow: none !important;
}

.cbyb-button {
    width: 100% !important;
    min-height: 58px !important;
    background: #15803D !important;
    border: 1px solid #15803D !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    padding: 14px 18px !important;
    margin-top: 10px !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.cbyb-button:hover {
    background: #166534 !important;
    border-color: #166534 !important;
}

.cbyb-form .wpforms-field-label {
    display: none !important;
}


/* =====================================================
   ASTRA GLOBAL FULL WIDTH OVERRIDE
   ===================================================== */

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* Remove Astra width constraints */

.ast-container,
.site-content > .ast-container,
.site-main,
.content-area,
.entry-content,
#primary,
.ast-article-single,
.ast-article-post {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Remove boxed layout spacing */

.ast-separate-container #primary,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* Make images responsive */

img {
    max-width: 100%;
    height: auto;
}


/* Prevent horizontal scrolling */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =====================================================
   INTEGRATED HEADER HANDLING

   If a page contains the custom CBYB integrated header,
   hide the normal Astra / WordPress / old CBYB header.

   IMPORTANT:
   .cbyb-site-header is specifically excluded so the
   premium navy header remains visible.
   ===================================================== */

body:has(.cbyb-site-header) #masthead,
body:has(.cbyb-site-header) .site-header:not(.cbyb-site-header),
body:has(.cbyb-site-header) #ast-desktop-header,
body:has(.cbyb-site-header) #ast-mobile-header,
body:has(.cbyb-site-header) .cbyb-global-header {
    display: none !important;
}


/* =====================================================
   LEGACY INTEGRATED PAGE SUPPORT

   Retain support for existing CBYB pages which use
   older page IDs rather than .cbyb-site-header.
   ===================================================== */

body:has(#cbyb-home-page) .cbyb-global-header,
body:has(#cbyb-direct-premium-page) .cbyb-global-header,
body:has(#cbyb-premium-page) .cbyb-global-header,
body:has(#cbyb-premium-plus-page) .cbyb-global-header {
    display: none !important;
}