@font-face {
    font-family: 'Jost';
    src: url('../font/Jost-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('../font/Jost-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('../font/Jost-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost';
    font-weight: 400;
    line-height: 1.2;
}

body {
    /* background: linear-gradient(135deg, #f9e0d9 0%, #e5c1e5 50%, #c7d9f1 100%); */
    background-image: url('../images/bg.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.page-container {
    position: relative;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    height: 100vh;
    margin: 0 auto;
    align-content: center;
}

/* Enhanced Section Transitions */
.section {
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(80px) scale(0.95);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    display: none;
    pointer-events: none;
    padding: 20px;
    align-content: center;
}

.section.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    display: block;
    pointer-events: all;
}

.section.exit-left {
    opacity: 0;
    transform: translateX(-80px) scale(0.95);
}

.section.exit-right {
    opacity: 0;
    transform: translateX(80px) scale(0.95);
}

/* Landing Section Styles */
#landing-section {
    position: relative;
    overflow: hidden;
    background-image: url('../images/fit-blond-woman.webp');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: auto 95%; /* Height 95% of container, auto width */
}

/* Hide the image container on desktop */
#landing-section .image-container img {
    display: none;
}

#landing-section .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85%;
}

#landing-section p{
    font-size: 1.5rem;
    max-width: 50%;
}

.text-content {
    flex: 1;
    padding-right: 40px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #000000;
    font-weight: 500;
    line-height: 1.2;
}

h2 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 20px;
    color: #000000;
    font-weight: 400;
    line-height: 1.2;
}

h3 {
    font-size: 1.8rem;
    text-align: center;
    margin: 20px 0;
    color: #000000;
    font-weight: 500;
}

p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #000000;
}

/* Updated Gender Selection Options */
.options {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    min-width: 500px;
}

.option {
    position: relative;
    flex: 1;
}

.option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding-left: 20px; 
    justify-content: center;
    text-align: center; 
}

.option label:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    margin-right: 15px;
    transition: all 0.3s ease-in-out;
    flex-shrink: 0;
}

.option input[type="radio"]:checked + label:before {
    border-color: #e83e8c;
    background-color: white;
    box-shadow: inset 0 0 0 5px #e83e8c;
}

.option input[type="radio"]:checked + label {
    border-color: #e83e8c;
    background-color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(232, 62, 140, 0.1);
}

.option label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.icon {
    margin: 0 10px;
    font-size: 1.2rem;
    color: #333;
}

.btn:hover:not(:disabled), .cta-btn:hover {
    background-color: #d33a7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 62, 140, 0.3);
}

.btn:active:not(:disabled), .cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(232, 62, 140, 0.2);
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.cta-btn {
    background: linear-gradient(to right, #e83e8c, #7b5ee7);
    padding: 20px 30px;
    font-size: 1.5rem;
    display: block;
    margin: 30px auto 0;
    width: 100%;
    text-align: center;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    max-width: 100%;
    max-height: 500px;
}

.logos {
    display: flex;
    justify-content: space-between;
    height: 15%;
    gap: 8px;
}

.logos img {
    max-height: 30px;
    width: auto;
}

.logos img.mayo-clinic{
    max-height: 50px;
}

/* Quiz Section Styles */
.quiz-card {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 550px;
    margin: 0 auto;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.progress-bar {
    height: 16px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #E9639F 0%, #8143E2 100%);
    width: 20%; /* Will be updated by JS */
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.question {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    justify-items: center;
}

.question.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.question h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.subtitle {
    font-size: 1rem;
    color: #777;
    margin-bottom: 20px;
    text-align: center;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 100%;
}

.answer {
    position: relative;
}

.answer input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Updated radio-style answer buttons */
.answer label {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    /* padding-left: 45px;  */
    padding-left: 15px; 
    justify-content: center; 
    text-align: center; 
}

.answer label:before {
    content: '';
    position: absolute;
    left: 15px; /* Position on the left */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    margin-right: 15px;
    transition: all 0.3s ease-in-out;
    flex-shrink: 0;
}

.answer.active label:before,
.answer input[type="radio"]:checked + label:before {
    border-color: #e83e8c;
    background-color: white;
    box-shadow: inset 0 0 0 5px #e83e8c;
}

.answer.active label,
.answer input[type="radio"]:checked + label {
    border-color: #e83e8c;
    background-color: #fff;
    color: #333;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(232, 62, 140, 0.1);
}

.answer:hover label {
    border-color: #e83e8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced Error Message Animation */
.error-message {
    color: #e83e8c;
    font-size: 0.9rem;
    margin-top: 0;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, transform 0.5s ease-in-out, margin 0.5s ease-in-out;
}

.error-message.show {
    max-height: 50px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 15px;
    margin-bottom: 5px;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid #E0E0E0;
    padding-top: 24px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    transition: all 0.3s ease-in-out;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.nav-btn img {
    width: 100%;
    height: auto;
}

.nav-btn:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

#question-counter {
    font-size: 0.9rem;
    color: #777;
    line-height: 1;
    margin-bottom: -4px;
}

/* Results Section Styles */
#results-section .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#results-section h2{
    text-align: left;
    font-size: 2.5rem;
}
#results-section p{
    font-size: 1.6rem;
}

/* Updated Progress Circle */
.progress-circle {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 30px auto;
}

.progress-circle-inner {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 50%;
    z-index: 3;
}

.progress-circle-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #E0E0F9;
    z-index: 1;
}

.progress-circle-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid #3EB8E5;
    box-sizing: border-box;
    z-index: 2;
}

.progress-circle-dot-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
    z-index: 4;
}

.progress-circle-dot {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 14px;
    height: 14px;
    background-color: #3EB8E5;
    border-radius: 50%;
    transform: translateX(-50%);
}

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

#progress-percentage {
    font-size: 2.5rem;
    font-weight: bold;
    color: #36b9cc;
}

/* Confirmation Section Styles */
.confirmation-card {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.confirmation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.confirmation-card h2{
    font-size: 2.5rem;
}
.confirmation-card h3{
    font-size: 2.5rem;
    font-weight: 600;
}
.confirmation-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-text p {
    margin-bottom: 10px;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    color: #1E1E1E;
    font-size: 1.1rem;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirmation-text p:nth-child(1) { animation-delay: 0.1s; }
.confirmation-text p:nth-child(2) { animation-delay: 0.2s; }
.confirmation-text p:nth-child(3) { animation-delay: 0.3s; }
.confirmation-text p:nth-child(4) { animation-delay: 0.4s; }
.confirmation-text p:nth-child(5) { animation-delay: 0.5s; }
.confirmation-text p:nth-child(6) { animation-delay: 0.6s; }
.confirmation-text p:nth-child(7) { animation-delay: 0.7s; }
.confirmation-text p:nth-child(8) { animation-delay: 0.8s; }

/* Footer Styles */
.footer {
    bottom: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 40px 20px;
    border-top: 1px solid #eaeaea;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-head{
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 60px;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease-in-out;
    text-decoration: underline;
}

.footer-links a:hover {
    color: #e83e8c;
}

.disclaimer {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #landing-section{
        background-image: none;
    }

    #landing-section .image-container {
        justify-content: right;
    }
    #landing-section .image-container img {
        display: block;
        max-height: 300px;
        width: auto;
    }
    .container {
        height: auto;
        min-height: 100vh;
    }
    
    .logos {
        justify-content: space-around;
        gap: 16px;
        flex-wrap: wrap;
        align-items: center;
    }
    .logos img{
        max-height: 18px;
    }

    .logos img.mayo-clinic{
        max-height: 30px;
    }

    #landing-section .content {
        flex-direction: column;
    }
    #landing-section p{
        max-width: inherit;
        margin-bottom: 0;
    }
    
    .text-content {
        padding-right: 0;
    }
    
    .options{
        flex-direction: column;
        margin-top: -85px;
        min-width: inherit;
    }
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    #results-section .content {
        flex-direction: column;
    }

    #results-section h2{
        font-weight: 500;
        font-size: 2rem;
    }

    #results-section p{
        font-size: 1.4rem;
    }
    .confirmation-card h2{
        font-size: 1.6rem;
    }
    .confirmation-card h3{
        font-size: 1.9rem;
    }
    
    .quiz-card, .confirmation-card {
        padding: 20px;
    }
    
    .cta-btn {
        padding: 14px 20px;
        font-size: 1.1rem;
        border-radius: 14px;
    }
    
    .footer-head{
        flex-direction: column;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .quiz-card, .confirmation-card {
        padding: 24px 15px;
    }
    
}