﻿:root {
    --color-blue: #00395D;
    --side-margin: 1.5rem;
    --top-bottom-margin: 1.5rem;
    --max-width: 800px;
    --font-family: "Open Sans";
    --font-family-secondary: "Raleway";
}

* {
    box-sizing: border-box;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.full-height {
    height: 100%;
}

body,
h1,
h2,
p,
ul {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    font-size: 15px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-blue);
    color: #fff;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    /*min-height: 100vh;*/
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-secondary);
}

.quiz-container {
    display: flex;
    justify-content: center;
    width: 100%;
    /*height: 100vh;*/
    height: 100%;
}

.quiz-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1;
    padding: 10% var(--side-margin) 0;
    max-width: var(--max-width);
    width: 100%;
}

.quiz-question {
    overflow-y: auto;
    position: relative;
}

.quiz-highlight {
    font-weight: 700;
}

.quiz-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--side-margin);
    max-width: var(--max-width);
}

.quiz-start > h1 {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 2.5rem;
}

.quiz-start > p {
    margin-bottom: 40px;
}

.btn.long-btn {
    background-color: white;
    color: var(--color-blue);
    padding: 16px 40px;
    width: 100%;
}

.quiz-recommended {
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    padding: 0 var(--side-margin);
    width: 100%;
}

.text-logo {
    width: 12rem;
    margin: 1rem auto;
}

.quiz-recommended-background {
    width: 100%;
    position: absolute;
    top: 0;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-img {
    height: 40vh;
    width: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to top, transparent 2%, #4B4A4A 80%);
    -webkit-mask-image: linear-gradient(to top, transparent 2%, #4B4A4A 80%);
    opacity: .9;
}

.company-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    max-width: 300px;
}


.quiz-recommended > div:first-child h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mask-image: linear-gradient(to top, transparent 2%, #4B4A4A 80%);
    -webkit-mask-image: linear-gradient(to top, transparent 2%, #4B4A4A 80%);
}

.quiz-recommended > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 30vh;
    overflow-y: auto;
    height: 100%;
}

.quiz-recommended > div:last-child > div {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: var(--top-bottom-margin);
    overflow-y: auto;
    height: 100%;
    max-width: var(--max-width);
}

.quiz-recommended .btn.link {
    margin-top: auto;
}

.progress-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.step {
    width: 24px;
    height: 4px;
    background: rgba(248, 248, 248, 0.25);
    border-radius: 1px;
}

.step.active {
    background-color: #F8F8F8;
}

.h2-quiz {
    font-size: 1.5rem;
    font-weight: 600;
    /*margin-bottom: 1rem;*/
}

.options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option {
    background: transparent;
    border: 1px solid rgba(248, 248, 248, 0.25);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.option:hover, .option.selected {
    border: 1px solid #fff;
}

.buttons {
    display: flex;
    gap: 1rem;
    padding-bottom: 10%;
    width: 100%;
    margin-top: auto;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 50%;
    text-decoration: none;
    text-align: center;
    font-family: var(--font-family);
    font-size: .9rem;
}

.btn.prev {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn.next {
    background: white;
    color: var(--color-blue);
}

.btn.link {
    width: 100%;
    padding: 16px 0px;
    background: white;
    color: var(--color-blue);
}

.btn:disabled {
    opacity: .5;
    cursor: context-menu;
}

.quiz-contact {
    display: flex;
    flex-direction: column;
    margin-top: calc(10% + 4px + 2rem);
    align-items: center;
    z-index: 1;
    gap: 1rem;
    padding: 0 var(--side-margin);
}

.quiz-contact form > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    height: 90%;
}

.quiz-contact form div > div:not(:last-of-type) {
    display: flex;
    margin-bottom: 1rem;
    border: 1px solid #F8F8F8;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
}

.quiz-contact label {
    display: block;
    font-weight: bold;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans';
    margin-right: 1rem;
}

.quiz-contact input {
    width: 100%;
    padding: 10px;
    border: none;
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
    background-color: transparent;
}

.quiz-contact input:focus-visible {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    color: #fff;
    border-radius: 4px;
    background-color: transparent;
}

.quiz-contact-btn {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quiz-terms {
    display: flex;
    align-items: flex-start;
}

.quiz-terms input {
    margin-top: 10px;
    width: 1rem;
}

.text-scroll {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 2rem;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.text-scroll ul {
    padding: 0 1.25rem;
}

.snow {
    width: 100%;
    height: 100%;
    /*    width: 100vw;
    height: 100vh;*/
    position: absolute;
    opacity: .2;
    z-index: -1;
    overflow: visible;
    object-fit: cover;
}

.snow-static {
    background-image: url("/imagesTemp/christmasQuizImages/snowfall-static.png");
    width: 100%;
    height: 100%;
    background-position: 0px 0px;
    position: absolute;
    overflow: visible;
    background-repeat: repeat-x;
}

.quiz-background-image {
    width: 100%;
    height: 100%;
    background-position: center;
    position: absolute;
    overflow: visible;
    background-repeat: no-repeat;
    z-index: -2;
    background-size: cover;
    opacity: 0.1;
}

/* #region - forms */
form {
    margin: 2rem 0;
}

.umbraco-forms-fieldset {
    padding: 0;
    border: none;
}

.umbraco-forms-field-wrapper {
    flex: 1;
}

.quiz-contact .dataconsent label {
    font-weight: normal;
    margin: 0;
    font-size: .8rem;
}

.quiz-contact .dataconsent .umbraco-forms-field-wrapper {
    display: flex;
    gap: 1rem;
}

.dataconsent input[type="checkbox"] {
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
    padding: initial;
    width: 2rem;
    height: 2rem;
    border: 1px solid #F8F8F8;
    background-color: transparent;
    flex-shrink: 0;
    position: relative;
    margin: 0;
}

.dataconsent input[type="checkbox"]:checked::before {
    content: "\2713";
    color: white;
    -webkit-text-fill-color: rgba(255, 255, 255, 1);
    -webkit-opacity: 1;
    font-size: 1.5rem;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.umbraco-forms-navigation {
    display: none;
}

.umbraco-forms-field.hidden {
    display: none !important;
}

.error-msg {
    color: red;
    margin-top: 1rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-blue);
    border-radius: 50%;
    width: 1.3rem;
    height: 1.3rem;
    animation: spin 2s linear infinite;
}

.btn.next.is-loading {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* #endregion - forms */
@keyframes animatedBackground {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0px 300px;
    }
}

.quiz-header {
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
}

.terms-link {
    margin-bottom: 40px;
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
    align-self: flex-start;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000000;
}

.modal-content {
    position: relative;
    max-width: 700px;
    width: 100%;
    background: #ffffff;
    color: var(--color-blue);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-family-secondary);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-blue);
}

@media (min-width: 768px) {
    :root {
        --side-margin: 4rem;
        --top-bottom-margin: 4rem;
    }

    html {
        font-size: 16px;
    }

    .quiz-recommended > div:last-child > div {
        height: 100%;
    }

    .quiz-start {
        align-items: flex-start;
    }

    .buttons {
        width: 50%;
    }

    .btn {
        width: unset;
        white-space: nowrap;
    }

    .btn.next {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .btn.long-btn {
        width: 35%;
    }

    .h2-quiz, h2 {
        font-size: 2rem;
        margin-top: 2rem;
    }

    .quiz-contact {
        max-width: var(--max-width);
        align-items: flex-start;
    }

    .quiz-contact .dataconsent label {
        font-size: 1rem;
    }

    .quiz-contact form div > div:not(:last-of-type) {
        margin-bottom: 2rem;
    }

    .text-logo {
        margin: 2rem auto;
    }
}

@media (min-width: 992px) {
    .quiz-recommended {
        flex-direction: row;
        padding: 0;
    }

    .quiz-header {
        display: block;
    }

    .quiz-recommended-background {
        width: 50%;
        position: relative;
        top: unset;
        height: 100%;
    }

    .company-logo {
        margin-bottom: 0;
        top: 50%;
    }

    .quiz-recommended > div:last-child {
        display: flex;
        align-items: center;
        height: 100%;
        gap: 1rem;
        justify-content: center;
        width: 70%;
        padding: 5rem 2rem 2rem;
        margin-top: 0;
        height: fit-content;
    }

    .text-scroll {
        overflow-y: unset;
        -webkit-mask-image: unset;
        mask-image: unset;
        padding-bottom: 0;
    }

    .bg-img {
        height: 100%;
    }

    .quiz-recommended .btn.link {
        margin-top: 2rem;
        width: fit-content;
        padding: .8rem 4rem;
    }

    .text-logo {
        display: none;
    }

    .quiz-recommended > div:last-child > div {
        padding-bottom: 0;
    }
}

@media (min-width: 1400px) {
    .quiz-section {
        padding: 4% var(--side-margin) 0;
    }

    .quiz-contact {
        margin-top: calc(2% + 4px + 2rem);
    }

    .h2-quiz, h2 {
        margin-bottom: 0;
    }
}
