[class^="fa-"]:before,
[class*=" fa-"]:before {
    font-family: "font-awesome-trimmed";
    font-style: normal;
    font-weight: normal;
    speak: never;

    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: .2em;
    text-align: center;
    /* opacity: .8; */

    /* For safety - reset parent styles, that can break glyph codes*/
    font-variant: normal;
    text-transform: none;

    /* fix buttons height, for twitter bootstrap */
    line-height: 1em;

    /* Animation center compensation - margins should be symmetric */
    /* remove if not needed */
    margin-left: .2em;

    /* you can be more comfortable with increased icons size */
    /* font-size: 120%; */

    /* Font smoothing. That was taken from TWBS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Uncomment for 3D effect */
    /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.fa-arrow-down:before {
    content: '\e800';
}

/* '&#59392;' */
.fa-mobile-screen-button:before {
    content: '\e802';
}

/* '&#59394;' */
.fa-key:before {
    content: '\e900';
}

/* '&#59648;' */
.fa-circle-check:before {
    content: '\f058';
}

/* '&#61528;' */
.fa-bars:before {
    content: '\f0c9';
}

/* '&#61641;' */
.fa-angles-left:before {
    content: '\f100';
}

/* '&#61696;' */
.fa-angles-right:before {
    content: '\f101';
}

:root {
    --primary-text-color: black;
    --secondary-text-color: rgb(176, 176, 176);
    --inner-text-color: white;
    --accent-color: #4b3194;
    /* accent color but in rgb, with 70% opacity */
    --accent-color-70: rgb(75, 49, 148, 0.7);
    --cta-color: #4b3194;
    --error-color: red;
    /* error color but in rgb, with 70% opacity */
    --error-color-70: rgb(255, 0, 0, 0.7);
    --valid-color: #00C832;
    /* valid color but in rgb, with 70% opacity */
    --valid-color-70: rgb(0, 200, 50, 0.7);
    --background-color: white;
}

html,
body {
    width: 100%;
    margin: 0px;
    padding: 0px;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    height: 100%;
    overflow: hidden;
}

.container-top {
    height: 15%;
    max-width: 100vw;
    padding: 0px;
    padding-top: 5px;
}

.title-container {
    margin: auto;
    height: 5%;
    padding: 0;
    overflow: show;
}

.main-container {
    height: 80%;
    overflow: visible;
    overflow-x: hidden !important;
    padding-bottom: 42px;
    position: relative;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2;
    overflow: auto;
}

.form {
    z-index: 3;
}

.highlight {
    position: relative;
    z-index: 3;
}

.highlight:not(.highlight:empty):before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 2px solid var(--cta-color);
    background-color: var(--background-color);
    border-radius: 10px;
    margin: -10px 0px;
}

.container-fluid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    max-height: 100vh;
    /* max-width: 100vw; */
    overflow-y: auto;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#offcanvas {
    background-color: var(--accent-color);
}

.offcanvas-body .row a {
    font-size: xx-large;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    color: var(--inner-text-color);
    text-decoration: none;
    max-width: 100vw;
    overflow: hidden;
}

.sidebar-icon {
    color: var(--accent-color);
    font-size: 32px;
}

.steps {
    color: var(--accent-color);
    font-size: 12px;
    line-height: 1.18;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 28px;
    max-width: 400px;
    margin: 0 auto;
    padding: 5px;
}

.step-bar {
    float: left;
    width: calc(50% - 4px);
    height: 8px;
    background: rgba(1, 1, 1, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.step-bar+.step-bar {
    margin-left: 8px;
}

.bar-1::after,
.bar-1.filled+.bar-2::after {
    content: '';
    display: block;
    border-radius: 2px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    transition: 0.5s ease;
}


.step-bar.filled::after {
    width: 100%;
}

.title {
    color: var(--primary-text-color) !important;
    font-size: 20px;
}

.subtitle {
    color: var(--secondary-text-color);
}

ol {
    list-style: none;
    counter-reset: list-counter;
    padding: 0px 10px;
}

.instructions {
    margin-bottom: 2%;
    z-index: 3;
    width: 100%;
    height: 100%;
}

.rightText {
    direction: rtl !important;
}

ol.rightText {
    direction: rtl !important;
}

ol.rightText li {
    text-align: right;
    direction: rtl !important;
}

ol.rightText li::before {
    margin-left: 0.35em !important;
    /* margin-right: -1.5em !important; */
    float: right !important;
}

ol li {
    font-size: 1.6rem;
    /* line-height: 24px; */
    counter-increment: list-counter;
    margin-bottom: 0.6em;
    /* padding: 2px 3px 2px; */
    color: var(--primary-text-color);
    justify-content: left;
}

ol li a {
    color: var(--accent-color) !important;
}

ol li::before {
    display: block;
    float: left;
    font-family: Montserrat, sans-serif;
    font-weight: bold;
    /* increment the counter for this level */
    content: counter(list-counter) ". ";
    background-color: var(--accent-color);
    border-radius: 50%;
    content: counter(list-counter);
    color: var(--inner-text-color);
    width: 1.5em;
    height: 1.5em;
    /* margin-left: -1.5em; */
    margin-right: 0.25em;
    margin-top: -5px;
    padding: 3px;
    text-align: center;
}

.left-border {
    border-left: 2px solid var(--primary-text-color);
    height: 100%;
}

.right-border {
    border-right: 2px solid var(--primary-text-color);
    height: 100%;
}

.lang-button {
    text-decoration: none;
    color: var(--primary-text-color);
    padding: 0 6px;
    font-size: 14px;
    height: 14px;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    text-decoration: underline;
    border: 0px;
    color: var(--primary-text-color)
}

.lang-button:hover {
    color: var(--primary-text-color) !important;
}

.btn-check:not(:checked)+.lang-button {
    border: 0;
}

.lang-button:active {
    background: none !important;
    color: var(--primary-text-color) !important;
    border: 0px !important;
    text-decoration: none !important;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.loader {
    border: 16px solid var(--inner-text-color);
    border-top: 16px solid var(--accent-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.heartbeat {
    animation: heartbeat 2s linear infinite;
    background: var(--valid-color) !important;
    border-color: var(--valid-color) !important;
    text-decoration: none !important;
}

@keyframes heartbeat {
    from {
        transform: scale(1);
        transform-origin: center center;
        animation-timing-function: ease-out
    }

    10% {
        transform: scale(.91);
        animation-timing-function: ease-in
    }

    17% {
        transform: scale(.98);
        animation-timing-function: ease-out
    }

    33% {
        transform: scale(.87);
        animation-timing-function: ease-in
    }

    45% {
        transform: scale(1);
        animation-timing-function: ease-out
    }
}

.main-row {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0% 2%;
}

.pricepoint {
    position: absolute;
    bottom: 60px;
    font-size: 11px;
    text-align: center;
    color: rgb(111, 111, 111);
    left: 50%;
    transform: translateX(-50%);
    /* height: 0px; */
}

.banner-top-en {
    font-size: 13px;
}

.logo-top {
    max-height: 40px;
}

.price-box {
    flex-direction: column;
    max-width: fit-content;
    max-height: fit-content;
    border-radius: 6px;
    text-align: center;
    background-color: var(--secondary-text-color);
    color: var(--inner-text-color);
    font-size: 12px;
}

.price-badge {
    background-color: var(--accent-color) !important;
}

.logo-title {
    text-align: center;
}

.logo-image {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    position: relative;
}


.logo-figure {
    width: 100%;
}

.circle {
    border-radius: 50%;
    height: 100%;
    width: 100%;
    border: min(2vw, 2vh) solid var(--accent-color);
    color: var(--accent-color);
    position: absolute;
}

.animated-arrow {
    font-size: 65%;
    animation: bounce 1.5s infinite;
    /* -webkit-text-stroke: min(1vw, 1vh) var(--accent-color); */
    position: absolute;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(5%);
    }

    50% {
        transform: translateY(-5%);
    }
}

.step-container {
    max-width: 500px;
}

.container-exit {
    font-size: 10px;
    text-align: center;
}

.center {
    text-align: center;
}

.final-text-container {
    font-size: 28px;
}

.final-title {
    font-size: 40px;
}

.footer-container {
    margin-top: -42px;
    box-sizing: content-box;
    width: 100%;
    overflow: hidden;
}

.footer-info p {
    color: var(--secondary-text-color);
    font-size: 12px;
    text-align: justify;
    line-height: 14px;
    margin: 0px 5px;
}

.footer-info p.rightText {
    direction: rtl !important;
}

.footer-info a {
    font-size: 12px;
    text-decoration: none;
    color: var(--secondary-text-color);
    padding: 0px 5px;
}

.input-container {
    width: 100%;
    overflow: visible;
    white-space: nowrap;
    display: flex;
    align-items: center;
    position: relative;
}

.input-container input {
    width: 100%;
    height: 100px;
    max-height: 15vh;
    box-sizing: border-box;
    font-size: 22px;
    border-radius: 50px;
    padding-left: 110px;
    text-align: left;
    border: 3px solid var(--cta-color);
}

.input-container .icon {
    position: absolute;
    font-size: 40px;
    left: 5px;
    color: var(--primary-text-color);
}

#phone-icon {
    font-size: 50px;
    left: 0px;
}

#phone-checkmark,
#pin-checkmark {
    color: var(--valid-color);
}

.input-container .text {
    font-size: 22px;
    position: absolute;
    text-align: center;
    left: 70px;
}

.button-container {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100px;
    max-height: 15vh;
}

.button-container button {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.button-container button .row {
    width: 100%;
    height: 100%;
}

.cta-button {
    font-weight: bold;
    letter-spacing: 0.05em;
    border-radius: 0;
    width: 100%;
    font-size: 30px;
    border-radius: 50px;
    position: relative;
    color: var(--inner-text-color) !important;
    text-decoration: none !important;
}

.cta-button:hover {
    transition: transform .2s;
    transform: scale(1.05);
}

.cta-button:active {
    transition: transform .2s;
    transform: scale(1);
}

.cta-button:not(.heartbeat),
.cta-button:not(.heartbeat):disabled,
.cta-button:not(.heartbeat):active,
.cta-button:not(.heartbeat):hover {
    background: var(--cta-color) !important;
    border-color: var(--cta-color) !important;
}


.cta-button div .left-border {
    border-left-color: var(--inner-text-color) !important;
}

.cta-button div .right-border {
    border-right-color: var(--inner-text-color) !important;
}

.button-arrow {
    font-size: 3rem;
}

.pulse-color-1 {
    animation: animate-pulse-color-1 2s linear infinite
}

@keyframes animate-pulse-color-1 {
    0% {
        box-shadow: 0 0 0 0 lightp, 0 0 0 0 var(--accent-color)
    }

    40% {
        box-shadow: 0 0 0 50px rgb(0, 0, 0, 0), 0 0 0 0 var(--accent-color-70)
    }

    80% {
        box-shadow: 0 0 0 50px rgb(0, 0, 0, 0), 0 0 0 30px rgb(0, 0, 0, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgb(0, 0, 0, 0), 0 0 0 30px rgb(0, 0, 0, 0)
    }
}

@keyframes animate-pulse-color-2 {
    0% {
        box-shadow: 0 0 0 0 lightp, 0 0 0 0 var(--error-color)
    }

    40% {
        box-shadow: 0 0 0 50px rgb(0, 0, 0, 0), 0 0 0 0 var(--error-color-70)
    }

    80% {
        box-shadow: 0 0 0 50px rgb(0, 0, 0, 0), 0 0 0 30px rgb(0, 0, 0, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgb(0, 0, 0, 0), 0 0 0 30px rgb(0, 0, 0, 0)
    }
}

@keyframes animate-pulse-color-3 {
    0% {
        box-shadow: 0 0 0 0 lightp, 0 0 0 0 var(--valid-color)
    }

    40% {
        box-shadow: 0 0 0 50px rgb(0, 0, 0, 0), 0 0 0 0 var(--valid-color-70)
    }

    80% {
        box-shadow: 0 0 0 50px rgb(0, 0, 0, 0), 0 0 0 30px rgb(0, 0, 0, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgb(0, 0, 0, 0), 0 0 0 30px rgb(0, 0, 0, 0)
    }
}

.shake {
    animation: shake 0.5s;
}

.invalid-input {
    border: 3px solid var(--error-color) !important;
    animation: animate-pulse-color-2 2s linear infinite
}

.valid-input {
    border: 3px solid mediumspringgreen !important;
    /* animation: animate-pulse-color-3 2s linear infinite */
}

.error-message {
    color: var(--error-color);
    height: 0px;
    overflow: visible;
    white-space: nowrap;
    font-size: 16px;
    position: relative;
    transform: translateY(-24px);
}

.button-message {
    color: var(--secondary-text-color);
    height: 0px;
    font-size: 14px;
    position: relative;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}



@media (orientation: portrait) {

    .main-row {
        align-content: start !important;
    }

    .step-container {
        margin-top: 3% !important;
    }

    .logo-image {
        height: min(50vw, 30vh);
        width: min(50vw, 30vh);
        font-size: min(50vw, 30vh);
    }

    .price-box {
        margin-left: 100%;
    }

    .portrait {
        width: 100%;
    }

    .figure-caption {
        max-width: 65%;
    }
}

@media (orientation: portrait) and (max-width: 576px) {

    .logo-image {
        height: min(50vw, 30vh);
        width: min(50vw, 30vh);
        font-size: min(50vw, 30vh);
    }

    ol li {
        white-space: normal;
        font-size: 18px;
        line-height: 20px;
    }

    ol li::before {
        padding: 5px;
    }

    .error-message {
        font-size: 12px;
        transform: translateY(-17px);
    }

    .error-message[data-lang="msisdn_error_3"] {
        font-size: 11px !important;
        transform: translateY(-16px);
    }

    .mb-4 {
        margin-bottom: 15px !important;
    }

    .input-container input {
        max-height: 10vh;
    }

    .button-container button {
        font-size: 1.8rem;
    }

}

@media (orientation: portrait) and (max-width: 576px) and (min-height: 768px) {
    .logo-image {
        height: min(60vw, 40vh);
        width: min(60vw, 40vh);
        font-size: min(60vw, 40vh);
    }

    .step-container {
        margin-top: 15% !important;
    }
}

@media (orientation: portrait) and (max-width: 576px) and (max-height: 992px) {

    .final-text-container {
        font-size: 24px;
    }

    .final-title {
        font-size: 32px;
    }
}

@media (orientation: portrait) and (max-width: 576px) and (max-height: 700px) {

    .container-top {
        height: 10%;
    }

    .title-container {
        height: 5%;
    }

    .main-container {
        height: 85%;
    }

    ol li {
        white-space: normal;
        font-size: 14px;
        line-height: 16px;
    }

    ol li::before {
        padding: 3px;
    }

    .instructions {
        margin-bottom: 0;
    }

    .steps {
        display: none;
    }

    .button-container {
        height: 70px;
    }

    .pricepoint {
        bottom: 50px;
    }
}

@media (orientation: landscape) {
    .main-row {
        align-content: center !important;
    }

    .logo-image {
        height: min(30vw, 60vh, 320px);
        width: min(30vw, 60vh, 320px);
        font-size: min(30vw, 60vh, 320px);
    }

    .col-auto.portrait {
        display: flex;
        flex-direction: row-reverse;
    }

    .price-box.float-end {
        margin-right: 0;
        margin-left: auto;
    }

    ol li {
        white-space: normal;
        overflow: visible;
    }

    .figure-caption {
        max-width: 60%;
    }

}

@media (orientation:landscape) and (max-width: 992px) {
    ol li {
        font-size: 1.3rem;
    }

    .input-container input,
    .input-container .text {
        font-size: 20px
    }

    .input-container input {
        padding-left: 105px;
    }

    ol li::before {
        padding: 1px 3px 2px;
    }

    .error-message[data-lang="msisdn_error_3"] {
        font-size: 10px !important;
    }
}

@media (orientation: landscape) and (max-height: 576px) {

    .container-top {
        height: 20%;
    }

    .title-container {
        height: 5%;
    }

    .main-container {
        height: 75%;
    }

    ol {
        padding-top: 8px;
        padding-left: 10px;
        margin-right: 14px;
    }

    ol li {
        white-space: normal;
        font-size: 16px;
        line-height: 18px;
    }

    ol li::before {
        padding: 3px 3px 3px;
    }

    .input-container input {
        font-size: 18px;
        padding-left: 80px;
    }

    .input-container .text {
        font-size: 18px;
        left: 50px;
    }

    .error-message {
        font-size: 12px;
        transform: translateY(-16px);
    }

    .mb-4 {
        margin-bottom: 15px !important;
    }

    .button-container {
        display: flex;
        flex-shrink: 1;
    }

    .button-container button {
        font-size: 1.4rem;
    }
}

@media (orientation: landscape) and (max-height: 400px) {

    .container-top {
        height: 10%;
    }

    .title-container {
        height: 5%;
    }

    .main-container {
        height: 85%;
    }

    .banner-top {
        height: 0px;
    }

    .instructions {
        margin-bottom: 0;
    }

    .steps {
        display: none;
    }

}

.smaller-cta {
    font-size: 10px !important;
    color: #f5f5f5b0 !important;
    font-weight: 100;
    position: absolute;
    top: 70%;
}

.text-brand {
    color: #4b2ea3 !important;
}

.text-brand:hover {
    text-decoration: underline;
}

.small a {
    font-size: 0.9rem;
    opacity: 0.85;
}
