*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

@font-face {
    font-family: 'sofia-pro';
    src: url('../fonts/Sofia-Pro-UltraLight.otf') format('opentype');
    font-weight: 200;
}
@font-face {
    font-family: 'sofia-pro';
    src: url('../fonts/Sofia-Pro-ExtraLight.otf') format('opentype');
    font-weight: 250;
}
@font-face {
    font-family: 'sofia-pro';
    src: url('../fonts/Sofia-Pro-Light.otf') format('opentype');
    font-weight: 300;
}
@font-face {
    font-family: 'sofia-pro';
    src: url('../fonts/Sofia-Pro-Regular.otf') format('opentype');
    font-weight: 400;
}
@font-face {
    font-family: 'sofia-pro';
    src: url('../fonts/Sofia-Pro-Medium.otf') format('opentype');
    font-weight: 500;
}
@font-face {
    font-family: 'sofia-pro';
    src: url('../fonts/Sofia-Pro-Semi-Bold.otf') format('opentype');
    font-weight: 600;
}
@font-face {
    font-family: 'sofia-pro';
    src: url('../fonts/Sofia-Pro-Bold.otf') format('opentype');
    font-weight: 700;
}
@font-face {
    font-family: 'sofia-pro';
    src: url('../fonts/Sofia-Pro-Black.otf') format('opentype');
    font-weight: 900;
}

@font-face {
    font-family: 'Ivar-Headline';
    src: url('../fonts/IvarHeadline-Regular.woff') format('woff'),
    url('../fonts/IvarHeadline-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Ivar-Headline';
    src: url('../fonts/IvarHeadline-Italic.woff') format('woff'),
    url('../fonts/IvarHeadline-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}
:root{
    --color-foreground: 44, 43, 43;
    --color-white: #fff;
    --color-lt-yellow: #FCF8F3;
    --color-brand-blue: #0076A0;
    --color-black: #000;
    --color-red:#ff0000;
    --font-body-family: 'sofia-pro', sans-serif;
    --font-heading-family: 'Ivar-Headline', serif;
}
body {
    font-family: Arial, sans-serif;
    background-color: #FCF8F3;
    color: rgba(var(--color-foreground));
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body-family);
    /* min-height: 100vh; */
    margin: 0;
}
#root{
    width: 100%;
}
button{
    cursor: pointer;
}
strong{
    font-weight: bold;
}
a{
    color: inherit;
}
.quiz-ques-sec{
    padding: 77px 0 159px;
}
.container {
    max-width: 800px;
    width: 100%;
    margin: auto;
    padding: 0 20px;
    text-align: center;
}

.symptom-group {
    margin-bottom: 55px;
}

.navigation {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    margin: 2rem auto 0;
    padding: 0 1rem;
    max-width: 630px;
}

.navigation .prev-btn, .navigation .skip-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: rgba(var(--color-foreground));
    text-decoration: underline;
    text-align: left;
}

.navigation .next-btn {
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    border: none;
    padding: 17px 35px;
    border-radius: 0;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    text-align: right;
}

.navigation .dots {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.navigation .dot {
    width: 10px;
    height: 10px;
    background-color: rgba(var(--color-foreground), .3);
    border-radius: 50%;
}

.navigation .dot.active {
    background-color: rgba(var(--color-foreground));
}

/* .question-wrapper{
    display: none;
} */

.questions{
    padding-top: 77px;
    padding-bottom: 150px;
    background-color: var(--color-lt-yellow);

}
.question-wrapper.active{
    display: block;
}
.question-wrapper .question{
    font-size: 42px;
    line-height: normal;
    font-family: var(--font-heading-family);
    font-weight: normal;
    margin-bottom: 52px;
}
.symptom-group h2{
    font-size: 32px;
    font-weight: normal;
    font-style: italic;
    font-family: var(--font-heading-family);
    margin-bottom: 16px;
}
.symptom-group h2 .required, h1.question .required{
    color: var(--color-red);
    margin-left: 4px;
}
.symptom-group .radio-buttons {
    display: flex;
    justify-content: center;
    gap: 36px;
}
.symptom-group input[type="radio"],
.symptom-group input[type="checkbox"] {
    display: none;
}
.symptom-group input[type="checkbox"]:checked + label,
.symptom-group input[type="radio"]:checked + label {
    background-color: rgba(var(--color-foreground));
    color: var(--color-white);
    border-color: rgba(var(--color-foreground));
}
.symptom-group input[type="checkbox"][disabled] + label,
.symptom-group input[type="radio"][disabled] + label {
   opacity: 0.3;
}
.symptom-group .radio-buttons label{
    border: 1px solid rgba(var(--color-foreground));
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 9px 30px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.top-sec-wrapper{
    background-color: #FCF8F3;
    padding: 64px 0 50px;
}
.top-section{
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    max-width: 1440px;
    margin: auto;
}
.score-section, .explanation-section-collapsible-tabs{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--color-black);
    padding: 0 10%;
}
.score-section .title{
    font-size: 42px;
    font-weight: normal;
    font-family: var(--font-heading-family);
    line-height: normal;
    margin-bottom: 22px;
}
.score-box{
    border-radius: 30px;
    background-color: #E8E5E0;
    border: 1px solid rgba(var(--color-foreground));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 162px;
    height: 102px;
    margin-bottom: 31px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.score-box .score{
    font-size: 72px;
    font-family: var(--font-heading-family);
    line-height: normal;
    font-weight: normal;
    font-style: italic;
    margin-bottom: -10px;
}
.score-section .tip{
    font-size: 14px;
    line-height: normal;
    font-weight: 300;
}
.score-section .tip a, body a{
    text-decoration: underline;
}
.score-section .primary-btn,
.explanation-section .primary-btn{
    background-color: var(--color-brand-blue);
    padding: 17px 35px;
    font-size: 18px;
    line-height: normal;
    font-weight: normal;
    color: var(--color-white);
    border: 1px solid var(--color-brand-blue);
    margin-top: 20px;
}
.score-section .secondary-btn{
    font-size: 18px;
    line-height: normal;
    font-weight: 300;
    text-decoration: underline;
    border: none;
    margin-top: 14px;
}
.explanation-section{
    width: 50%;
    text-align: left;
    align-self: center;
    padding: 0;
    position: relative;
}
.explanation-section .modal__close{
    width: 18px;
    height: 18px;
    position: absolute;
    right: 10px;
    top: 50%;
    /*display: none;*/
    transform: translate(0px, -50%);
}
.explanation-section .modal__close::before, 
.explanation-section .modal__close::after{
    content: '';
    width: 100%;
    height: 1px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* transform: rotate(45deg) translate(1px, 0); */
    background-color: rgba(var(--color-foreground));
    display: block;
}
.explanation-section .modal__close::after{
    /* transform: rotate(-45deg) translate(0px, 0px); */
    width: 1px;
    height: 100%;
}
.explanation-section:not(.disabled) .modal__close{
    transform: translate(0px, -50%) rotate(45deg);
}
.explanation-section.disabled .modal__close::before{
    /* transform:rotate(90deg) translate(1px, 0); */
}
.explanation-section.disabled .modal__close::after{
    /* transform:rotate(0deg) translate(0px, 0px) */
}
.explanation-section .subtitle{
    font-size: 32px;
    font-family: var(--font-heading-family);
    line-height: normal;
    font-style: italic;
    font-weight: normal;
    margin-bottom: 0;
}
.explanation-section .description{
    font-size: 16px;
    line-height: 1.125;
    font-weight: 300;
    padding: 17px 5% 7px 7px;
}
.explanation-section .description p{
    margin-bottom: 18px;
}
.explanation-section .description p:last-of-type{
    margin-bottom: 0;
}
.explanation-section .description p a{
    cursor: pointer;
}

.bottom-sec-wrapper{
    background-color: var(--color-white);
    padding-bottom: 10px;
}
.bottom-sec-wrapper .bottom-section{
    max-width: 100%;
    margin: auto;
    padding: 48px 27px 56px;
}
.bottom-sec-wrapper .control-title{
    font-size: 42px;
    font-family: var(--font-heading-family);
    line-height: normal;
    color: var(--color-brand-blue);
    font-weight: normal;
    margin-bottom: 43px;
    text-align: center;
}
.action-cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.action-cards .card{
    width: calc(33% - 10px);
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    padding: 16px 23px 120px;
    text-align: center;
    position: relative;
    min-height: 620px;
}
.action-cards .card .card-image{
    max-width: 395px;
    margin: 0 auto 26px;
}
.action-cards .card .card-title{
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1.8px;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.action-cards .card .card-subtitle{
    font-size: 32px;
    font-family: var(--font-heading-family);
    font-weight: normal;
    line-height: normal;
    margin-bottom: 20px;
}
.action-cards .card .card-description{
    font-size: 16px;
    line-height: 1.25;
    font-weight: 300;
}
.action-cards .card .card-description a{
    text-decoration: underline;
    color: inherit;
}
.action-cards .card .card-btn{
    background-color: var(--color-white);
    padding: 16px 35px;
    font-size: 18px;
    line-height: normal;
    font-weight: normal;
    border: 1px solid var(--color-white);
    text-decoration: none;
    color: var(--color-brand-blue);
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: max-content;
    bottom: 39px;
}
.tooltop-wrapper{
    position: absolute;
    border: 1px solid rgba(var(--color-foreground));
    background-color: #FCF8F3;
    padding: 19px 47px 24px 24px;
}
.tooltop-wrapper p{
    font-size: 13px;
    font-weight: normal;
    line-height: normal;
}

.selection-limit {
    color: rgba(var(--color-foreground), 0.7);
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 300;
} 
p.error-message {
    color: var(--color-red);
    font-style: italic;
    font-size: 14px;
    font-weight: 300;
}

.next-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
}

/* .skip-btn {
    background: none;
    border: 1px solid rgba(var(--color-foreground), 0.2);
    color: rgba(var(--color-foreground), 0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background: rgba(var(--color-foreground), 0.05);
    color: rgba(var(--color-foreground), 0.9);
} */

.mobile-dropdown {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    border: 1px solid rgba(var(--color-foreground));
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 500;
    background-color: transparent;
    color: rgba(var(--color-foreground));
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.mobile-dropdown:focus {
    outline: none;
    border-color: var(--color-brand-blue);
}

.mobile-dropdown option {
    background-color: var(--color-white);
    color: rgba(var(--color-foreground));
    padding: 10px;
}

.custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
}

.custom-dropdown .dropdown-header {
    width: 100%;
    padding: 9px 19px;
    border: 1px solid rgba(var(--color-foreground));
    /* border-radius: 50px; */
    font-size: 16px;
    letter-spacing: 1.2px;
    /* text-transform: uppercase; */
    font-weight: 500;
    background-color: transparent;
    color: rgba(var(--color-foreground));
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}

.custom-dropdown .dropdown-header:hover {
    border-color: var(--color-brand-blue);
}

.custom-dropdown .dropdown-header.open {
    border-color: var(--color-brand-blue);
}

.custom-dropdown .dropdown-arrow {
    width: 25px;
    height: 17px;
    transition: transform 0.3s;
    transform: rotate(180deg);
}

.custom-dropdown .dropdown-arrow.open {
    transform: rotate(0deg);
}

.custom-dropdown .dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* margin-top: 5px; */
    background-color: var(--color-lt-yellow);
    border: 1px solid rgba(var(--color-foreground));
    /* border-radius: 25px; */
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-dropdown .dropdown-option {
    padding: 12px 20px;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(var(--color-foreground));
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-dropdown .dropdown-option:hover {
    background-color: rgba(var(--color-foreground), 0.1);
}

.custom-dropdown .dropdown-option.selected {
    background-color: rgba(var(--color-foreground));
    color: var(--color-white);
}

.quiz-desc-wrapper{
    position: relative;
}
.quiz-desc-wrapper .modal{
    position: absolute;
    right: 0;
    bottom: 100%;
    display: none;
}
.quiz-desc-wrapper .modal.active{
    display: block;
}
.quiz-desc-wrapper .modal__body p{
    font-size: 13px;
    font-weight: normal;
    line-height: normal;
    text-align: left;
    color: rgba(var(--color-foreground));
}
.quiz-desc-wrapper .modal__content{
    position: relative;
    border: 1px solid rgba(var(--color-foreground));
    background-color: var(--color-lt-yellow);
    padding: 19px 47px 24px 24px;
    max-width: 100%;
    width: 277px;
    box-shadow: 0px 4px 61px 0px rgba(0, 0, 0, 0.25);
}
.quiz-desc-wrapper .modal__close{
    width: 15px;
    height: 15px;
    position: absolute;
    right: 11px;
    top: 14px;
}
.quiz-desc-wrapper .modal__close::before,
.quiz-desc-wrapper .modal__close::after{
    content: '';
    width: 100%;
    height: 1px;
    transform: rotate(45deg) translate(1px, 0);
    background-color: rgba(var(--color-foreground));
    display: block;
}
.quiz-desc-wrapper .modal__close::after{
    transform: rotate(-45deg) translate(0px, 0px);
}
.pdf-download-message{
    margin-top: 8px;
}
.pdf-download-message p{
    font-size: 12px;
    font-style: italic;
    font-weight: 300;
}

.intro-sec{
    padding: 50px 20px;
}
.intro-sec h1,
.intro-sec h2,
.intro-sec h3,
.intro-sec h4,
.intro-sec h5{
    font-family: var(--font-heading-family);
}
/*
Added by Jay
*/
.explanation-section-collapsible-tabs{
    padding-left:3%;
    padding-right:5%;
}
.explanation-section-collapsible-tabs .explanation-section{
    width: 100%;
    border-bottom: 1px solid;
    padding: 16px 0;
}
.explanation-section-collapsible-tabs .accordian-head{
    cursor: pointer;
    position: relative;
    padding-right: 25px;
}
.explanation-section-collapsible-tabs .explanation-section:first-of-type{
    padding-top: 0;
}
/*.explanation-section-collapsible-tabs .explanation-section:first-of-type .modal__close{
    top: 8px;
}*/
.explanation-section-collapsible-tabs .explanation-section:not(.active) .description{
    display: none;
}
.data-delete-container{
    max-width: 710px;
    padding: 0 20px;
    margin: 17px auto 40px;
    text-align: center;
    line-height: 1.25;
}
.actions-container.d-block-sm{
    display: none;
}
@media (max-width: 1024px){
    .action-cards .card{
        padding: 16px 30px 120px;
    }
    .score-section{
        padding: 0 5%;
    }
    .explanation-section{
        padding: 0 5%;
    }
    .bottom-sec-wrapper .bottom-section{
        padding: 53px 40px 56px;
    }
    .action-cards .card .card-subtitle{
        font-size: 28px;
    }
}
@media (max-width: 800px){
    .action-cards .card .card-subtitle{
        font-size: 24px;
        margin-bottom: 8px;
    }
}

@media (max-width: 768px){
    .questions .navigation{
        max-width: 335px;
    }
    .questions{
        padding-top: 41px;
        padding-bottom: 41px;
    }
    .question-wrapper .question{
        font-size: 32px;
        margin-bottom: 20px;
    }
    .symptom-group{
        margin-bottom: 40px;
    }
    .symptom-group h2{
        font-size: 20px;
        line-height: normal;
    }
    .navigation{
        grid-template-columns: 1fr;
        padding: 0;
    }
    .next-buttons{
        order: 1;
        width: 100%;
        margin-bottom: 20px;
    }
    .navigation .next-btn{
        width: 100%;
        font-size: 16px;
        padding: 9px 20px;
        text-align: center;
    }
    .navigation .prev-btn{
        order: 2;
        background-color: var(--color-white);
        border: 1px solid var(--color-brand-blue);
        text-decoration: none;
        color: var(--color-brand-blue);
        font-size: 16px;
        width: 100%;
        padding: 9px;
        line-height: 1.4;
        text-align: center;
    }
    .navigation .dots{
        order: 3;
        margin-top: 41px;
    }
    .top-sec-wrapper{
        padding: 41px 0 40px;
    }
    .score-section{
        width: 100%;
        padding: 0 20px;
    }
    .score-section .title{
        font-size: 32px;
        margin-bottom: 20px;
    }
    .action-cards .card .card-image{
        margin-bottom: 20px;
    }
    .score-section .primary-btn, 
    .explanation-section .primary-btn{
        padding: 11px 20px;
        font-size: 16px;
    }
    .quiz-desc-wrapper{
        padding: 0 11px;
    }
    .score-section .quiz-desc-wrapper{
        display: none;
    }
    .score-box{
        /* margin-bottom: 36px; */
        margin-bottom: 17px;
    }
    .score-section .primary-btn{
        width: 100%;
    }
    .score-section .secondary-btn{
        background-color: var(--color-white);
        border: 1px solid var(--color-brand-blue);
        text-decoration: none;
        color: var(--color-brand-blue);
        font-size: 16px;
        width: 100%;
        padding: 9px;
        line-height: 1.4;
    }
    .result-sec .actions-container .primary-btn{
        background-color: var(--color-brand-blue);
        padding: 11px 25px;
        width: 100%;
        font-size: 16px;
        line-height: normal;
        font-weight: normal;
        color: var(--color-white);
        border: 1px solid var(--color-brand-blue);
    }
    .result-sec .actions-container .secondary-btn{
        font-size: 18px;
        line-height: normal;
        font-weight: 300;
        text-decoration: underline;
        border: none;
        margin-top: 16px;
    }
    .pdf-download-message{
        margin-top: 18px;
    }
    .actions-container.d-block-sm{
        display: block;
        width: 100%;
        padding: 0 15px;
        margin-top: 19px;
    }
    .actions-container.d-none-sm{
        display: none;
    }
    
    .explanation-section-collapsible-tabs{
        width: 100%;
        padding: 0 15px;
    }
    .explanation-section{
        width: calc(100% - 40px);
        padding: 24px 0 35px;
        text-align: left;
        margin: auto;
        /* margin-top: 14px; */
        /* border-top: 1px solid rgba(var(--color-foreground)); */
        border-bottom: 1px solid rgba(var(--color-foreground));
    }
    .explanation-section:first-of-type{
        border-top: 1px solid rgba(var(--color-foreground));
    }
    .explanation-section-collapsible-tabs .explanation-section{
        padding: 24px 0;
        /* margin-top: 25px; */
    }
    .explanation-section-collapsible-tabs .explanation-section:first-of-type{
        padding: 24px 0;
        margin-top: 0;
    }
    /*.explanation-section-collapsible-tabs .explanation-section:first-of-type .modal__close{
        top: 28px;
    }*/
    .explanation-section .modal__close{
        display: block;
        width: 9px;
        height: 9px;
        /*top: 30px;*/
    }
    .explanation-section .subtitle{
        font-size: 16px;
        text-transform: uppercase;
        text-align: left;
        font-family: var(--font-body-family);
        font-style: normal;
        letter-spacing: 1.6px;
        margin-bottom: 0;
    }
    .explanation-section .description{
        font-size: 14px;
        line-height: 1.28;
        padding: 21px 12px 0px 0px;
    }

    .explanation-section.disabled .description,
    .explanation-section.disabled .primary-btn{
        display:none;
    }
    .explanation-section.disabled .subtitle{
        margin-bottom: 0px;;
    }
    .bottom-sec-wrapper .bottom-section{
        padding: 26px 20px 12px;
    }
    .bottom-sec-wrapper .control-title{
        font-size: 32px;
        margin-bottom: 10px;
        padding: 0 6px;
    }
    .action-cards .card{
        width: 100%;
        padding: 16px 20px 30px;
        margin-bottom: 24px;
        min-height: inherit;
    }
    .action-cards .card:last-of-type{
        margin-bottom: 0;
    }
    .action-cards .card .card-title{
        font-size: 16px;
        letter-spacing: 1.6px;
    }
    .action-cards .card .card-btn{
        padding: 11px 20px;
        font-size: 16px;
        width: 100%;
        max-width: calc(100% - 14px);
        position: inherit;
        bottom: inherit;
        display: block;
        margin-top: 20px;
    }
}