:root {
    --dark-red: #bd302c;
    --grey: #808080;
    --dark-grey: #243746;
    --font-regular: "Inter-Regular";
    --font-semi-bold: "Inter-SemiBold";
    --font-semi-bold-italic: "Inter-SemiBoldItalic";
}

html,
body {
    overflow-x: hidden;
    font-family: var(--font-regular);
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
    position: relative;
}

/* start page */
.header__mainImg {
    margin-top: -5%;
}

.header__logo {
    position: absolute;
    right: 2%;
    top: 4%;
    width: 5rem;
    max-width: 13%;
}

.header__txt {
    position: absolute;
    left: 50%;
    top: 29%;
    z-index: 2;
    width: 27%;
}

.user-form__btn,
.submit-btn {
    cursor: pointer;
}

.user-form__input {
    border: 1px solid var(--dark-red);
    border-radius: 0.5rem;
}

.user-form__input::placeholder {
    color: var(--grey);
    font-family: var(--font-semi-bold);

}

.form-control:focus {
    box-shadow: 0 0 0 .25rem rgb(181 46 41 / 23%);
    border-color: #bd302c7a;
}

.ref {
    font-size: 0.6rem;
}

.invalid-feedback {
    font-size: 0.7rem;
}

.ref__code {
    padding-left: 2rem;
}

.ref a {
    text-decoration: none !important;
    color: black !important;
}
.qr__img{
    max-width: 6rem;
}
.qr__txt{
    max-width: 12rem;
}
.submit-btn img {
    width: 100%;
}
/* questions */
.questions__header {
    font-family: var(--font-semi-bold-italic), sans-serif;
    color: var(--dark-red);
    font-weight: 600;
    font-style: italic;

}

.questions__main {
    font-family: var(--font-semi-bold);
    color: var(--dark-grey);
}

.form-check-input:checked {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
}

.form-check-input:focus {
    box-shadow: 0 0 0 .25rem rgb(181 46 41 / 23%);
    border-color: #bd302c7a;
}

.submit-btn {
    max-width: 15rem;
}

.questions-wrap,
.questions {
    min-height: 100%;
}

.questions__logo {
    width: 5rem;
    max-width: 16%;
}

.questions {
    padding-right: 20rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg {
    background-image: url('../images/q-bg-05.png');
    background-position: right;
    background-size: contain;
    background-repeat: no-repeat;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    z-index: -1;
}


/* thank you  */

.thank-you {
    background-image: url('../images/bg-thank-u-03.png');
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.thank-you__img {
    width: 28%;
}

.thank-you__logo {
    position: absolute;
    right: 5%;
    bottom: 10%;
    width: 13%;

}

.thank-you__rochelogo {
    position: absolute;
    width: 5rem;
    max-width: 16%;
    right: 1%;
    top: 2%;
}

/* shared styles  */
.questions-wrap,
.thank-you {
    display: none;
}

.header__mainImg--lg {
    display: inline;
}

.header__mainImg--sm {
    display: none;
}

@media (max-width:768px) and (orientation:portrait) {
    .header__txt {
        position: absolute;
        left: 47%;
        top: 29%;
        z-index: 2;
        width: 34%;
    }

    .header__mainImg {
        margin-top: 0%;
    }

    .qr {
        padding: 0 2rem;
    }

    html {
        font-size: 11px !important;
    }

}

@media (max-width:1024px) and (orientation: portrait) {

    html {
        font-size: 12px;
    }

    .thank-you__img {
        width: 55%;
    }

    .thank-you__logo {
        width: 23%;

    }

    .header__mainImg--lg {
        display: none;
    }

    .header__mainImg--sm {
        display: inline;
    }

    .header__txt {
        position: absolute;
        left: 50%;
        top: 3%;
        z-index: 2;
        width: 26%;
        transform: translateX(-50%);
    }

    .questions {
        padding-left: 1rem;
        padding-right: 16rem;
        font-size: 0.8rem;
    }

    .bg {
        background-image: url(../images/img-03.png);
        background-position: right;
        background-size: contain;
        /* margin-right: -4%; */
    }

    .questions__logo {
        max-width: 11%;
    }

    .submit-btn {
        max-width: 10rem;
    }

}

@media (max-width:1024px) and (orientation: landscape) {

    .header__logo {
        right: 1.5%;
        top: 4%;
        max-width: 7%;
    }

    html {
        font-size: 12px;
    }
}



@media (max-width: 768px) and (orientation:landscape) {
    .questions {
        padding-left: 1rem;
        padding-right: 15rem;
        font-size: 0.8rem;
    }

    .bg {
        background-image: url(../images/img-03.png);
        background-position: right;
        background-size: contain;
        /* margin-right: -1%; */
    }

    .questions__logo {
        max-width: 11%;
    }

    .submit-btn {
        max-width: 10rem;
    }
}

/* loader section*/
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #fff;
    z-index: 1001;
    animation: spin 2s linear infinite;
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--dark-red);
    animation: spin 3s linear infinite;
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    right: 15px;
    left: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #fbd115;
    animation: spin 1.5s linear infinite;
}

#loader-wrapper .loader-section {
    position: fixed;
    top: 0;
    width: 51%;
    height: 100%;
    z-index: 1000;
    transform: translateX(0);
}

#loader-wrapper .loader-section.section-left {
    left: 0;
}

#loader-wrapper .loader-section.section-right {
    right: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.loaded #loader-wrapper .loader-section.section-left {
    transform: translateX(-100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader-wrapper .loader-section.section-right {
    transform: translateX(100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.loaded #loader-wrapper {
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s 1s ease-out;
    display: none;
}