.tpl-hero-v2 {
    --image-hero-mobile: none;
    --image-hero-tablet: none;
    --image-hero-desktop: none;

    --desktop-max-width: 1248px;
    --viewport-max-layout: 1600px;
    --layout-gutter: calc(
            (min(100vw, var(--viewport-max-layout)) - var(--desktop-max-width)) / 2);

    --color-chip-background-hero: var(--color-chip-background, #00A37D);
}

.vs-wrapper--fluid .vs-component--fluid {
    margin-top: 0;
}

.tpl-hero-v2__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tpl-hero-v2__background {
    width: 100%;
    height: 192px;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: var(--image-hero-mobile);
}

.tpl-hero-v2__awards-banner {
    display: none;
}

.tpl-hero-v2__cta {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
    max-width: 100%;
    margin: -32px auto 0;
    padding: 24px 32px 0;
    border-radius: 32px 32px 0 0;
    background: linear-gradient(180deg, #DCD5CC 0%, #FFF 100%), var(--background-hero-mobile);
    background-blend-mode: hard-light, normal;
    backdrop-filter: blur(8px);
}

.tpl-hero-v2__title-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.tpl-hero-v2__title-wrapper .vs-title-1__regular {
    line-height: 36px;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.64px;
}

.tpl-hero-v2__chips-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 8px
}

.tpl-hero-v2__chip {
    display: flex;
    align-items: center;
    column-gap: 4px;
    width: max-content;
    padding: 4px 8px;
    border: 1px solid var(--color-chip-background-hero);
    border-radius: 16px;
    background-color: var(--color-chip-background-hero);
}

.tpl-hero-v2__icon-chip {
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.tpl-hero-v2__icon-chip svg {
    width: 16px;
    height: 16px;
}

.tpl-hero-v2__btn-cta {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.tpl-hero-v2__funnel-button .vs-title-2__medium {
    font-size: 22px;
    line-height: 26px;
}

.tpl-hero-v2__funnel-button.vs-button.big {
    width: 100%;
    max-width: 100%;
    height: 64px;
    padding: 12px 24px 12px 32px;
}

.tpl-hero-v2__form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 8px;
}

.tpl-hero-v2__form {
    position: relative;
    display: flex;
    align-items: center;
    column-gap: 8px;
    width: 100%;
}

.tpl-hero-v2__tel-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tpl-hero-v2__form .tpl-hero-v2__input-wrapper {
    flex: 1;
}

.tpl-hero-v2__form .tpl-hero-v2__input-wrapper .tpl-hero-v2__tel-input {
    height: 48px;
    padding: 8px 20px;
    border: 1px solid #EEE;
    border-radius: 24px;
    box-shadow: none;
    background-color: #FFF;
}

.tpl-hero-v2__form .tpl-hero-v2__input-wrapper .tpl-hero-v2__tel-input.vs-text::placeholder {
    color: var(--color-primary-black-soft, #8A8C8E);
}

.tpl-hero-v2__form .tpl-hero-v2__cta-button.vs-button.outlined {
    position: absolute;
    right: 0;
    height: 48px;
    padding: 12px 32px;
    border-radius: 24px;
}

.tpl-hero-v2__form .tpl-hero-v2__cta-button.vs-button.outlined .vs-title-4__medium {
    font-size: 18px;
    line-height: 22px;
}

.tpl-hero-v2__call-us.vs-title-5__medium {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-title, #262626);
}

.tpl-hero-v2__call-us.vs-title-5__medium a {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    color: var(--color-title, #262626);
}

.tpl-hero-v2__footer {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
    margin-block: 40px 32px;
    padding: 0 20px 0;
}

.tpl-hero-v2__awards-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    width: 100%;
    height: 100%;
    padding: 24px 32px;
    border-radius: 32px;
    background-color: var(--color-terciary-gray, #F8F7F5);
    backdrop-filter: blur(8px);
}

.tpl-hero-v2__awards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: start;
}

.tpl-hero-v2__award:first-child {
    width: 60px;
    height: 80px;
}

.tpl-hero-v2__award:nth-child(2) {
    width: 66px;
    height: 80px;
}

.tpl-hero-v2__award img {
    width: 100%;
    height: 100%;
}

.tpl-hero-v2__awards-wrapper .vs-title-4__light span {
    font-weight: 500;
}

.tpl-hero-v2 .vs-wrapper--fluid {
    margin-top: 0;
}

@media (min-width: 744px) {
    .tpl-hero-v2__background {
        height: 480px;
        background-image: var(--image-hero-tablet);
    }

    .tpl-hero-v2__cta {
        margin-inline: 0;
        padding: 40px 40px 0;
        background: linear-gradient(180deg, #DCD5CC 0%, #FFF 100%), var(--background-hero-tablet);
    }

    .tpl-hero-v2__title-wrapper {
        row-gap: 10px;
    }

    .tpl-hero-v2__btn-cta {
        flex-direction: row-reverse;
        gap: 16px;
    }

    .tpl-hero-v2__btn-cta > * {
        flex: 1;
    }

    .tpl-hero-v2__form .tpl-hero-v2__input-wrapper .tpl-hero-v2__tel-input,
    .tpl-hero-v2__form .tpl-hero-v2__cta-button.vs-button.outlined {
        height: 64px;
        border-radius: 32px;
    }

    .tpl-hero-v2__footer {
        flex-direction: row-reverse;
        justify-content: space-between;
        column-gap: 40px;
        padding: 0 40px 0;
    }

    .tpl-hero-v2__awards-wrapper {
        width: 393px;
    }

    .tpl-hero-v2__awards-wrapper .vs-title-4__light {
        font-size: 16px;
        font-weight: 300;
        line-height: 20px;
    }
}

@media (min-width: 1024px) {
    .tpl-hero-v2__content {
        display: flex;
        flex-direction: row;
        column-gap: 32px;
        height: 592px;
        padding: 40px 40px 0 0;
        background-image: linear-gradient(180deg, #DCD5CC 0%, rgba(255, 255, 255, 0) 100%), url("/components/tpl-hero-v2/assets/img/waves-bg-tablet-h-min.png");
        background-size: cover;
        background-blend-mode: hard-light, normal;
    }

    .tpl-hero-v2__background {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        flex: 1 1 auto;
        height: auto;
        border-radius: 0 32px 32px 0;
        background-image: var(--image-hero-desktop);
        background-position-x: right;
    }

    .tpl-hero-v2__awards-banner {
        display: flex;
        justify-content: flex-start;
        column-gap: 12px;
        width: 100%;
        height: auto;
        padding: 16px 40px;
        backdrop-filter: blur(8px);
        border-bottom-right-radius: 32px;
        background-color: rgba(0, 0, 0, 0.30);
    }

    .tpl-hero-v2__awards {
        position: absolute;
        bottom: 16px;
        align-self: flex-end;
    }

    .tpl-hero-v2__awards-banner .vs-text {
        margin-left: 136px;
    }

    .tpl-hero-v2__award:first-child {
        width: 54px;
        height: 72px;
    }

    .tpl-hero-v2__award:nth-child(2) {
        width: 60px;
        height: 72px;
    }

    .tpl-hero-v2__awards-banner .vs-text {
        font-weight: 300;
    }

    .tpl-hero-v2__awards-banner .vs-text span {
        font-weight: 700;
    }

    .tpl-hero-v2__info-cta {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        flex: 0 0 375px
    }

    .tpl-hero-v2__cta {
        margin: 0;
        padding: 0 20px;
        background: none;
        border-radius: 0;
        background-blend-mode: normal;
        backdrop-filter: none;
    }


    .tpl-hero-v2__btn-cta {
        flex-direction: column;
        row-gap: 20px;
    }

    .tpl-hero-v2__title-wrapper .vs-title-1__regular {
        font-size: 44px;
        line-height: 100%;
        letter-spacing: -0.88px;
    }

    .tpl-hero-v2__title-wrapper .vs-title-4__regular {
        font-size: 16px;
        line-height: 20px;
    }

    .tpl-hero-v2__chip .vs-strong-text {
        font-size: 14px;
        line-height: 14px;
    }

    .tpl-hero-v2__form .tpl-hero-v2__input-wrapper .tpl-hero-v2__tel-input,
    .tpl-hero-v2__form .tpl-hero-v2__cta-button.vs-button.outlined {
        height: 48px;
    }

    .tpl-hero-v2__footer {
        justify-content: center;
        margin: 0;
        padding-inline: 20px;
    }

    .tpl-hero-v2__awards-wrapper {
        display: none;
    }
}

@media (min-width: 1360px) {
    .tpl-hero-v2__content {
        padding: 40px 96px 0 0;

    }

    .tpl-hero-v2__awards-banner {
        padding: 16px 96px;
    }
}

@media (min-width: 1440px) {
    .tpl-hero-v2__content {
        background-image: linear-gradient(180deg, #DCD5CC 0%, rgba(255, 255, 255, 0) 100%), var(--background-hero-desktop);
    }

    .vs-wrapper--fluid.vs-has-full-bleed {
        max-width: none;
    }

    .vs-wrapper--fluid.vs-has-full-bleed {
        max-width: none;
    }

    .vs-wrapper--fluid.vs-has-full-bleed .vs-component--fluid {
        padding-inline: var(--layout-gutter);
    }

    .vs-wrapper--fluid.vs-has-full-bleed .vs-component--fluid .vs-full-bleed-media--left {
        width: calc(100% + var(--layout-gutter));
    }

    .vs-wrapper--fluid.vs-has-full-bleed .vs-component--fluid .vs-full-bleed-media--left {
        margin-left: calc(var(--layout-gutter) * -1);
    }

    .vs-wrapper--fluid.vs-has-full-bleed .vs-full-bleed-media--left .vs-bleed__inner {
        padding-inline: var(--layout-gutter);
    }
}

/*POP-UP*/
.tpl-hero-v2 .vs-popup {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tpl-hero-v2 .vs-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(38, 38, 38, 0.90);
}

.tpl-hero-v2 .vs-popup .vs-wrapper {
    display: flex;
    height: 100vh;
}

.tpl-hero-v2 .vs-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 111;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    border-radius: 50%;
    background-color: #EEEEEE;
    cursor: pointer;
}

.tpl-hero-v2 .vs-popup__close svg {
    width: 16px;
    height: 16px;
}

.tpl-hero-v2 .vs-popup__container {
    position: relative;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 90vh;
    height: 90vh;
    margin-top: 12px;
    border-radius: 16px;
    z-index: 11;
    transform: scale(0.9);
    transition: all 0.3s ease;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 60%),
    var(--background-image-popup) center / cover no-repeat;
    overflow: hidden;
}

.tpl-hero-v2 .vs-popup__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: auto;
    padding: 24px;
    border-radius: 16px;
    background-color: var(--color-primary-white, #FFF);
}

.tpl-hero-v2 .vs-popup__content::-webkit-scrollbar {
    width: 6px;
}

.tpl-hero-v2 .vs-popup__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.tpl-hero-v2 .vs-popup__content::-webkit-scrollbar-track {
    background: transparent;
}

.tpl-hero-v2 .vs-popup.show .vs-popup__container {
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.tpl-hero-v2 .vs-popup__content a {
    color: var(--color-link, #ED002F);
}


@media (min-width: 744px) {
    .tpl-hero-v2 .vs-popup .vs-wrapper {
        display: flex;
        justify-content: center;
        height: 100vh;
        margin-block: auto;
    }

    .tpl-hero-v2 .vs-popup__container {
        margin-block: auto;
        height: 75vh;
        border-radius: 32px;
    }

    .tpl-hero-v2 .vs-popup__close {
        top: 40px;
        right: 40px;
    }

    .tpl-hero-v2 .vs-popup__close svg {
        width: 32px;
        height: 32px;
    }

    .tpl-hero-v2 .vs-popup__content {
        padding: 40px;
        border-radius: 32px;
    }
}


