/* ============================================================
   Omni DGTL - Responsive Patch v12
   MINIMAL: Only fixes what custom.min.css does NOT handle.
   Does NOT re-declare formPopup, megaMenu, or innerBanner styles
   that already exist in custom.min.css.
   ============================================================ */

/* ====== MOBILE: Force .animate visible ======
   Safety net - custom.min.css already does this at max-width:767.98px
   but hero-fix.css loads after and may interfere. */
@media (max-width: 991px) {
    .animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ====== MOBILE HAMBURGER MENU ======
   custom.min.css uses translateX for the mobile nav and megaMenu.
   We only style the navBtnWrapper display and the .show state. */
@media (max-width: 1199px) {
    .header__btns .navBtnWrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }
    .header__btns .navBtnWrapper .nav-button {
        margin: auto !important;
    }
}

/* ====== DESKTOP: Hide mobile-only UI elements + Mega Menu Dropdown Fix ====== */
@media (min-width: 1200px) {
    .megaMenuWrapper__backBtn,
    .menu__btn {
        display: none !important;
    }

    /* Disable solid screen overlay when hovering header menu */
    .headerOverlay,
    .headerOverlay.active {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Tightly scope Services nav item hover area */
    #megaMenu1 {
        position: relative !important;
        width: auto !important;
        display: inline-block !important;
    }
    #megaMenu1::before,
    #megaMenu1::after {
        display: none !important;
    }

    /* --- Services Mega Menu: Desktop Dropdown Card --- */
    .megaMenuWrapper {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 680px !important;
        height: auto !important;
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        background: #141418 !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 16px !important;
        padding: 20px 24px !important;
        z-index: 99999 !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75) !important;
        
        /* Completely disabled and hidden by default on desktop */
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(8px) !important;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
    }

    /* Remove floating invisible pseudo-element bridges */
    .megaMenuWrapper::before,
    .megaMenuWrapper::after {
        display: none !important;
    }

    /* Shown and enabled ONLY when hovering over Services (#megaMenu1) or inside open dropdown card */
    #megaMenu1:hover > .megaMenuWrapper,
    .megaMenuWrapper:hover {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Inner menu layout */
    .megaMenuWrapper .megaMenu {
        width: 100% !important;
        display: block !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .megaMenuWrapper .megaMenu__subMenuWrapper {
        position: static !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        display: block !important;
    }

    .megaMenuWrapper .megaMenu__subMenu {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px 16px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .megaMenuWrapper .megaMenu__subMenu--item {
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .megaMenuWrapper .megaMenu__subMenu--item .wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
        border-radius: 8px !important;
        background: transparent !important;
        transition: background 0.2s ease, transform 0.2s ease !important;
        cursor: pointer !important;
    }

    .megaMenuWrapper .megaMenu__subMenu--item .wrapper:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        transform: translateX(3px) !important;
    }

    .megaMenuWrapper .megaMenu__subMenu--link {
        color: #e2e8f0 !important;
        font-size: 0.95rem !important;
        font-weight: 400 !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
        font-family: 'Poppins', sans-serif !important;
        padding: 0 !important;
    }

    .megaMenuWrapper .megaMenu__subMenu--item .wrapper:hover .megaMenu__subMenu--link {
        color: #ffffff !important;
    }

    .megaMenuWrapper .megaMenu__subMenu--item .arrow {
        display: flex !important;
        align-items: center !important;
        opacity: 0.4 !important;
        transition: opacity 0.2s ease, transform 0.2s ease !important;
    }

    .megaMenuWrapper .megaMenu__subMenu--item .arrow img {
        width: 14px !important;
        height: 14px !important;
        filter: brightness(0) invert(1) !important;
    }

    .megaMenuWrapper .megaMenu__subMenu--item .wrapper:hover .arrow {
        opacity: 1 !important;
        transform: translateX(3px) !important;
    }
}

/* ====== ACCORDION FIXES ====== */
.accordianWrapper .accordianContentWrapper {
    max-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
    grid-template-rows: 0fr !important;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0s 0.4s, padding 0.3s ease !important;
}

.accordianWrapper.active .accordianContentWrapper {
    max-height: 1000px !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding-top: 1.2em !important;
    grid-template-rows: 1fr !important;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, visibility 0s, padding 0.3s ease !important;
}

/* ====== BLOG BANNER ALIGNMENT ====== */
.blogBanner .bannerContent .genericHead {
    text-align: center !important;
    width: 100%;
}

.blogBanner .bannerContent .genericHead__subTitle,
.blogBanner .bannerContent h6 {
    margin: 0 auto 10px auto !important;
    display: inline-block !important;
    text-align: center !important;
}

.blogBanner .bannerContent .genericHead__title,
.blogBanner .bannerContent h1 {
    text-align: center !important;
}

/* ====== SAFE TEXT OVERFLOW ====== */
.genericHead__title {
    word-break: break-word;
}

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

/* ====== CONTACT US PAGE: BANNER FIX ======
   On mobile, .bannerContent is absolutely positioned with left: 6.4375em
   from custom.min.css desktop rules. The mobile override (width:100%;
   left:50%; transform:translate(-50%,-50%)) may not trigger due to
   em-based breakpoints. Force it here. */
@media (max-width: 991px) {
    .contactUsBanner .bannerContent {
        position: relative !important;
        left: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        padding: 30px 20px !important;
        box-sizing: border-box !important;
    }
    .contactUsBanner .innerHeroImage {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        height: 100% !important;
        z-index: -1 !important;
    }
    .contactUsBanner {
        position: relative !important;
        min-height: auto !important;
        padding-top: 120px !important;
        padding-bottom: 40px !important;
        overflow: hidden !important;
    }
    .contactUsBanner .genericHead__title {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
        word-break: break-word !important;
    }
    .contactUsBanner .l-font {
        font-size: clamp(0.9rem, 3vw, 1.1rem) !important;
    }
}

/* ====== CONTACT US PAGE: GLOBAL PRESENCE FIX ======
   On mobile the regiosWrappers are position:absolute and overlap.
   We change them to static stacking so only the active one is visible
   without absolute positioning chaos. The globe/marker section also
   needs proper sizing. */
@media (max-width: 991px) {
    .global-presence-sec {
        overflow: visible !important;
        padding: 2em 0 !important;
    }
    .global-presence-sec .globalMainWrapper {
        flex-direction: column !important;
        align-items: center !important;
    }
    .global-presence-sec .globalMainWrapper .space {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto 20px !important;
    }
    .global-presence-sec .globalImg {
        width: 100% !important;
        max-width: 280px !important;
        height: auto !important;
        max-height: 280px !important;
        margin: 0 auto !important;
    }
    .global-presence-sec .globalImg img {
        width: 100% !important;
        height: auto !important;
    }
    /* Make the marker points smaller and better positioned on mobile */
    .global-presence-sec .point .titleWrapper {
        padding: 4px 8px 8px 8px !important;
    }
    .global-presence-sec .point .titleWrapper p {
        font-size: 0.65em !important;
    }
    /* The globalPresenceWrapper holds the regiosWrappers */
    .global-presence-sec .globalPresenceWrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }
    /* Convert regiosWrappers from absolute to static flow */
    .global-presence-sec .regiosWrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        flex-direction: column !important;
        display: none !important;
        padding: 20px 0 !important;
    }
    /* Only show the active one */
    .global-presence-sec .regiosWrapper.active {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* Stack left/right cols vertically */
    .global-presence-sec .regiosWrapper .leftCol,
    .global-presence-sec .regiosWrapper .rightCol {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .global-presence-sec .regiosWrapper .leftCol h3 {
        margin-bottom: 15px !important;
    }
    .global-presence-sec .regiosWrapper .rightCol .map {
        max-width: 200px !important;
        max-height: 160px !important;
        margin: 0 auto 15px !important;
    }
    .global-presence-sec .regiosWrapper .rightCol .map img {
        width: 100% !important;
        height: auto !important;
    }
    .global-presence-sec .regiosWrapper .rightCol p {
        font-size: 0.9rem !important;
    }
    /* Address boxes */
    .global-presence-sec .addressnwrapper {
        gap: 15px !important;
        margin-top: 15px !important;
    }
    .global-presence-sec .addressbox {
        gap: 10px !important;
        align-items: flex-start !important;
    }
    .global-presence-sec .addressbox .icon img {
        width: 24px !important;
        height: 24px !important;
    }
    .global-presence-sec .addressbox .title span,
    .global-presence-sec .addressbox .title a {
        font-size: 0.9rem !important;
    }
    /* Column overrides — prevent hero-fix from adding margin-bottom to these */
    .global-presence-sec .col_12 {
        margin-bottom: 0 !important;
    }
}

/* ====== FORM POPUP OVERLAY FIX ======
   Ensure the overlay properly covers the page when form is open */
.formPopupOverlay.active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 2000000001 !important;
}

/* ====== INLINE CONTACT FORM & OFFICE GRID (CONTACT US PAGE) ====== */
.contactPageSection {
    padding: 60px 0 !important;
    background: #0b0b0e !important;
    position: relative !important;
    z-index: 2 !important;
}

.contactPageGrid {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr !important;
    gap: 40px !important;
    align-items: start !important;
}

@media (max-width: 991px) {
    .contactPageGrid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

.contactInfoCard {
    background: #141418 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 40px 32px !important;
}

.contactFormCard {
    background: #16161a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 40px 32px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

.contactDirectList {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin-top: 24px !important;
}

.contactDirectItem {
    display: flex !important;
    gap: 16px !important;
    align-items: flex-start !important;
}

.contactIcon {
    width: 44px !important;
    height: 44px !important;
    background: rgba(205, 13, 206, 0.12) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.text-primary-link {
    color: #ad0dce !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.text-primary-link:hover {
    color: #fff !important;
}

.formRowGrid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
}

@media (max-width: 576px) {
    .formRowGrid {
        grid-template-columns: 1fr !important;
    }
}

.formGroup {
    width: 100% !important;
}

.formGroup.fullWidth {
    grid-column: 1 / -1 !important;
}

.contactFormCard .input-field,
.contactFormCard .select-field {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
}

.contactFormCard select.select-field option {
    background: #16161a !important;
    color: #fff !important;
}

.contactFormCard .input-field:focus,
.contactFormCard .select-field:focus {
    border-color: #ad0dce !important;
}

/* Office Locations Section */
.globalPresenceSection {
    padding: 60px 0 80px 0 !important;
    background: #09090b !important;
}

.officeGrid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin-top: 40px !important;
}

@media (max-width: 1199px) {
    .officeGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .officeGrid {
        grid-template-columns: 1fr !important;
    }
}

.officeCard {
    background: #121215 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, border-color 0.3s ease !important;
}

.officeCard:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(205, 13, 206, 0.4) !important;
}

.officeMapWrapper {
    position: relative !important;
    height: 160px !important;
    width: 100% !important;
    overflow: hidden !important;
}

.officeMapWrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: brightness(0.85) contrast(1.1) !important;
}

.countryBadge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: rgba(205, 13, 206, 0.9) !important;
    color: #fff !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.officeDetails {
    padding: 20px !important;
}

.officeDetails h4 {
    color: #fff !important;
    font-size: 1.15rem !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
}

.officeDetails .address,
.officeDetails .phone {
    color: #a0a0ab !important;
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.officeDetails .phone a {
    color: #ad0dce !important;
    text-decoration: none !important;
}

.officeDetails .phone a:hover {
    color: #fff !important;
}

/* ====== ACCORDION STYLES (About Us & General) ====== */
.accordianWrapper {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 24px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.accordianWrapper .titleWrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    user-select: none !important;
}

.accordianWrapper .titleWrapper h3 {
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin: 0 !important;
    transition: color 0.3s ease !important;
}

.accordianWrapper .titleWrapper .icon {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transition: transform 0.3s ease, background 0.3s ease !important;
}

.accordianWrapper .titleWrapper .icon img {
    transition: transform 0.3s ease !important;
}

.accordianWrapper .accordianContentWrapper {
    max-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
    grid-template-rows: 0fr !important;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, margin-top 0.3s ease, padding 0.3s ease !important;
}

.accordianWrapper.active .accordianContentWrapper {
    max-height: 800px !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 16px !important;
    padding-top: 1em !important;
    grid-template-rows: 1fr !important;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, margin-top 0.3s ease, padding 0.3s ease !important;
}

.accordianWrapper.active .titleWrapper h3 {
    color: #ad0dce !important;
}

.accordianWrapper.active .titleWrapper .icon {
    background: #ad0dce !important;
}

.accordianWrapper.active .titleWrapper .icon img {
    transform: rotate(180deg) !important;
    filter: brightness(0) invert(1) !important;
}

/* ====== THANK YOU POPUP STYLES ====== */
.thankYouPopupOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    padding: 20px !important;
}

.thankYouPopupOverlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.thankYouPopupCard {
    background: #141418 !important;
    border: 1px solid rgba(173, 13, 206, 0.4) !important;
    box-shadow: 0 25px 60px rgba(173, 13, 206, 0.25), 0 10px 30px rgba(0,0,0,0.8) !important;
    border-radius: 24px !important;
    padding: 40px 30px !important;
    max-width: 520px !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    transform: scale(0.9) translateY(20px) !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.thankYouPopupOverlay.active .thankYouPopupCard {
    transform: scale(1) translateY(0) !important;
}

.thankYouPopupIcon {
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #ad0dce, #6a00a8) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 20px auto !important;
    font-size: 32px !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(173, 13, 206, 0.4) !important;
}

.thankYouPopupCard h3 {
    color: #ffffff !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.thankYouPopupCard p {
    color: #a0a0ab !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
}

.thankYouPopupCloseBtn {
    background: linear-gradient(90deg, #ad0dce 0%, #6a00a8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 30px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.thankYouPopupCloseBtn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(173, 13, 206, 0.5) !important;
}

/* ====== FOOTER CONTACT INFO ====== */
.footer__contactInfo {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}

.footer__contactInfo--item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contactInfo--item a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contactInfo--item a:hover {
    color: #ad0dce;
}

.footer__contactInfo--item img {
    opacity: 0.6;
    flex-shrink: 0;
}

.footer__contactInfo--item a:hover img {
    opacity: 1;
}

@media (max-width: 767px) {
    .footer__contactInfo {
        flex-direction: column;
        gap: 16px;
    }
}
