/*
 * Shared styles for standalone landing pages rendered inside the main site's
 * Avada header and footer (see inc/lp-integration.php).
 * Taken from epp-dunnage-packaging/index.php so every landing page matches it.
 */
/* Maintain root REM scale across responsive breakpoints */
@media (max-width: 1680px) { html { font-size: 20px !important; } }
@media (max-width: 1440px) { html { font-size: 18px !important; } }
@media (max-width: 1400px) { html { font-size: 16px !important; } }
@media (max-width: 1024px) { html { font-size: 12px !important; } }
@media (max-width: 820px)  { html { font-size: 11px !important; } }
@media (max-width: 768px)  { html { font-size: 10px !important; } }
@media (max-width: 720px)  { html { font-size: 9px !important; } }
@media (max-width: 600px)  { html { font-size: 18px !important; } }

/* Flush alignment with Avada header */
#main, #main.width-100 {
    padding: 0 !important;
}
#main > .fusion-row {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}
.kknag-lp-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    /* Avada sets the body font size; the landing page content uses its own (root rem). */
    font-size: var(--mytheme-body-font-size, 1rem);
    line-height: var(--mytheme-body-line-height, 1.5);
    letter-spacing: normal;
}
.kknag-lp-wrapper .section-first {
    margin-top: 0 !important;
}

.success-msg {
    color: green;
    display: none;
    font-size: 0.7rem;
}
.error-msg {
    color: red;
    display: none;
    font-size: 0.7rem;
}
.enquire-btn:disabled {
    cursor: not-allowed;
}

/* Overlay Popup & Header Covering */
#overlay.overlay {
    z-index: 999999 !important;
}

/* Popup Close Button - Enhanced Size and Alignment */
#overlay.overlay .close,
.popup .close {
    position: absolute !important;
    top: 20px !important;
    right: 24px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 38px !important;
    line-height: 1 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 300 !important;
    color: #333333 !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: all 0.2s ease-in-out !important;
    z-index: 100 !important;
    user-select: none !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
}

#overlay.overlay .close:hover,
.popup .close:hover {
    color: #000000 !important;
    background-color: #f0f4f8 !important;
    transform: scale(1.08) !important;
}

@media (max-width: 600px) {
    #overlay.overlay .close,
    .popup .close {
        top: 14px !important;
        right: 14px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 32px !important;
    }
}

body.form-overlay-active .fusion-tb-header,
body.form-overlay-active .fusion-header,
body.form-overlay-active .fusion-header-wrapper {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* Popup Modal Overflow Protection */
#overlay.overlay {
    overflow-y: auto !important;
}
#overlay.overlay .popup {
    max-height: 92vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

/* Enquiry Modal Form - Message Field Alignment & Clickability */
.customForm .form_intent.form_intent_full {
    display: block !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    margin-bottom: 0 !important;
    clear: both !important;
}

.customForm .form_intent_full .form-group-wrapper {
    width: 100% !important;
    margin-bottom: 12px !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
}

.customForm .form_intent_full .message_wrapper {
    width: 100% !important;
    position: relative !important;
    z-index: 5 !important;
    margin-bottom: 10px !important;
}

.customForm .message_wrapper .error-message {
    position: static !important;
    color: red !important;
    font-family: Gilroy, sans-serif !important;
    font-size: clamp(12px, 0.5833333333rem, 14px) !important;
    line-height: 1.3 !important;
    margin-top: 8px !important;
    margin-bottom: 6px !important;
    clear: both !important;
    float: none !important;
}

.customForm .form-group-wrapper label,
.customForm label {
    display: block !important;
    cursor: pointer !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.customForm .form-group-wrapper br {
    display: none !important;
}

.customForm .form-group-wrapper textarea#message,
#overlay.overlay textarea#message {
    display: block !important;
    width: 100% !important;
    min-height: 80px !important;
    height: 80px !important;
    background-color: #F1F1F1 !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
    font-family: Gilroy, sans-serif !important;
    font-size: 0.6666666667rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #000000 !important;
    resize: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    cursor: text !important;
    position: relative !important;
    z-index: 10 !important;
    user-select: text !important;
    margin-top: 0 !important;
}

/* Responsive Placeholder matching other form text */
#overlay.overlay textarea#message::-webkit-input-placeholder,
.customForm textarea::-webkit-input-placeholder,
.customForm input::-webkit-input-placeholder {
    color: #000000 !important;
    opacity: 1 !important;
    font-family: Gilroy, sans-serif !important;
    font-size: 0.6666666667rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

#overlay.overlay textarea#message::-moz-placeholder,
.customForm textarea::-moz-placeholder,
.customForm input::-moz-placeholder {
    color: #000000 !important;
    opacity: 1 !important;
    font-family: Gilroy, sans-serif !important;
    font-size: 0.6666666667rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

#overlay.overlay textarea#message:-ms-input-placeholder,
.customForm textarea:-ms-input-placeholder,
.customForm input:-ms-input-placeholder {
    color: #000000 !important;
    opacity: 1 !important;
    font-family: Gilroy, sans-serif !important;
    font-size: 0.6666666667rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

#overlay.overlay textarea#message::placeholder,
.customForm textarea::placeholder,
.customForm input::placeholder {
    color: #000000 !important;
    opacity: 1 !important;
    font-family: Gilroy, sans-serif !important;
    font-size: 0.6666666667rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.customForm .form-group-wrapper textarea#message:focus,
#overlay.overlay textarea#message:focus,
.customForm textarea:focus {
    background-color: #FFFFFF !important;
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.customForm .submit_btn_wrap {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    position: relative !important;
    z-index: 5 !important;
}

.customForm .submit_btn_wrap .submit-btn {
    margin-top: 0 !important;
    cursor: pointer !important;
}

/* Avada Header Alignment & Logo Protection */
.fusion-tb-header,
.fusion-header,
.fusion-header-wrapper {
    position: relative !important;
    z-index: 1000 !important;
    width: 100% !important;
}
.fusion-tb-header .fusion-logo img,
.fusion-header .fusion-logo img,
.fusion-logo img,
.fusion-standard-logo {
    max-height: 55px !important;
    width: auto !important;
    max-width: 250px !important;
    display: inline-block !important;
}
.fusion-mobile-logo,
.fusion-sticky-logo {
    display: none !important;
}

/* Header Contact Us / Get In Touch button */
.get-in-touch-container {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    margin-left: 15px !important;
}
.get-in-touch-container a,
.get-in-touch-container .fusion-button,
.get-in-touch-container button {
    background-color: #198fd9 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 10px 22px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    line-height: normal !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    transition: background-color 0.2s ease-in-out !important;
}
.get-in-touch-container a:hover,
.get-in-touch-container .fusion-button:hover,
.get-in-touch-container button:hover {
    background-color: #1476b5 !important;
    color: #ffffff !important;
}
.get-in-touch-container a img,
.get-in-touch-container .fusion-button img {
    max-height: 20px !important;
    width: auto !important;
    margin-left: 8px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Search icon in header */
.head-search {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    width: fit-content !important;
}
.head-search i,
.head-search .fa-search {
    font-size: 18px !important;
    color: #292B6A !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.main-menu-container-b .fa-search:before {
    content: url("../../../uploads/2024/11/Group-1.webp") !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Header Dropdown Arrows & Links */
.gt_selector {
    background-image: url('../../../uploads/2024/09/Polygon-1.webp') !important;
}
.gt_selector.open {
    background-image: url('../../../uploads/2024/09/Polygon-1-1.webp') !important;
}
/* No user icon next to "Our Portals" */
.portal-list a:after {
    content: none !important;
}
.fusion-tb-header a,
.fusion-header a,
.fusion-header-wrapper a,
.fusion-secondary-header a,
.main-menu-container-b a,
.top-menu-header a,
#footer a,
.fusion-footer a,
.fusion-footer-widget-area a,
.fusion-footer-copyright-area a {
    text-decoration: none !important;
}
.fusion-tb-header ul,
.fusion-header ul,
.fusion-header-wrapper ul,
.fusion-secondary-header ul,
.main-menu-container-b ul,
.top-menu-header ul,
#footer ul,
.fusion-footer ul,
.fusion-footer-widget-area ul,
.fusion-footer-copyright-area ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}
.fusion-page-load-link {
    display: none !important;
}

/* Hide language switcher and search icon in header (kept in DOM) */
.main-menu-container-b .g-translate-section,
.main-menu-container-b .head-search {
    display: none !important;
}

/* Hide bottom mobile bar in footer (language, search, Get in Touch) - kept in DOM */
.fusion-tb-footer .mobile-float-cta,
.mobile-float-cta {
    display: none !important;
}

/* Prevent Main Navigation Menu from wrapping at 1280px and ensure single-line fit */
.main-menu-header .fusion-menu.awb-menu__main-ul.awb-menu__main-ul_row,
.fusion-menu.awb-menu__main-ul.awb-menu__main-ul_row {
    flex-wrap: nowrap !important;
}

@media screen and (max-width: 1300px) and (min-width: 1025px) {
    .main-menu-container-b {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
    .main-menu-header span.menu-text {
        font-size: 14px !important;
        white-space: nowrap !important;
    }
    .main-menu-header .awb-menu__main-li {
        margin-left: 8px !important;
        margin-right: 8px !important;
    }
    .main-menu-header a.awb-menu__main-a {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .fusion-tb-header .fusion-logo img,
    .fusion-header .fusion-logo img,
    .fusion-logo img,
    .fusion-standard-logo {
        max-width: 200px !important;
        max-height: 48px !important;
    }
    .get-in-touch-container a,
    .get-in-touch-container .fusion-button,
    .get-in-touch-container button {
        padding: 8px 18px !important;
        font-size: 14px !important;
    }
}

/* Sticky header: Avada now places the logo bar under the top bar itself
   (see data-sticky-offset below), so drop the theme's fixed 55px/38px margin. */
.main-menu-container-b.fusion-container-stuck {
    margin-top: 0 !important;
}

/* Keep the top bar (and its dropdowns, e.g. Resources) above the logo bar.
   Staging gives both bars the same z-index, so the logo bar covered the dropdown. */
.fusion-tb-header > .fusion-builder-row-1 {
    z-index: 10011 !important;
}
.fusion-tb-header > .main-menu-container-b {
    z-index: 10010 !important;
}

/* Tablets: the theme pulls the logo row up 20px (negative margin) with little or no
   top padding to cancel it, so the logo and button hit or hide behind the top bar. */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .main-menu-container-b {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    .main-menu-container-b > .fusion-builder-row {
        margin-top: 0 !important;
        align-items: center !important;
    }
}

/* Mobile menu: start the dropdown exactly at the bottom of the logo bar */
.main-menu-container-b .awb-menu.collapse-enabled > .awb-menu__main-ul {
    top: var(--kk-menu-top, 8px) !important;
    margin-top: 0 !important;
}

/* The landing pages' CSS sets `*, body, html { font-family: Gilroy }`, which overrides the
   fonts Avada's header and footer inherit (e.g. menu links in Gilroy-Bold). Let them inherit
   again inside the Avada header and footer. :where() keeps specificity at 0, so this only
   beats that `*` rule and never Avada's own font rules. */
:where(.fusion-tb-header, .fusion-tb-footer, .fusion-footer),
:where(.fusion-tb-header, .fusion-tb-footer, .fusion-footer) * {
    font-family: inherit;
}
