/* 1:1 Pixel-Perfect Recreation of Competitor Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 17px;
    font-weight: 400;
    overflow-x: hidden;
    height: 100%;
    color: #000;
    background-color: #fff;
}

body img {
    width: 100%;
    display: block;
}

/* Bootstrap Container Sizing */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 570px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }

    body {
        font-size: 21px;
    }

    /* Desktop text scaling */
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1070px;
    }
}

/* Main Content & Hero Background Position */
body .main {
    background-color: #fff;
    padding-bottom: 1.5em;
    position: relative;
    min-height: 100vh;
}

/* Background Image styling exactly like competitor ::after */
body .main:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../images/human-bg.png);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    height: 60%;
    z-index: 1;
}

@media only screen and (min-width: 992px) {
    body .main:after {
        height: 60%;
    }
}

@media only screen and (min-width: 1200px) {
    body .main:after {
        height: 65%;
    }
}

/* Global Header Sizing & Typography */
body .main .header {
    text-align: center;
    padding: 1.5em 1em;
    position: relative;
    z-index: 99;
}

body .main .header__title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

@media only screen and (min-width: 768px) {
    body .main .header__title {
        font-size: 2em;
        /* Exact competitor sizing */
    }
}

@media only screen and (max-width: 767px) {
    .desktop-br {
        display: none;
    }
}

body .main .header__title span {
    color: #9e172f;
    /* Exact dark red */
    text-decoration: underline;
}

body .main .header__subtitle {
    margin-top: .8em;
    font-size: 1em;
    line-height: 1.5;
}

/* Quiz Box Wrapper */
body .main .box-wrapper {
    position: relative;
    padding: 1em;
    box-shadow: 0 15px 40px 0 rgba(21, 66, 114, .08);
    text-align: center;
    z-index: 99;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
}

@media only screen and (min-width: 768px) {
    body .main .box-wrapper {
        padding: 1.3em;
    }
}

/* Stepper Progress Bar */
body .main .box-wrapper .progress-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 1rem auto 1.5rem;
    max-width: 90%;
}

body .main .box-wrapper .progress-bar .percent-line {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-bottom: 1px solid #d1e0f4;
    z-index: 1;
}

body .main .box-wrapper .progress-bar .percent-line__fill {
    position: absolute;
    left: 0;
    width: 0%;
    border-bottom: 1px solid #2e67b2;
    z-index: 2;
    transition: width 0.6s ease;
}

body .main .box-wrapper .progress-bar .step {
    width: 1em;
    height: 1em;
    background-color: #fff;
    border: 2px solid #2e67b2;
    border-radius: 50%;
    transition: 0.6s;
    z-index: 3;
}

body .main .box-wrapper .progress-bar .step.selected {
    background-color: #2e67b2;
    box-shadow: inset 0 0 0 2px #fff;
}

body .main .box-wrapper .progress-bar .step.completed {
    border: 2px solid #2e67b2;
    background: #2e67b2;
    box-shadow: none;
}

/* Box Content (Questions & Result Screens) */
body .main .box-wrapper .box {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transform: translateX(-150%);
    transition: transform .3s ease-out, opacity .3s ease-out;
}

body .main .box-wrapper .box.active {
    height: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform .25s ease-in, opacity .25s ease-in;
}

body .main .box-wrapper .box__heading {
    line-height: 1.4;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 2rem;
    color: #000;
}

body .main .box-wrapper .box p {
    line-height: 1.5;
    margin-bottom: 1em;
}

/* Checkbox Cards Grid */
body .main .box-wrapper .box .checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

body .main .box-wrapper .box .checkbox-wrapper .checkbox {
    flex: 0 0 22%;
    min-width: 130px;
}

@media only screen and (min-width: 380px) {
    body .main .box-wrapper .box .checkbox-wrapper .checkbox {
        min-width: 150px;
    }
}

body .main .box-wrapper .box .checkbox-wrapper .checkbox input {
    display: none;
}

body .main .box-wrapper .box .checkbox-wrapper .checkbox__label {
    background-color: #fff;
    border: 1px solid #d5e0ed;
    border-radius: 10px;
    box-shadow: 0 7px 19px 0 rgba(21, 66, 114, .02);
    position: relative;
    height: 220px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    cursor: pointer;
    transition: all 0.2s ease;
}

body .main .box-wrapper .box .checkbox-wrapper .checkbox__label:hover {
    border-color: #bdc3c7;
}

body .main .box-wrapper .box .checkbox-wrapper .checkbox input:checked+label {
    border-color: #2c66a5;
}

/* Checked Mark (Exact blue circle check at top) */
body .main .box-wrapper .box .checkbox-wrapper .checkbox input:checked+label:before {
    content: '✓';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c66a5;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

body .main .box-wrapper .box .checkbox-wrapper .checkbox__label .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    overflow: hidden;
}

body .main .box-wrapper .box .checkbox-wrapper .checkbox__label .icon img {
    width: 115px;
    height: 115px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

body .main .box-wrapper .box .checkbox-wrapper .checkbox__label:hover .icon img {
    transform: scale(1.05);
}

body .main .box-wrapper .box .checkbox-wrapper .checkbox__label .title {
    text-transform: capitalize;
    display: block;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* Force consistent height for titles under emojis so they align in a straight line on mobile */
/* Because this uses .icon + .title, it WILL NOT affect <img> or <svg> cards! */
@media (max-width: 767px) {
    body .main .box-wrapper .box .checkbox-wrapper .checkbox__label .icon+.title {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Button Sizing & Colors */
body .btn {
    text-transform: uppercase;
    border-radius: 10px;
    background-color: #2c66a5;
    color: #fff;
    border: none;
    outline: 0;
    font-weight: 700;
    font-size: .7em;
    padding: 1rem 2.5rem;
    cursor: pointer;
    transition: .25s ease-in;
    text-decoration: none;
    margin-top: 2rem;
}

body .btn:not(.btn-next) {
    display: inline-block;
    margin-top: 1rem;
}

body .btn:hover {
    background-color: #27578d;
}

body .btn-next {
    display: inline-block;
}

/* Error message styling */
body .main .box-wrapper .error-msg {
    font-size: 14px;
    font-weight: 600;
    margin-top: .8rem;
    color: tomato;
    display: none;
}

body .main .box-wrapper .error-msg.active {
    display: block;
}

/* Final congrats box styles */
body .main.final-box {
    padding-top: 2em;
}

body .main.final-box .header {
    display: none;
}

body .main.final-box .box-wrapper {
    padding: 0;
}

body .main.final-box .box-wrapper .btn.btn-next {
    display: none;
}

body .main.final-box .box-wrapper .box .box__heading {
    background-color: #2c66a5;
    color: #fff;
    margin-bottom: 0;
    padding: 5px;
}

body .main.final-box .box-wrapper .box__padding {
    padding: 1em;
}

body .main.final-box .box-wrapper .box .top-img {
    max-width: 90px;
    margin: 0 auto 1.5rem;
}

@media only screen and (min-width: 768px) {
    body .main.final-box .box-wrapper .box__padding {
        padding: 2em 1.3em;
    }

    body .main.final-box .box-wrapper .box .final-content {
        text-align: center;
        max-width: 75%;
        margin: 0 auto;
    }
}

/* Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c66a5;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 40px auto 20px;
}

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

/* Premium CSS Video Player Preview */
.video-preview {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: radial-gradient(circle, #1a2536 0%, #0d131c 100%);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    cursor: pointer;
    margin: 1.5rem auto;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 19, 28, 0.8), rgba(13, 19, 28, 0.9)),
                repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px),
                radial-gradient(circle at center, rgba(44, 102, 165, 0.4) 0%, transparent 70%);
}



.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.video-preview:hover .video-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.play-button-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-button {
    width: 70px;
    height: 70px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: transform 0.3s, background 0.3s;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

@media only screen and (min-width: 768px) {
    .play-button-wrapper {
        width: 120px;
        height: 120px;
    }
    .play-button {
        width: 100px;
        height: 100px;
    }
    .play-button::after {
        border-width: 18px 0 18px 30px;
        margin-left: 8px;
    }
}

.video-preview:hover .play-button {
    transform: scale(1.1);
    background: #c0392b;
}

.video-banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    text-align: left;
}

.live-tag {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.video-banner-text h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Bootstrap Spacing Utility Classes */
.pb-0 {
    padding-bottom: 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: .25em !important;
}

.mb-4 {
    margin-bottom: 1.5em !important;
}

.mt-3 {
    margin-top: 1em !important;
}
@media (max-width: 768px) {
    body .main:after {
        background-size: 200% 100%;
        background-position: left center;
    }
}
