/* General body and container styling for a dark theme and a column layout */
body {
    background-color: #172b44;
    color: #fff;
    font-family: 'Arial', sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Top section always at the top */
.top-section {
    padding: 20px;
    padding-bottom: 0;
    text-align: center; /* Center the logo and progress bar */
    position: relative;
}

.language-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.language-btn {
    background: transparent;
    border: none;
    color: #fff;
}

    .language-btn:focus,
    .language-btn:hover {
        background: transparent;
        color: #fff;
        box-shadow: none;
    }

.language-select:focus {
    box-shadow: none;
}

/* Main content container, vertically centered */
.container {
    max-width: 600px;
    flex-grow: 1; /* Pushes the bottom section down */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers the content vertically */
    margin: 0 auto;
    padding: 20px;
}

/* Bottom section always at the bottom */
.bottom-section {
    padding: 20px;
    font-size: 0.7rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    color: #d2d7dd;
    line-height: 1.5;
}

    .bottom-section a {
        color: #d2d7dd;
        text-decoration: none;
    }

        .bottom-section a:hover {
            text-decoration: underline;
        }

/* Quiz step and button styling */
.quiz-step {
    display: none;
}

    .quiz-step.active {
        display: block;
    }

.btn-custom {
    background-color: #e6c47c;
    border: none;
    color: #0b2344;
    font-weight: bold;
    padding: 15px;
    margin: 10px 0;
    width: 100%;
    border-radius: 8px;
    height: 56px;
    line-height: 26px;
    transition: background-color 0.3s ease;
}

    .btn-custom:hover {
        background-color: #d4b169;
        color: #fff;
    }

/* Form control styling */
.form-control-lg {
    height: 56px;
    margin: 10px 0;
    border-radius: 8px;
}

/* This container holds both messages and has a fixed height */
#email-message-container {
    min-height: 24px; /* Adjust this value as needed to fit one line of text */
    margin-bottom: 0.5rem;
    position: relative; /* Needed to position the inner elements absolutely */
}

#email-message, #email-validation-message {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    transition: opacity 0.3s ease;
    position: absolute; /* Overlap the elements */
    width: 100%;
    top: 0;
    left: 0;
}

.email-message-visible {
    opacity: 1;
    visibility: visible;
}

.email-message-hidden {
    opacity: 0;
    visibility: hidden;
}

.validation-message {
    color: #dc3545;
    /* The text-align is inherited from the parent body element (text-align: center) */
}

/* Preloader styling */
#preloader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    display: none;
}

    #preloader.active {
        display: block;
    }

.preloader-text {
    margin-top: 20px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
}

.lds-spinner {
    color: official;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-spinner div {
        transform-origin: 40px 40px;
        animation: lds-spinner 1.2s linear infinite;
    }

        .lds-spinner div:after {
            content: " ";
            display: block;
            position: absolute;
            top: 3px;
            left: 37px;
            width: 6px;
            height: 18px;
            border-radius: 20%;
            background: #fff;
        }

        .lds-spinner div:nth-child(1) {
            transform: rotate(0deg);
            animation-delay: -1.1s;
        }

        .lds-spinner div:nth-child(2) {
            transform: rotate(30deg);
            animation-delay: -1s;
        }

        .lds-spinner div:nth-child(3) {
            transform: rotate(60deg);
            animation-delay: -0.9s;
        }

        .lds-spinner div:nth-child(4) {
            transform: rotate(90deg);
            animation-delay: -0.8s;
        }

        .lds-spinner div:nth-child(5) {
            transform: rotate(120deg);
            animation-delay: -0.7s;
        }

        .lds-spinner div:nth-child(6) {
            transform: rotate(150deg);
            animation-delay: -0.6s;
        }

        .lds-spinner div:nth-child(7) {
            transform: rotate(180deg);
            animation-delay: -0.5s;
        }

        .lds-spinner div:nth-child(8) {
            transform: rotate(210deg);
            animation-delay: -0.4s;
        }

        .lds-spinner div:nth-child(9) {
            transform: rotate(240deg);
            animation-delay: -0.3s;
        }

        .lds-spinner div:nth-child(10) {
            transform: rotate(270deg);
            animation-delay: -0.2s;
        }

        .lds-spinner div:nth-child(11) {
            transform: rotate(300deg);
            animation-delay: -0.1s;
        }

        .lds-spinner div:nth-child(12) {
            transform: rotate(330deg);
            animation-delay: 0s;
        }

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.error-message {
    color: #dc3545;
}

/* Progress bar styling */
#progressWrapper {
    height: 8px;
    max-width: 1200px;
    margin: 40px auto 1rem auto !important; /* Center with margin */
}

.progress-bar-custom {
    background-image: linear-gradient(to right, #4CAF50, #28a745);
    transition: width 0.4s ease-in-out;
}

.logo {
    max-width: 300px;
    max-height: 70px;
    ;
}

#logo-wrapper {
    display: none;
}


h1 {
    font-size: 28px;
    font-weight: 600;
    padding-bottom: 15px;
}



h3, h4 {
    font-size: 28px;
    font-weight: 600;
    padding-bottom: 15px;
}

.trust {
    font-size: 14px;
    font-weight: 300;
    
}


@media screen and (min-width: 1200px) {
    h1{
        font-size: 40px!important; /* adjust to whatever larger size you want */
    }

    h3, h4 {
        font-size: 34px; /* adjust to whatever larger size you want */
    }
}

small {
    font-size: 0.7rem;
    line-height: 1.2;
}
