﻿:root {
    --main-bg-color: #1e58ac;
    --brow-height: 20px;
    --brow-width: 54%;
    --battery-second-color: #adadad;
    --features-size: min(50cqi, 560px);
    --features-icon-size: 8cqi;
    --rotate-time: 1s;
    --feature-title-color: rgba(0, 85, 163, 1);
    --phone-btn-width: 5px;
    --phone-border-width: 14px;
    --secondary-color: #FF8F00;
    --secondary-color-hover: #fa9d27;
}

button[data-referral-form-modal] {
    min-height: 48px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.5;
    border-radius: 0;
    padding: 15px 60px;
    text-transform: uppercase;
    border: transparent;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: all .3s linear;
}

    button[data-referral-form-modal]:hover,
    button[data-referral-form-modal]:focus {
        color: #2c2c2c;
        background-color: var(--secondary-color-hover);
    }


.referral-bg {
    background: rgb(0,92,173);
    background: linear-gradient(0deg, rgba(1,54,119,1) 0%, rgba(1,64,133,1) 10%, rgba(0,92,173,1) 50%, rgba(0,105,193,1) 100%);
}

.referral-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    font-family: 'montserrat-regular', arial, sans-serif;
}

    .referral-header > .info {
        flex: 1 1 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .referral-header h1 {
        color: #fff;
        font-size: 5.4rem;
        line-height: 1;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 20px;
        padding: 0;
        font-family: inherit;
    }

    .referral-header h2 {
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 30px;
        font-family: inherit;
    }

    .referral-header > img {
        max-width: 530px;
    }

    .referral-header .qr-wrapper {
        position: relative;
    }

        .referral-header .qr-wrapper > .qr-container {
            position: absolute;
            top: 20px;
            left: 100%;
            transform: translateX(-40px);
            z-index: 1;
        }

.qr-container > img {
    position: relative;
}

.qr-container > #qr-code {
    display: flex;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(calc((50% + 10px) * -1), calc(50% + 23px));
    transform-origin: center;
}

.qr-wrapper > .referral-qr-img {
    display: none;
}

#referral-page .breadcrumb {
    margin-bottom: 8px;
}

    #referral-page .breadcrumb > li,
    #referral-page .breadcrumb > li > a {
        color: #fff;
    }

        #referral-page .breadcrumb > li > a:hover {
            color: #fff !important;
            text-decoration: underline !important;
        }

        #referral-page .breadcrumb > li.active:before {
            color: #ffffff !important;
        }

#referral-page.page-title {
    margin-top: 120px;
    min-height: 515px;
}

#happy-clients-slider {
    width: 100%;
    display: flex;
    padding: 0 15px;
}

    #happy-clients-slider .client {
        padding: 0 30px;
        height: 230px;
    }

        #happy-clients-slider .client > img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }


section.clients-section .clients-header {
    margin-bottom: 15px;
}

    section.clients-section .clients-header h2 {
        color: var(--feature-title-color);
        margin-inline: auto;
        display: inline-grid;
    }


.section-wrapper {
    padding: 30px 0 40px 0;
}

.referral-steps {
    background-color: #1E58AC;
    color: #fff;
    padding: 0;
}

    .referral-steps > .referral-steps-bg {
        background-image: url(../images/referral/refferal-bg-img.png);
        background-repeat: no-repeat;
        background-position: 0 0;
        background-position-x: center;
        padding: 90px 0;
    }

    .referral-steps h2 {
        color: inherit;
        font-weight: bold;
        font-size: 34px;
    }

    .referral-steps h3 {
        color: inherit;
    }

    .referral-steps .row:first-child {
        margin-bottom: 24px;
    }


    .referral-steps .step .image {
        position: relative;
        z-index: 1;
        margin-bottom: 40px;
    }

        .referral-steps .step .image:before {
            display: block;
            content: '';
            height: 122px;
            width: 122px;
            position: absolute;
            background: rgba(30, 88, 172, 0.05);
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

.form-banner, .abilities {
    padding-left: 30px;
    padding-right: 30px;
}

/* FORM BANNER*/
.form-banner {
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 40px;
    padding-bottom: 17px;
    min-height: 448px;
    display: flex;
    flex-direction: column;
}


    .form-banner .overlay {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(30, 88, 172, 1) 6.71%, rgba(30, 88, 172, 0.12) 72.04%);
        mix-blend-mode: multiply;
        z-index: 0;
    }

    .form-banner .title,
    .form-banner .description,
    .form-banner #getDbcBtn {
        position: relative;
        z-index: 1;
        max-width: 50%;
    }



    .form-banner .title {
        color: rgb(243, 225, 64);
        font-size: 34px;
        font-weight: 900;
        line-height: 1.2;
        margin-bottom: 24px;
        text-transform: uppercase;
    }

    .form-banner .description {
        color: #ffffff;
        font-weight: 700;
        font-size: 14px;
        margin-bottom: 24px;
    }

    .form-banner #getDbcBtn {
        padding: 15px 20px;
        background-color: #F3E140;
        color: rgb(33, 33, 33);
        text-transform: uppercase;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
        border: none;
        margin-top: auto;
        text-align: center;
    }
/* FORM BANNER END*/

/* REFERRAL ABILITIES*/
.abilities {
    background-color: #1E58AC;
    color: #fff;
    padding: 30px;
}

    .abilities .title {
        color: #fff;
    }

    .abilities > ul.abilities-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .abilities > ul.abilities-list > li {
            display: flex;
            align-items: flex-start;
        }

            .abilities > ul.abilities-list > li > .check-icon {
                margin-right: 15px;
                height: 10px;
                width: 10px;
                flex: 0 0 auto;
            }

                .abilities > ul.abilities-list > li > .check-icon > img {
                    max-width: 100%;
                    vertical-align: initial;
                }

            .abilities > ul.abilities-list > li > .text {
                flex: 1 1 auto;
            }
/*REFERRAL ABILITIES END*/
.form-wrapper > div {
    margin-bottom: 15px;
}


/* phone */

.iphone-x {
    position: relative;
    height: 100%;
    aspect-ratio: 315 / 640;
    box-sizing: border-box;
    margin: 25px;
    max-width: calc(315px - 44px);
    max-height: calc(640px - 44px);
    background-color: #7371ee;
    background-image: linear-gradient(60deg, #7371ee 1%, #a1d9d6 100%);
    border-radius: 32px;
    box-shadow: 0px 0px 0px var(--phone-border-width) var(--main-bg-color);
    z-index: 1;
}

    .iphone-x:before,
    .iphone-x:after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* // home button indicator */
    .iphone-x:after {
        bottom: 7px;
        width: 140px;
        height: 4px;
        background-color: #f2f2f2;
        border-radius: 10px;
    }

    /* // frontal camera/speaker frame */
    .iphone-x:before {
        top: 0px;
        width: var(--brow-width);
        height: var(--brow-height);
        background-color: var(--main-bg-color);
        border-radius: 0px 0px 16px 16px;
    }

    .iphone-x i,
    .iphone-x b,
    .iphone-x s,
    .iphone-x > span {
        position: absolute;
        display: block;
        color: transparent;
    }

    .iphone-x i,
    .iphone-x b {
        opacity: 0.1;
    }

    /* // speaker */
    .iphone-x i {
        top: 0px;
        left: 50%;
        transform: translate(-50%, 3px);
        height: 8px;
        width: 15%;
        background-color: #000000;
        border-radius: 8px;
        box-shadow: inset 0px -3px 3px 0px rgba(256, 256, 256, 0.2);
    }

    /* // camera */
    .iphone-x b {
        right: 50%;
        top: 0px;
        transform: translate(36px, 1.5px);
        width: 12px;
        height: 12px;
        background-color: #101010;
        border-radius: 12px;
        box-shadow: inset 0px -3px 2px 0px rgba(256, 256, 256, 0.2);
    }

        .iphone-x b:after {
            content: "";
            position: absolute;
            background-color: #2d4d76;
            width: 6px;
            height: 6px;
            top: 2px;
            left: 2px;
            top: 3px;
            left: 3px;
            display: block;
            border-radius: 4px;
            box-shadow: inset 0px -2px 2px rgba(0, 0, 0, 0.5);
        }

    /* // time */
    .iphone-x s {
        top: 50px;
        color: #fff;
        text-align: center;
        text-decoration: none;
        width: 100%;
        font-size: 70px;
        font-weight: 100;
        padding-top: 60px;
    }

    .iphone-x .screen {
        width: 100%;
        height: 100%;
        border-radius: inherit;
        overflow: hidden;
        display: grid;
        grid-template-rows: auto 1fr;
    }

    .iphone-x div.viewport {
        width: 100%;
        height: 100%;
    }

.top-panel {
    width: 100%;
    height: var(--brow-height);
    background-color: #fff;
    color: #000000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--brow-width) + 25px);
    align-items: center;
    justify-items: center;
    padding: 0 15px;
    box-sizing: border-box;
}

    .top-panel img {
        max-width: 100%;
    }


.iphone-x .volume-btn,
.iphone-x .power-btn {
    display: block;
    position: absolute;
    width: var(--phone-btn-width);
    border-radius: 2px;
    border-width: 1px;
    border-style: solid;
    border-radius: 2px;
}

.iphone-x .power-btn {
    right: calc((var(--phone-border-width) + var(--phone-btn-width)) * -1);
    top: 26%;
    height: 74px;
    background-color: var(--main-bg-color);
}

.iphone-x .volume-btn {
    left: calc((var(--phone-border-width) + var(--phone-btn-width)) * -1);
    top: 20%;
    display: grid;
    grid-template-rows: repeat(2, 45px);
    gap: 14px;
}

    .iphone-x .volume-btn span {
        display: block;
        position: static;
        width: inherit;
        background-color: var(--main-bg-color);
        border-radius: inherit;
    }

/* end phone */

.referral-features-section h2 {
    font-family: "Montserrat-Bold", "Open Sans", sans-serif;
}


.referral-features-section p,
.referral-features-section span {
    font-family: "Montserrat-Light", "Open Sans", sans-serif;
}

/**
 * ----------------------------------------
 * animation fade-in
 * ----------------------------------------
 */
@-webkit-keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/**
 * ----------------------------------------
 * animation rotate
 * ----------------------------------------
 */

@keyframes rotate {
    0% {
        -webkit-transform: rotate(-30deg);
        transform: rotate(-30deg);
    }

    100% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@keyframes de-rotate {
    0% {
        -webkit-transform: translate(-50%, -50%) rotate(30deg);
        transform: translate(-50%, -50%) rotate(30deg);
    }

    80% {
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes zoom-in {
    0% {
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
    }

    75% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.app-container {
    width: 133%;
    height: 133%;
    transform: scale(75%);
    transform-origin: 0 0;
}

    .app-container iframe {
        pointer-events: none;
        width: 100%;
        height: 100%;
    }

.feature-action-container {
    background-color: #F6F6F6;
    padding: 42px;
    max-width: 1300px;
    margin-bottom: 24px;
}

.feature-action-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(311px, auto));
    gap: 0 15px;
    margin-inline: auto;
    max-width: 960px;
}

    .feature-action-content h3 {
        color: var(--secondary-color);
    }

    .feature-action-content p {
        grid-row: 2;
    }

    .feature-action-content button {
        grid-row: span 2;
        align-self: center;
    }

.referrals-count-banner {
    background-color: rgba(30, 88, 172, 1);
    color: #fff;
    padding-top: 34px;
    padding-bottom: 34px;
}

    .referrals-count-banner > .content-container {
        display: flex;
        gap: 64px;
    }

    .referrals-count-banner > .container:before,
    .referrals-count-banner > .container:after {
        display: none;
        content: none;
    }

    .referrals-count-banner > .content-container > .image-container {
        flex: 0 1 330px;
        overflow: hidden;
    }

    .referrals-count-banner > .content-container img {
        max-width: 100%;
    }


.referrals-count-content {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: min-content auto;
    gap: 15px 34px;
    align-self: center;
}

    .referrals-count-content .counter,
    .referrals-count-content .title {
        font-weight: 700;
        align-self: end;
    }

    .referrals-count-content .counter {
        font-size: 9rem;
        line-height: 1;
    }

    .referrals-count-content .title {
        font-size: 3.4rem;
        line-height: 1.2;
        max-width: 330px;
    }

    .referrals-count-content .text {
        font-size: 14px;
        grid-column: span 2;
        line-height: 1.5;
        margin: 0;
    }

    .referrals-count-content > *:last-child {
        font-size: 18px;
        font-weight: 600;
    }

/*happy clients*/
.clients-gallery {
    padding-block: 62px;
}

    .clients-gallery .title {
        text-align: center;
        font-size: 2.4rem;
        font-weight: 600;
        color: var(--feature-title-color);
        margin-bottom: 24px;
    }


    .clients-gallery .clients {
        display: grid;
        gap: 60px;
        grid-template-columns: repeat(3, 1fr);
    }

    .clients-gallery .pagination {
        margin-inline: auto;
        display: flex;
        gap: 24px;
        justify-content: center;
    }

        .clients-gallery .pagination > button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #fff;
            font-family: "Montserrat-Bold", sans-serif;
            font-size: 18px;
            font-weight: 600;
            border: 1px solid rgba(224, 224, 224, 1);
            padding-inline: 24px;
            min-width: 128px;
            height: 48px;
        }

            .clients-gallery .pagination > button:hover {
                background-color: #f6f4f4;
            }

            .clients-gallery .pagination > button[disabled] {
                color: rgba(224, 224, 224, 1);
                pointer-events: none;
            }

    .clients-gallery .clients .client {
        aspect-ratio: 320 / 240;
        opacity: 0;
        animation: fade-in 1.2s cubic-bezier(0.39, 0.575, 0.565, 1) both;
    }

        .clients-gallery .clients .client img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
/*end happy clients*/

.iphone-x {
    margin-inline: auto;
}

.features {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-inline: 34px;
    margin-block: 42px;
}

.fetures-header {
    margin-bottom: 40px;
    text-align: center;
}

    .fetures-header h2 {
        font-size: 2.4rem;
        font-weight: 600;
        color: var(--feature-title-color);
    }

    .fetures-header p {
        font-size: 1.4rem;
    }

.features .referral-feature {
    display: grid;
    gap: 15px;
    flex-basis: min(312px, 50%);
    flex-grow: 1;
}

    .features .referral-feature img {
        max-width: 64px;
    }


.referral-feature .title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--feature-title-color);
    font-family: "Montserrat-Bold", "Open Sans", sans-serif;
    margin-bottom: 1.2rem;
}

.referral-feature > .referral-feature-content .text {
    display: grid;
    font-size: 1.4rem;
}

    .referral-feature > .referral-feature-content .text span:not(.title) {
        font-family: 'Monserrat-Regular', sans-serif;
        line-height: 1.4;
    }

@media (min-width: 992px) {
    .features-wrapper {
        width: var(--features-size);
        aspect-ratio: 1;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-inline: auto;
    }

    .features {
        position: absolute;
        aspect-ratio: 1;
        width: 100%;
        max-width: var(--features-size);
        border-radius: 50%;
        border: 1px solid rgba(0, 85, 163, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .features.animated {
            transform-origin: center;
            animation: rotate var(--rotate-time) cubic-bezier(0.39, 0.575, 0.565, 1) both;
        }

        .features::before,
        .features::after {
            content: "";
            position: absolute;
            background-color: rgba(0, 85, 163, 0.1);
            border-radius: inherit;
        }

        .features::before {
            width: 100%;
            height: 100%;
        }

        .features::after {
            width: 75%;
            height: 75%;
        }

        .features .referral-feature {
            --_r: calc(var(--features-size) / 2);
            --_y: calc((var(--_r)) + (var(--_r) * sin(var(--_d))));
            --_x: calc((var(--_r)) + (var(--_r) * cos(var(--_d))));
            display: grid;
            place-content: center;
            max-width: 62px;
            min-width: 36px;
            width: var(--features-icon-size);
            aspect-ratio: 1;
            position: absolute;
            left: var(--_x);
            top: var(--_y);
            transform: translate(-50%, -50%) rotate(0deg);
            opacity: 0;
        }

        .features.animated .referral-feature {
            animation: fade-in 1.2s cubic-bezier(0.39, 0.575, 0.565, 1) both, de-rotate var(--rotate-time) cubic-bezier(0.12, 0.15, 0.68, 0.95) both;
            transform-origin: center;
            transform: rotate(30deg);
        }

        .features .referral-feature > img {
            max-width: 100%;
        }

        .features.animated .referral-feature > img {
            transform: scale(0.7);
            animation: zoom-in 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) both;
        }

        .features .referral-feature:nth-child(1) {
            --_d: 218deg;
        }

        .features .referral-feature:nth-child(2) {
            --_d: 155deg;
        }

        .features .referral-feature:nth-child(3) {
            --_d: 330deg;
        }

        .features .referral-feature:nth-child(4) {
            --_d: 30deg;
        }

    .referral-feature > .referral-feature-content {
        position: absolute;
        top: 0;
        width: inherit;
        max-width: inherit;
        min-width: inherit;
        height: inherit;
    }

        .referral-feature > .referral-feature-content .text {
            position: absolute;
            top: 0;
            opacity: 0;
            display: grid;
            max-width: 316px;
            width: 20vw;
            font-size: 1.4rem;
        }

    .features.animated .referral-feature > .referral-feature-content .text {
        animation: fade-in 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;
    }

    .features .referral-feature:nth-child(1) > .referral-feature-content > .text,
    .features .referral-feature:nth-child(2) > .referral-feature-content > .text {
        right: 100%;
        margin-right: 25px;
        text-align: right;
    }

    .features .referral-feature:nth-child(3) > .referral-feature-content > .text,
    .features .referral-feature:nth-child(4) > .referral-feature-content > .text {
        left: 100%;
        margin-left: 25px;
    }

    .features.animated .referral-feature:nth-child(1) > .referral-feature-content > .text,
    .features.animated .referral-feature:nth-child(1) > img {
        animation-delay: 1s;
    }

    .features.animated .referral-feature:nth-child(2) > .referral-feature-content > .text,
    .features.animated .referral-feature:nth-child(2) > img {
        animation-delay: 1.2s;
    }

    .features.animated .referral-feature:nth-child(3) > .referral-feature-content > .text,
    .features.animated .referral-feature:nth-child(3) > img {
        animation-delay: 1.4s;
    }

    .features.animated .referral-feature:nth-child(4) > .referral-feature-content > .text,
    .features.animated .referral-feature:nth-child(4) > img {
        animation-delay: 1.6s;
    }
}

@media (max-width: 992px) {
    .qr-container {
        display: none;
    }

    #referral-page.page-title {
        min-height: auto;
    }

    .referral-header > img{
        max-width: 100%;
    }
}

@media (max-width: 975px) {
    .referral-header {
        flex-direction: column-reverse;
    }

    .referral-steps .step {
        margin-bottom: 50px;
    }

        .referral-steps .step:last-child {
            margin-bottom: 0;
        }

    .form-wrapper {
        display: flex;
        flex-direction: column-reverse;
    }

    .referrals-count-content .counter {
        font-size: 7rem;
    }

    .referrals-count-content .title {
        font-size: 2.6rem;
        max-width: 250px;
    }
}

@media (max-width: 792px) {
    .form-banner .title,
    .form-banner .description,
    .form-banner #getDbcBtn {
        width: auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #referral-page.page-title {
        margin-top: 0;
    }


    .referrals-count-banner {
        padding-bottom: 48px;
    }

        .referrals-count-banner > .content-container {
            flex-direction: column;
            align-items: center;
            gap: 32px;
        }


    .referrals-count-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

        .referrals-count-content .counter {
            font-size: 6.8rem;
        }

        .referrals-count-content .title {
            font-size: 2.2rem;
            max-width: 100%;
        }

        .referrals-count-content .text {
            grid-column: auto;
        }

    .referrals-count-banner > .content-container > .image-container {
        max-width: 197px;
        flex: 1;
    }

    .feature-action-content {
        display: initial;
    }
}

@media (max-width: 599px) {
    #happy-clients-slider .client {
        padding: 0;
    }
}
