body{
    overflow-x: hidden;
}

.bg-blur{
    backdrop-filter: blur(10px) brightness(.9);
    background-color: rgba(0,0,0,0.08);
}

ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.elementor-widget-text-editor{
    ul{
        list-style: initial;
        padding-left: 15px;
        li:not(:last-child){
            margin-bottom: 0.5em;
        }
        &:not(:last-child){
            margin-bottom: 1em;
        }
    }
    strong{
        font-weight: bold;
    }
    p:last-child{
        margin-bottom: 0;
    }
}


.elementor-element.member-popup{
    display: none;
}

.elementor-element.member-popup.active{
    display: grid;
    place-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0,0,0,0.5);

    & > .e-con-inner{
        height: auto;
    }
}

body.popup-active{
    overflow: hidden;
}

.agent-popup-trigger{
    cursor: pointer;
}

/* Agent Popup Styles */
.agent-popup-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.agent-popup-wrapper.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.agent-popup-container {
    position: relative;
    z-index: 1;
    width: min(1120px, 90vw);
    max-height: 90vh;
    overflow-y: auto;

    .agent-popup-content {
        background: white;
        border-radius: 4px;
        position: relative;
        padding: 40px;
        @media (max-width: 768px) {
            padding: 20px;
        }
    }

    .agent-popup-close {
        position: absolute;
        top: 16px;
        right: 16px;
        background: none;
        border: none;
        font-size: 30px;
        color: black;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s ease;
        z-index: 2;
        &:hover {
            background-color: #f5f5f5;
            color: #333;
        }
        @media (max-width: 768px) {
            background-color: #f5f5f5;
            color: #333;
            top: 5px;
            right: 5px;
        }
    }

    .agent-popup-body {
        display: flex;
        padding: 0;
        gap: 40px 60px;

        @media (max-width: 768px) {
            flex-direction: column;
        }

        .agent-popup-image {
            flex: 0 0 400px;

            img {
                width: 100%;
                display: block;
            }

            @media (max-width: 768px) {
                flex: none;
                height: auto;
            }
        }

        .agent-popup-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 16px;
            color: #333333;

            .agent-popup-title {
                font-size: 20px;
                line-height: 24px;
                font-weight: 500;
                margin: 0;
            }

            .agent-popup-name {
                font-size: 54px;
                line-height: 60px;
                font-weight: 400;
                letter-spacing: -1px;
                margin: 0;
            }

            .agent-popup-description {
                margin-top: 30px;
                color: var(--e-global-color-text);
            }

            .agent-popup-links {
                display: flex;
                gap: 40px;
                margin-top: 15px;

                .agent-popup-link {
                    color: var(--e-global-color-641a9e4);
                    font-size: 18px;
                    font-weight: 600;
                    line-height: 1em;
                    letter-spacing: -0.3px;
                }
            }

        }
    }
}



.member-popup-trigger, .member-popup-close{
    cursor: pointer;
}

div.blog-content{
    & > .elementor-widget-container > *:first-child{
        margin-top: 0;
    }
    h1,h2,h3,h4,h5{
        margin-top: 1.2em;
        margin-bottom: 0.7em;
    }
    ul,ol{
        padding-left: 15px;
        margin-top: 10px;
        margin-bottom: 5px;
        display: grid;
        gap: 7px;
        list-style: initial;
    }
    p:not(:last-child){
        margin-bottom: 10px;
    }
    hr{
        margin-block: 40px;
        border: 1px solid;
    }
    blockquote {
        margin: 0;
        & > p{
            font-size: 18px;
            line-height: 23px;
        }
    }

    a{
        color: var(--e-global-color-641a9e4);
        text-decoration: underline;
        &:hover{
            color: var(--e-global-color-50ac483);
            text-decoration: underline;
        }
    }


    .wp-block-buttons{
        margin-top: 30px;
        .wp-element-button{
            background-color: var(--e-global-color-641a9e4);
            font-size: var(--e-global-typography-1282c43-font-size);
            font-weight: var(--e-global-typography-1282c43-font-weight);
            line-height: var(--e-global-typography-1282c43-line-height);
            fill: var(--e-global-color-9588f65);
            color: var(--e-global-color-9588f65);
            border-style: solid;
            border-width: 1px 1px 1px 1px;
            border-color: var(--e-global-color-641a9e4);
            border-radius: 25px 25px 25px 25px;
            padding: 10px 30px 10px 30px;
            transition: all 0.3s ease-in-out;
            &:hover{
                background-color: var(--e-global-color-50ac483);
                color: white;
            }
        }
    }
}


div.gform_wrapper.gravity-theme.subscription-form_wrapper{
    input[type=email], input[type=text]{
        border-color: white;
        padding-left: 25px;
        height: 40px;
        border-radius: 25px;
        &:focus{
            outline: none;
        }
        &::placeholder{
            color: #91929A;
            font-size: 15px;
            line-height: 1em;
        }
    }

    .gform_fields{
        grid-row-gap: 20px;
        grid-column-gap: 10px;
    }

    .gfield_error{
        input[type=email], input[type=text]{
            border-color: var(--e-global-color-641a9e4);
        }
    }

    .gform-footer, .gform_validation_errors, .gfield_validation_message{
        display: none;
    }

    input[type="submit"]{
        height: 44px;
        background-color: var(--e-global-color-641a9e4) ;
        color: white ;
        border-radius: 30px;
        font-size: 18px;
        font-weight: 600;
    }
}

div.gform_wrapper.gravity-theme{
    .gform_heading{
        display: none;
    }
    .gform_fields{
        grid-row-gap: 25px;
        grid-column-gap: 20px;
    }

    .gfield{
        &.prefix{
            input[type="text"], input[type='email'], input[type='tel'], input[type='number'], input[type='password']{
                padding-left: 35px;
                background-repeat: no-repeat;
                background-position: 10px center;
                background-size: 16px;
            }
        }

        &.prefix--user{
            input[type="text"], input[type='email'], input[type='tel'], input[type='number'], input[type='password']{
                background-image: url("/wp-content/themes/hello-elementor-child/img/user-circle.png");
            }
        }

        &.prefix--email{
            input[type="text"], input[type='email'], input[type='tel'], input[type='number'], input[type='password']{
                background-image: url("/wp-content/themes/hello-elementor-child/img/email.png");
            }
        }

        &.prefix--phone{
            input[type="text"], input[type='email'], input[type='tel'], input[type='number'], input[type='password']{
                background-image: url("/wp-content/themes/hello-elementor-child/img/phone.png");
            }
        }

        &.prefix--location-pin{
            input[type="text"], input[type='email'], input[type='tel'], input[type='number'], input[type='password']{
                background-image: url("/wp-content/themes/hello-elementor-child/img/location-dot.png");
            }
        }
    }

    .gfield_label{
        font-size: 12px;
        line-height: 1.1em;
        font-weight: 500;
    }
    input[type="text"], input[type='email'], input[type='tel'], input[type='number'], input[type='password'], textarea, select{
        min-height: 44px;
        border: 1px solid #EFEFEF;
        padding: 10px 15px;
        border-radius: 25px;
        &:focus{
            border-color: var(--e-global-color-641a9e4);
            outline: 0;
        }
        &::placeholder{
            color: #797675;
        }
    }
    select:has(option:checked:default) {
        color: #797675;
    }

    .gform_footer{
        input[type=submit]{
            border-radius: 25px;
            padding: 12px 30px;
        }
    }
}


header .elementor-nav-menu {
    & > .menu-item{
        position: relative;
        & > a{
            border-radius: 30px;
            &:hover{
                background-color: rgba(255,255,255,0.1);
            }
        }
        &.current-menu-item{
            & > a{
                background-color: rgba(255,255,255,0.1);
            }
        }

        & > .sub-menu {
            &::before {
                content: "";
                position: absolute;
                top: -25px;
                bottom: -25px;
                left: -100vw;
                width: 300vw;
                z-index: -1;
                background-color: white;
                box-shadow: 0 5px 10px rgba(0,0,0,0.05);
            }
            &[aria-hidden=false] {
                --e-nav-menu-horizontal-menu-item-margin : 0;
                display: grid !important;
                gap: 5px 60px;
            }
            a.elementor-sub-item{
                border: none;
                padding: 8px 15px;
                border-radius: 30px;
                &:hover{
                    background-color: #EFEFEF;
                    color: black;
                }
            }


        }

        &.menu-item--3colunms{
            & > .sub-menu[aria-hidden=false] {
                /*--e-nav-menu-horizontal-menu-item-margin : 50%;*/
                transform: translateX(-39%);
                grid-template-columns: repeat(3, 1fr);
            }
        }
    }
}

.mobile-menu-container nav.custom-menu{
    & > ul{
        display: grid;
        gap: 50px;
    }
    li.menu-item{
        a{
            color: white;
            font-size: 22px;
            line-height: 28px;
            font-weight: 300;
        }
        ul.sub-menu{
            display: grid;
            gap: 15px;
            margin-top: 15px;
        }
        &.menu-item-has-children{
            & > a{
                font-weight: 800;
                color: #797675;
                font-size: 12px;
                line-height: 15px;
                letter-spacing: 1px;
                text-transform: uppercase;
            }
        }
        &.mobile-hidden{
            display: none !important;
        }
    }
}

.testimonial-container{
    label{
        font-size: 12px;
        font-weight: 500;
        color: #797675;
    }

    .testimonial-member-list{
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px 40px;
    }
}

.testimonial-member{
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 15px;
    align-items: center;
    .testimonial-member__image {
        display: flex;
        img{
            aspect-ratio: 1;
            border-radius: 50%;
            overflow: hidden;
            object-fit: cover;
        }
    }

    .testimonial-member__info{
        position: relative;
        top: -1px;

        .testimonial-member__name{
            font-size: 16px;
            font-weight: 400;
        }
    }
}

.swiper .testimonial-content.has-hidden{
    max-height: 150px;
    position: relative;
    overflow-y: hidden;
    p:last-child{
        margin-bottom: 0;
    }
    & + .read-more-link{
        margin-top: 10px;
        text-align: right;
        cursor: pointer;
    }
    &:after{
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 80px;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
    }
}

@media (min-width: 768px) {
    .bg-image-box{
        .bg-image-box__text{
            display: grid;
            grid-template-rows: 0fr;
            transition: all 0.3s ease;
            & > div{
                overflow: hidden;
                transition: all 0.3s ease;
            }
        }
        &:hover{
            .bg-image-box__text{
                grid-template-rows: 1fr;
            }
        }
    }
}




.centered-cta{
    .agent-cta{
        text-align: center;
    }
}

div.agent-cta__buttons{
    border: 1px solid var(--e-global-color-641a9e4);
    border-radius: 4px;
    overflow: hidden;
    margin-inline: auto;

    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;

    .elementor-button{
        border-radius: 0;
        display: flex;
        gap: 10px;
        align-items: center;
        white-space: nowrap;
        cursor: pointer;
        padding-inline: 15px;
        text-align: center;
        justify-content: center;
        flex-grow: 1;
    }
    .elementor-button--white{
        background-color: white;
        color: var(--e-global-color-641a9e4);
        border: none;
        &:hover{
            color: white;
        }
    }

    &.elementor-button--email{
        width: 100px;
        flex-grow: 0;
    }

    &.agent-cta__buttons--large{
        width: auto;
        .elementor-button{
            font-size: 18px;
        }
    }
}

div.chosen-container .chosen-drop{
    width: 300px;
}



body.page-template-trans-header-layout > header:not(.sticky) > .elementor-element{
    background-color: transparent !important;
}


/* Sticky Header on Scroll Up */
header.elementor-location-header.sticky {
    position: sticky;
    transition: top 0.3s ease;
    top: var(--header-offset, 0);
    z-index: 100;
}

.admin-bar{
    --header-offset: 32px;
}

