/* ==========================================================================
   New Home Banner  -  blocks/home/new-banner.php
   Loads after home.css, so plain class selectors here already win the
   cascade. Everything is scoped to .new-home-banner so the original
   .sec_hmbanner banner is untouched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Slide types
   -------------------------------------------------------------------------- */

.new-home-banner .banner-type-video .bannerimgvid > .img-wrap > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* home.css pushes banner images down 40px - not wanted on the video slide */
.new-home-banner .banner-type-video .bannerimgvid > .img-wrap > video {
    padding-top: 0;
}

/* --------------------------------------------------------------------------
   2. Default overlay (no form)  -  matches the existing centred banner
   -------------------------------------------------------------------------- */

.new-home-banner .olhmban_wrap {
    gap: 40px;
    justify-content: left;
}

/* --------------------------------------------------------------------------
   3. Two column overlay  -  only when a form shortcode is filled in
   .container is max-width 1550px (30px padding), so the 880px + 782px
   widths from home.css cannot both fit. Switch to percentages.
   -------------------------------------------------------------------------- */

.new-home-banner .olhmban_wrap.has-banner-form {
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.new-home-banner .olhmban_wrap.has-banner-form > .left-side {
    width: 52%;
    text-align: left;
    margin: 0;
}

.new-home-banner .olhmban_wrap.has-banner-form > .left-side .hmban_title,
.new-home-banner .olhmban_wrap.has-banner-form > .left-side .hmban_cotent {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.new-home-banner .olhmban_wrap.has-banner-form > .left-side .btnlist {
    justify-content: flex-start;
}

.new-home-banner .olhmban_wrap.has-banner-form > .right-side {
    width: 44%;
    max-width: 560px;
}

/* --------------------------------------------------------------------------
   4. Form card
   Field / button / validation styling already comes from common.css,
   so this is only the container around it.
   -------------------------------------------------------------------------- */

.new-home-banner .hmban_form {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    width: 100%;
}

.new-home-banner .hmban_form .wpcf7 {
    margin: 0;
}

.new-home-banner .hmban_form .submitwrap p {
    margin-bottom: 0;	
	font-size: 14px;
    padding: 0 10px;
    margin: 10px 0;
}

.sec_hmbanner.new-home-banner {
    .bannerimgvid > .img-wrap {
        position: relative;
        &:before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 2;
            top: 0;
            left: 0;
            background: linear-gradient(90deg, rgba(7, 16, 22, 0.95) 0%, rgba(7, 16, 22, 0.44) 52%, rgba(7, 16, 22, 0.58) 100%);
        }
        & img {
            height: 100%;
            object-fit: cover;
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            padding: 0;
        }
    }
}

.sec_hmbanner.new-home-banner {
    .ol_hmbanner {
        min-height: 850px;
        align-items: center;
        padding: 0;
        .olhmban_wrap > .left-side {
            text-align: left;
            width: 600px;
            .hmban_title {
                text-transform: capitalize;
                text-align: left;
                & span {
                    color: #ffda00;
                }
            }
        }
        &:before {
            display: none;
        }
    }
}

.banner-type-video {
    .ol_hmbanner {
        padding-top: 0;
    }
}

.hmban_title_small {
    font-size: 12px;
    color: #ffda00;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: 0;
    text-transform: uppercase;
    font-family: "Barlow";
    padding: 0 0 0 50px;
    line-height: 1;
    position: relative;
    margin: 0 0 20px 0;

    &:before {
        content: "";
        position: absolute;
        width: 38px;
        height: 2px;
        left: 0;
        background: #ffda00;
        top: 5px;
    }
}

.hmban_cotent {
    text-align: left !important;
}
.sec_hmbanner.new-home-banner {
    .new-banner-features {
        .container {
            display: flex;
            justify-content: flex-start;
            .new-features-list {
                background: rgba(0, 0, 0, 0.6) !important;
                padding: 10px 10px 10px 20px;
                border-radius: 10px;
                .slide-box {
                    .features-box {
                        padding: 0 20px 0 26px;
                        background: url("../images/yellow-right-arrow.svg")
                            no-repeat 0 0;
                        & p {
                            color: var(--white);
                            font-size: 14px;
                            font-weight: 600;
                        }
                    }
                }
            }
        }
    }
    /* .slide-box:last-child .features-box {padding-right: 0;} */
}

.hmban_form_head {
  & h3 {text-transform: uppercase;margin: 0;}
    & p{margin:10px 0!important;font-size: 14px;
        line-height: 1.4;
        font-family: var(--sitefonts);}
}
.new-home-banner{
  .form-group.form-privacy {
  & p.privacy-note{        font-size: 14px;
        margin-top: 10px;}
}
}
.sec_hmbanner.new-home-banner {
	.form-group {
		.submitbtn {
    background-position: calc(62% + 68px) center;
}
        textarea.form-control {            height: 60px;
            padding: 5px 15px;
            line-height: 1.1;
        }
	}
}

.sec_hmbanner.new-home-banner {
.form-control, input[type="text"], input[type="email"], select, textarea, input[type="number"], input[type="tel"], input[type="file"] {
    padding: 10px 16px 10px 16px;
    min-height: auto;
    margin-bottom: 10px;
	}}

.sec_hmbanner.new-home-banner{
form .form-group label {
    font-size: 14px;
	}}



/* --------------------------------------------------------------------------
   5. Responsive  -  breakpoints match home.css
   -------------------------------------------------------------------------- */

@media (max-width: 1599.98px) {
    .new-home-banner .olhmban_wrap.has-banner-form > .left-side {
        width: 50%;
    }

    .new-home-banner .olhmban_wrap.has-banner-form > .right-side {
        width: 46%;
    }
}

@media (max-width: 1440px) {
    .sec_hmbanner.new-home-banner {
        .new-banner-features {
            position: absolute;
            inset: revert-rule;
            background: transparent;
            margin-top: 0;
            margin-bottom: 55px;
            padding-block: 0 30px;
            bottom: 50px;
        }
    }

    .ol_hmbanner .container {
        max-width: 90%;
    }

    .sec_hmbanner.new-home-banner {
        .ol_hmbanner {
            min-height: 750px;
        }
    }
}

@media (max-width: 1199.98px) {
    .ol_hmbanner .container {
        padding: 0;
    }
    .new-home-banner .olhmban_wrap.has-banner-form {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 30px;
        padding-inline: 0;
    }

    .new-home-banner .olhmban_wrap.has-banner-form > .left-side,
    .new-home-banner .olhmban_wrap.has-banner-form > .right-side {
        width: 100%;
        max-width: 100%;
    }

    .new-home-banner .olhmban_wrap.has-banner-form > .left-side {
        text-align: center;
    }

    .new-home-banner .olhmban_wrap.has-banner-form > .left-side .hmban_title,
    .new-home-banner .olhmban_wrap.has-banner-form > .left-side .hmban_cotent {
        text-align: center;
    }

    .new-home-banner .olhmban_wrap.has-banner-form > .left-side .btnlist {
        justify-content: flex-start;
    }

    .new-home-banner .olhmban_wrap.has-banner-form > .right-side {
        max-width: 480px;
        margin: 0 auto;
    }

    .sec_hmbanner.new-home-banner {
        & .new-banner-features {
            .container {
                display: flex;
                justify-content: flex-start;
                max-width: 90%;
                padding: 0;
            }
        }
    }

    .sec_hmbanner.new-home-banner {
        & .new-banner-features {
            bottom: 0;
            left: 3%;
            & .container {
                .new-features-list {
                    max-width: 300px;
                    justify-content: flex-start;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 10px;
                }
            }
        }
    }
}

@media (max-width: 992px) {
    .new-home-banner .olhmban_wrap.has-banner-form {
        flex-wrap: wrap;
        .right-side {
            display: none;
        }
    }

    .sec_hmbanner.new-home-banner {
        & .ol_hmbanner {
            min-height: 600px;
            .olhmban_wrap > .left-side {
                text-align: center;
                width: 100%;
                .hmban_title {
                    text-align: center;
                }
                & p.hmban_cotent {
                    text-align: center;
                }
            }
        }
        & .new-banner-features {
            & .container {
                .new-features-list {
                    max-width: 100%;
                    justify-content: flex-start;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 10px;
                    margin: 0 auto;
                }
            }
        }
    }
	
	    .sec_hmbanner.new-home-banner {
        & .new-banner-features {
            bottom: 0;
            left: 0;            
        }
    }

    .hmban_title_small {
        padding: 0;
        &:before {
            left: 50%;
            top: 20px;
            margin: 0 0 0 -19px;
        }
    }
}
@media (max-width: 767.98px) {
    .new-home-banner .hmban_form {
        padding: 25px 20px;
    }
    .hmban_cotent {
        text-align: center !important;
    }

    .new-home-banner .olhmban_wrap {
        gap: 25px;
        margin: -80px 0 0 0;
    }

    .sec_hmbanner.new-home-banner {
        .new-banner-features {
            .container {
                .new-features-list {
                    justify-content: center;
                }
            }
        }
    }

    .sec_hmbanner.new-home-banner {
        .ol_hmbanner {
            min-height: 450px;
        }
    }

    .sec_hmbanner.new-home-banner {
        .new-banner-features {
            bottom: 0;
            margin: 0;
        }
    }
}

@media (max-width: 576px) {
    .sec_hmbanner.new-home-banner {
        & .ol_hmbanner {
            & .olhmban_wrap > .left-side {
                .hmban_title {
                    text-align: center;
                    line-height: 1.1;
                    font-size: 26px;
                }
                & p.hmban_cotent {
                    font-size: 14px;
                }
            }
        }
    }

    .sec_hmbanner.new-home-banner {
        .new-banner-features {
            .container {
                .new-features-list {
                    justify-content: flex-start;
                    flex-wrap: wrap;
                    .slide-box {
                        width: 100%;
                        display: flex;
                    }
                }
            }
        }
    }

    .sec_hmbanner.new-home-banner {
        .new-banner-features {
            .container {
                .new-features-list {
                    justify-content: flex-start;
                    flex-wrap: wrap;
                    /* background: goldenrod!important; */
                    width: 230px !important;
                    .features-box {max-width: inherit;
                    }
                    .slide-box {
                        width: 100%;
                        display: flex;
                        /* background: gainsboro; */
                                                justify-content: flex-start;
                    
                    }
                }
            }
        }
    }
	
	    .new-home-banner .olhmban_wrap.has-banner-form > .left-side .btnlist {
        justify-content: center;
    }

        .sec_hmbanner.new-home-banner {
        .new-banner-features {
            bottom: -20px;
            margin: 0;
        }
    }
}
