/* Interactive Profile Assessment Block Styles */
/* Phase 2: Complete interactive styling */

.interactive-assessment-wrapper{
    background-color: var(--color-white);
    padding: 80px 0;
}

.assessment-container {
    /* Base dimensions designed for 1920x1080 viewport */
    width: 1432px;
    height: 746px; /* Maintains the aspect ratio */
    margin: 0 auto;
    padding: 0;
    font-family: inherit;
    clip-path: var(--clip-path-fixed-bowl);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: var(--color-nav-gray);
    position: relative;
    overflow: hidden;
    transform-origin: center center;
    
    /* Maintain aspect ratio as viewport scales */
    aspect-ratio: 1432 / 746; /* Original proportions: ~1.92:1 */
}

/* Cross-Browser Responsive Scaling System */
/* Define scaling breakpoints with explicit transforms */
/* Container maintains exact 1432x746 dimensions, only scaling via transform */

/* 1920px - Full size */
@media (min-width: 1920px) {
    .assessment-container {
        transform: scale(1);
        width: 1432px;
        height: 746px;
    }
}

.intro-paragraph {
    font-size: 30px;
    line-height: 36px;
    max-width: 1150px;
    margin: 0 auto;
    color: var(--color-white);
    font-weight: bold;
    text-align: center;
}

.intro-navigation {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Hide home button on default view */
.assessment-view-default .btn-home {
    display: none;
}

/* Home button - absolute positioned in top-left on intro view */
.assessment-view-intro .btn-home {
    position: absolute;
    top: 40px;
    left: 40px;
    background: transparent;
    color: var(--color-white);
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
    z-index: 10;
    box-shadow: none;
}

.assessment-view-intro .btn-home:hover {
    color: var(--color-yellow);
    box-shadow: none;
}

.progress-to-quiz {
    background: var(--color-yellow);
    color: var(--color-nav-gray);
    border: 2px solid var(--color-yellow);
    padding: 8px 12px;
    font-size: 1.8rem;
    line-height: 2.6rem;
    font-weight: 600;
    border-radius: 20px;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.progress-to-quiz:hover {
    background: var(--color-nav-gray);
    color: var(--color-yellow);
    border: 2px solid var(--color-yellow);
    box-shadow: none;
    -webkit-box-shadow: none;
}

/* Quiz View */

.quiz-frame{
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Quiz Home Button - same styling as intro home */
.quiz-home {
    position: absolute;
    top: 40px;
    left: 40px;
    background: transparent;
    color: var(--color-white);
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
    padding: 0;
    z-index: 10;
    box-shadow: none;
}

.quiz-home:hover {
    color: var(--color-yellow);
    box-shadow: none;
}

/* Quiz Title - Yellow background box */
.quiz-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    min-width: 194px;
    width: auto;
    height: 92px;
    background: var(--color-yellow);
    color: var(--color-nav-gray);
    font-size: 2.4rem;
    font-weight: 600;
    padding: 40px 20px 20px;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Quiz Progress - top right */
.quiz-progress {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 10;
}

.progress-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-white);
}

/* Quiz header now uses absolute positioning for frame elements */
.quiz-header {
    position: relative;
    height: 92px; /* Height of the quiz title box */
    z-index: 5;
}

/* Quiz Content Area */
.quiz-content {
    position: absolute;
    width: 100%;
    height: 100%;
}

.quiz-main {
    position: relative;
    z-index: 2;
}

.quiz-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    z-index: 1;
}

.quiz-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.quiz-slide.transitioning-out {
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

/* Question Slide */
.quiz-slide-question {
    padding: 20px 0;
}

.question-text {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    font-weight: bold;
    line-height: 46px;
    max-width: 1000px;
    width: 100%;
    color: var(--color-white);
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

/* Hide question text for two-part questions on DESKTOP only since we render it inline */
@media (min-width: 1024px) {
    .quiz-slide-question:has(.two-part-options) .question-text {
        display: none;
    }

    .quiz-slide-question:has(.two-part-special-options) .question-text {
        display: none;
    }
}

/* Answer Options Styling */
.answer-options {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 85px; /* Half of question position (170px) to center in remaining space */
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Single Select Options */
.single-select-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 330px;
    width: 100%;
}

.answer-option {
    background: var(--color-yellow);
    color: var(--color-nav-gray);
    border: 2px solid var(--color-yellow);
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    font-size: 24px;
    line-height: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.answer-option:hover {
    background: transparent;
    color: var(--color-yellow);
}

.answer-option.selected {
    background: transparent;
    color: var(--color-yellow);
}

/* Removed checkmark for answer options - not needed per design */

/* Multi-Select Options */
.multi-select-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Two-column layout for multi-select and multiple choice */
.multi-select-options.multi-select-two-columns,
.single-select-options.multi-select-two-columns {
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    width: 65%; /* Limit width to 80% of container */
    margin: 0 auto; /* Center the container */
}

.multi-select-options.multi-select-two-columns .multi-select-instruction {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

.multi-select-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.multi-select-column-first {
    flex: 0 0 58%; /* First column takes 60% of width */
}

.multi-select-column-second {
    flex: 0 0 42%; /* Second column takes 40% of width */
}

/* Two-column specific checkbox styling */
.multi-select-options.multi-select-two-columns .multi-select-option {
    align-items: flex-start; /* Top align checkbox and text */
}

.multi-select-options.multi-select-two-columns .checkbox-label {
    font-size: 16px; /* Smaller font size for two-column */
    line-height: 26px; /* Specific line height */
    font-weight: normal; /* Not bold */
    margin-top: 2px; /* Slight adjustment to align with checkbox top */
}

/* Two-column specific multiple choice styling */
.single-select-options.multi-select-two-columns {
    gap: 30px; /* 30px gap between columns for multiple choice */
}

.single-select-options.multi-select-two-columns .multi-select-column-first {
    flex: 0 0 calc(50% - 15px); /* Equal width for multiple choice - first column, accounting for gap */
}

.single-select-options.multi-select-two-columns .multi-select-column-second {
    flex: 0 0 calc(50% - 15px); /* Equal width for multiple choice - second column, accounting for gap */
}

.single-select-options.multi-select-two-columns .answer-option {
    padding: 15px 20px;
    margin: 8px 0;
    width: 100%;
    text-align: center;
}

.multi-select-instruction {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 500;
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 15px;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.multi-select-option:hover {
    /* Removed hover state */
}

.multi-select-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.multi-select-option::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 9px;
    height: 24px;
    width: 24px;
    background-color: white;
    border-radius: 50%;
    border: 2px solid white;
}

.multi-select-option.checked::before {
    background-color: var(--color-nav-gray) !important;
    border: 2px solid white !important;
}

.checkbox-label {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    line-height: 1.4;
    margin-left: 36px; /* Account for custom circle space */
}

.multi-select-continue {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    background: var(--color-yellow);
    color: var(--color-nav-gray);
    border: 2px solid var(--color-yellow);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 500;
    box-shadow: none;
    -webkit-box-shadow: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.multi-select-continue:hover:not(:disabled) {
    background: transparent;
    color: var(--color-yellow);
}

.multi-select-continue:disabled {
    background: #ccc;
    color: #666;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Two-Part Options */
.two-part-options {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    display: flex;
    flex-direction: row;
    gap: 8%;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

/* Two-column layout for main question buttons */
.two-part-main .answer-option {
    max-width: 185px;
    padding: 15px 20px;
}

/* Create two-column grid for main question options */
.two-part-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 12px;
    width: 465px;
    transition: transform 0.3s ease;
}

/* Question spans full width */
.two-part-main-question {
    grid-column: 1 / -1; /* Span both columns */
    font-size: 36px;
    font-weight: bold;
    line-height: 42px;
    color: var(--color-white);
    text-align: left;
    text-transform: uppercase;
    margin: 0 0 30px 0;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.two-part-main.answered {
    transform: translateX(-20px); /* Increased shift for wider container */
    transition: transform 0.3s ease; /* Smooth transition for the shift */
}

.two-part-satisfaction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 12px;
    width: 600px; /* Wider for larger buttons */
    opacity: 0;
    transform: translateX(40px) translateY(100px); /* Push down 100px */
    transition: opacity 0.3s ease 0.2s, transform 0.4s ease 0.3s; /* Delayed fade-in */
    position: relative;
}

.two-part-satisfaction:not([style*="display: none"]) {
    opacity: 1;
    transform: translateX(0) translateY(100px); /* Maintain 100px offset when visible */
}

/* Add vertical rule line between the two questions */
.two-part-satisfaction::before {
    content: '';
    position: absolute;
    top: -100px; /* Start from top of satisfaction section offset */
    left: -80px; /* Position to the left, between the two sections */
    width: 1px; /* 1px wide vertical line */
    height: 480px; /* Tall enough to span both question areas */
    background-color: var(--color-white);
    opacity: 0;
    transition: opacity 0.4s ease 0.2s; /* Delay appearance slightly */
}

.two-part-satisfaction:not([style*="display: none"])::before {
    opacity: 1;
}

.two-part-satisfaction .satisfaction-question {
    grid-column: 1 / -1; /* Span both columns */
    font-size: 24px; /* Smaller font for second question */
    font-weight: bold;
    line-height: 32px; /* Smaller line height */
    color: var(--color-white);
    margin: 0 0 30px 0;
    text-align: left; /* Left aligned like first question */
    text-transform: uppercase;
    min-height: 64px; /* Adjusted for smaller text */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left align content */
}

/* Larger buttons for satisfaction options */
.two-part-satisfaction .answer-option {
    max-width: 272px;
    font-size: 20px; /* Smaller text for satisfaction buttons */
    padding: 15px 20px; /* Reduced horizontal padding from 30px to 20px */
}

/* Two-Part Special Questions (3 questions layout) */
.two-part-special-options {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    display: flex;
    flex-direction: row;
    gap: 8%;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

/* Main question container for two-part special */
.two-part-special-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 12px;
    width: 465px;
    transition: transform 0.3s ease;
}

/* Main question text for two-part special */
.two-part-special-main-question {
    grid-column: 1 / -1; /* Span both columns */
    font-size: 36px;
    font-weight: bold;
    line-height: 42px;
    color: var(--color-white);
    text-align: left;
    text-transform: uppercase;
    margin: 0 0 30px 0;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Two-column layout for main question buttons */
.two-part-special-main .answer-option {
    max-width: 185px;
    padding: 15px 20px;
}

/* Shift main question left when answered */
.two-part-special-main.answered {
    transform: translateX(-20px);
    transition: transform 0.3s ease;
}

/* Secondary questions container (two questions side by side) */
.two-part-special-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px;
    width: 700px;
    opacity: 0;
    transform: translateX(40px) translateY(100px);
    transition: opacity 0.3s ease 0.2s, transform 0.4s ease 0.3s;
    position: relative;
}

.two-part-special-secondary:not([style*="display: none"]) {
    opacity: 1;
    transform: translateX(0) translateY(100px);
}

/* Add vertical rule line between main and secondary sections */
.two-part-special-secondary::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -80px;
    width: 1px;
    height: 480px;
    background-color: var(--color-white);
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.two-part-special-secondary:not([style*="display: none"])::before {
    opacity: 1;
}

/* Individual question containers in secondary */
.two-part-special-question-two,
.two-part-special-question-three {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Question text for secondary questions */
.two-part-special-question-text {
    font-size: 24px;
    font-weight: bold;
    line-height: 32px;
    color: var(--color-white);
    text-align: left;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    word-wrap: break-word;
    hyphens: auto;
}

/* Answer options for secondary questions - single column, forced width */
.two-part-special-option {
    max-width: none !important;
    width: 100% !important;
    font-size: 18px;
    padding: 15px 20px;
    margin-bottom: 10px;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

/* Navigation Buttons */
.btn-next-slide {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-next-slide:hover {
    background: #218838;
}

/* Insight Slide - positioned relative to assessment container */
.assessment-container .quiz-slide-insight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.assessment-container .quiz-slide-insight.active {
    display: flex;
}

/* Insight Image Container */
.insight-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.insight-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.btn-next-question {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    background: var(--color-yellow);
    color: var(--color-nav-gray);
    border: 2px solid var(--color-yellow);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 500;
    box-shadow: none;
    -webkit-box-shadow: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-next-question:hover {
    background: transparent;
    color: var(--color-yellow);
}

/* Quiz Image - absolutely positioned */
.quiz-current-image {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 122px;
    height: 213px;
    object-fit: cover;
    z-index: 5;
}

/* Remove quiz sidebar */
.quiz-sidebar {
    display: none;
}

/* Profile View */
/* Profile View - Full Width Clickable Image */
.assessment-view-profile {
    padding: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default like other assessment views */
}

.assessment-view-profile.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.profile-image-container:hover {
    opacity: 0.95;
}

.profile-image-display {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Profile CTA Buttons */
.profile-cta-container {
    position: absolute;
    bottom: 9%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.profile-cta-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-cta-wrapper.single-cta {
    justify-content: flex-start;
}

.profile-cta-wrapper.dual-cta {
    justify-content: flex-start;
}

.profile-cta-btn {
    background: var(--color-yellow);
    color: var(--color-nav-gray);
    border: 2px solid var(--color-yellow);
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    font-size: 20px;
    line-height: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    white-space: nowrap;
    min-width: 180px;
}

.profile-cta-btn:hover {
    background: transparent;
    color: var(--color-yellow);
}

.profile-cta-btn.profile-cta-single {
    /* Single button styling - can be larger if needed */
    min-width: 200px;
}

.profile-cta-btn.profile-cta-primary {
    /* First button in dual layout */
    min-width: 180px;
}

.profile-cta-btn.profile-cta-secondary {
    /* Second button in dual layout */
    min-width: 180px;
}

/* Legacy profile styles removed - now using full-width image layout */

/* Form View */
.assessment-view-form.active {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.assessment-view-form .view-content {
    flex: 1;
}

.form-content {
    width: 100%;
    margin: 0;
}

.form-container {
    width: 100%;
}

/* Assessment Form Integration */
.assessment-view-form .configurable-form-outer-wrapper {
    background: transparent;
    padding: 0;
    width: 100%;
}

.assessment-view-form .configurable-form-container {
    padding: 0;
    max-width: none;
    width: 100%;
}

.assessment-view-form .configurable-form-category-headline,
.assessment-view-form .configurable-form-subheading {
    display: none; /* Hide the form headline and subheading in assessment context */
}

.assessment-view-form .configurable-form-content {
    margin-top: 0;
    position: static;
    clip-path: none;
    -webkit-clip-path: none;
    width: 100%;
    max-width: 1000px;
    background-color: transparent;
}

.assessment-view-form .salesforce-form {
    width: 100%;
    max-width: none;
}

.assessment-view-form .configurable-form-content .salesforce-form #form-col4 .form-input input.pv-btn.sf-button{
    width: auto;
    font-size: 1.8rem;
    line-height: 1.8rem;
    padding: 8px 16px;
    font-weight: 500;
    max-width: 300px;
    white-space: normal;
}

/* HTML Content Support */
.default-content p,
.intro-content p,
.question-text p,
.insight-content p {
    margin-bottom: 15px;
}

.default-content span,
.intro-content span,
.question-text span,
.insight-content span {
    display: inline;
}

.default-content sup,
.intro-content sup,
.question-text sup,
.insight-content sup {
    font-size: 60%;
}

.default-content sub,
.intro-content sub,
.question-text sub,
.insight-content sub {
    vertical-align: sub;
    font-size: smaller;
}

.default-content strong,
.intro-content strong,
.question-text strong,
.insight-content strong {
    font-weight: bold;
}

.default-content em,
.intro-content em,
.question-text em,
.insight-content em {
    font-style: italic;
}



/* 1800px */
@media (max-width: 1919px) and (min-width: 1700px) {
    .assessment-container {
        transform: scale(0.9375); /* 1800/1920 */
        width: 1432px;
        height: 746px;
    }
}

/* 1600px */
@media (max-width: 1699px) and (min-width: 1024px) {
    .assessment-container {
        transform: scale(0.80); /* Tighter scaling for smaller viewports */
        width: 1432px;
        height: 746px;
    }
    
    /* Two-part-special responsive adjustments for 1099-1024px - More aggressive scaling */
    .two-part-special-main {
        width: 35%; /* 465px * 0.82 */
    }
    
    .two-part-special-main-question {
        font-size: 28px; /* 36px * 0.78 */
        line-height: 34px; /* 42px * 0.81 */
        min-height: 68px; /* 84px * 0.81 */
    }
    
    .two-part-special-secondary {
        width: 49%; /* 700px * 0.81 */
        grid-gap: 20px; /* 30px * 0.67 */
    }
    
    .two-part-special-question-text {
        font-size: 19px; /* 24px * 0.79 */
        line-height: 25px; /* 32px * 0.78 */
    }
    
    .two-part-special-option {
        font-size: 14px; /* 18px * 0.78 */
        padding: 10px 15px; /* 15px 20px * 0.75 */
    }
    
    .two-part-special-main .answer-option {
        max-width: 145px; /* 185px * 0.78 */
        padding: 10px 15px; /* 15px 20px * 0.75 */
    }
    
    /* Two-part responsive adjustments for 1099-1024px - More aggressive scaling */
    .two-part-main {
        width: 35%; /* Keep same as 1199-1100px for consistency */
    }

    .two-part-satisfaction:not([style*="display: none"]) {
        width: 49%;
    }
    
    .two-part-main-question {
        font-size: 28px; /* 36px * 0.78 */
        line-height: 34px; /* 42px * 0.81 */
        min-height: 68px; /* 84px * 0.81 */
    }
    
    .two-part-satisfaction .satisfaction-question {
        font-size: 19px; /* 24px * 0.79 */
        line-height: 25px; /* 32px * 0.78 */
    }
    
    .two-part-main .answer-option {
        max-width: 160px; /* 185px * 0.78 */
        padding: 8px 15px; /* 15px 20px * 0.75 */
    }
    
    .two-part-satisfaction .answer-option {
        font-size: 14px; /* 18px * 0.78 */
        padding: 8px 15px; /* 15px 20px * 0.75 */
    }
}

/* Ensure wrapper accommodates scaled content and prevents overflow */
@media (max-width: 1920px) and (min-width: 1024px) {
    .interactive-assessment-wrapper {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 40px 0;
        overflow: hidden;
        /* Ensure wrapper can contain the scaled container */
        min-height: 800px; /* Accommodate scaled height + padding */
    }
    
    /* If scaled container would exceed 75% viewport width, add horizontal scroll */
    .interactive-assessment-wrapper {
        overflow-x: auto;
    }
    
    /* Only apply body overflow when assessment is present */
    .page:has(.interactive-assessment-wrapper) body {
        overflow-x: auto;
    }
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1) {
    .assessment-container {
        height: 746px; /* Fixed height based on design */
    }
}

/* Debug Panel */
.assessment-debug {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.assessment-debug h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.assessment-debug p {
    margin: 5px 0;
    color: #856404;
}

/* View Management with Cross-Fade Transitions */
.assessment-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 1;
    pointer-events: none; /* Prevent interaction when hidden */
}

.assessment-view.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto; /* Allow interaction when active */
}

.assessment-view.transitioning-out {
    opacity: 0;
    visibility: visible;
    z-index: 1;
    pointer-events: none; /* Prevent interaction during transition */
}

/* Default View */
.assessment-view-default {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* Background image for default view */
.assessment-view-default::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: contain;
    background-position: 0 100px;
    background-repeat: no-repeat;
    z-index: -1;
}

.default-subhead {
    font-size: 20px;
    line-height: 32px;
    color: var(--color-white);
    font-weight: bold;
    text-align: center;
    margin: 100px auto 40px;
}

.default-title {
    margin: 0 auto 30px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    position: relative;
    text-align: center;
    text-transform: uppercase;
}

.default-title .small {
    display: block;
    font-size: 60px;
    line-height: 60px;
    color: var(--color-white);
    margin: 0;
}

.default-title .big {
    font-size: 60px;
    line-height: 66px;
    font-weight: 700;
    position: relative;
    margin: 30px auto;
    padding: 0 15px;
    color: var(--color-yellow);
    width: 100%;
    max-width: 670px;
    display: inline-block;
}

.default-title .big::before,
.default-title .big::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 7px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='6.328' viewBox='0 0 500 6.328' preserveAspectRatio='none'%3E%3Cpath d='M0,0C0,3.494,111.929,6.326,250,6.326S500,3.494,500,0' fill='%2329AAE1'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.default-title .big::before {
    top: -15px;
}

.default-title .big::after {
    bottom: -15px;
    transform: scaleY(-1); /* Flip the bottom border */
}

.default-content {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Floating CTA Balloon Animation */
.floating-cta-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    max-width: 400px;
}

.cta-text-left,
.cta-text-right {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.floating-cta-balloon {
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
    transform-origin: center bottom;
    max-width: 200px;
    height: auto;
    display: block;
}

/* Floating animation - balloon bobs up and down */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Hover state - stop floating and scale up */
.floating-cta-balloon:hover {
    animation-play-state: paused;
    transform: scale(1.1) translateY(0px) !important;
}

/* Patient template overrides for CTA text color */
.page-template-page-deflatehae-patient .cta-text-left,
.page-template-page-deflatehae-patient .cta-text-right {
    color: var(--color-nav-gray);
}

/* Intro View */
.assessment-view-intro {
    padding: 0;
    position: relative;
    z-index: 2;
}

.assessment-view-intro .view-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

/* No background image for intro view */

.intro-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.intro-title {
    margin: 0 auto 30px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    position: relative;
    text-align: center;
    text-transform: uppercase;
}

.intro-title .small {
    display: block;
    font-size: 40px;
    line-height: 40px;
    color: var(--color-white);
    margin: 0;
}

.intro-title .big {
    font-size: 40px;
    line-height: 40px;
    font-weight: 700;
    position: relative;
    margin: 30px auto;
    padding: 0 15px;
    color: var(--color-yellow);
    text-transform: uppercase;
    width: 100%;
    display: inline-block;
}

.intro-title .big::before,
.intro-title .big::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='6.328' viewBox='0 0 500 6.328' preserveAspectRatio='none'%3E%3Cpath d='M0,0C0,3.494,111.929,6.326,250,6.326S500,3.494,500,0' fill='%2329AAE1'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.intro-title .big::before {
    top: -12px;
}

.intro-title .big::after {
    bottom: -10px;
    height: 4px;
    transform: scaleY(-1); /* Flip the bottom border */
}

.intro-paragraph {
    font-size: 30px;
    line-height: 36px;
    max-width: 1150px;
    margin: 0 auto;
    color: var(--color-white);
    font-weight: bold;
    text-align: center;
} 

/* Intro Image Container */
.intro-image-container {
    width: 100%;
    text-align: center;
    margin: 20px auto;
}

.intro-image {
    max-width: 70%;
    width: 100%;
    height: auto;
}

@media (max-width: 1365px) and (min-width: 1024px) {
    .default-title .big {
        max-width: 550px;
        font-size: 5rem;
    }

    .default-title .small {
        font-size: 5rem;
    }

    .default-title .big::before, .default-title .big::after {
        max-width: 400px;
    }

    .default-subhead {
        margin-top: 50px;
    }
}

/* Mobile-specific intro image handling */
@media (max-width: 1023px) {
    .interactive-assessment-wrapper{
        padding: 0;
    }

    .assessment-container {
        transform: scale(1);
        width: 100vw;
        height: 80vh;
        clip-path: none;
    }

    .assessment-view-default::before {
        background-position: 0 410px;
    }

    .floating-cta-balloon {
        max-width: 125px;
    }

    /* Mobile reordering for HCP - make title appear before subhead */
    .default-content {
        display: flex;
        flex-direction: column;
    }
    
    .default-subhead {
        order: 2; /* Move subhead after title */
        margin: 0 auto 40px; /* Adjust margins for new position */
    }
    
    .default-title {
        order: 1; /* Move title before subhead */
        margin: 0; /* Take the original subhead top margin */
    }
    
    .default-action {
        order: 3; /* Keep action buttons last */
    }

    .default-title .small{
        font-size: 40px;
    }

    .default-title .big{
        font-size: 50px;
    }

    .assessment-view-intro .btn-home {
        position: relative;
        top: unset;
        left: unset;
    }

    .quiz-home {
        left: 30px;
        top: 20px;
        padding: 0;
    }

    .quiz-title {
        padding: 10px 10px 10px;
        height: 72px;
    }

    .quiz-progress {
        top: 30px;
    }

    .intro-image-desktop {
        display: none !important;
    }

    .intro-image-mobile {
        display: block !important;
    }
    
    .profile-image-desktop {
        display: none !important;
    }

    .profile-image-mobile {
        display: block !important;
    }

    /* Change "CLICK" to "TAP" on mobile */
    .cta-text-left {
        font-size: 0; /* Hide original text */
    }

    .cta-text-right {
        font-size: 1.6rem;
    }
    
    .cta-text-left::before {
        content: "TAP";
        font-size: 1.6rem; /* Restore font size */
        font-weight: bold;
        color: var(--color-blue);
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: right
    }
}

@media (min-width: 1024px) {
    
    .intro-image-mobile {
        display: none !important;
    }
    
    .profile-image-desktop {
        display: block !important;
    }
    
    .profile-image-mobile {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .assessment-container {
        transform: scale(1);
        width: 100vw;
        height: 80vh;
        clip-path: none;
    }

    /* Default view mobile reordering - HCP only */

    .assessment-view-default::before {
        background-position: 0 80%;
    }

    .default-content {
        display: flex;
        flex-direction: column;
    }

    .default-title {
        order: 1;
        margin: 0 auto 20px;
    }

    .default-subhead {
        order: 2;
        margin: 20px auto 30px;
        max-width: 420px;
    }

    .default-action {
        order: 3;
    }

    .default-title .small{
        font-size: 4rem;
        line-height: 4.6rem;
    }

    .default-title .big{
        font-size: 4rem;
        line-height: 4.6rem;
    }

    .floating-cta-container {
        margin-top: 0;
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .floating-cta-balloon {
        max-width: 125px;
    }

    .assessment-view-intro .btn-home {
        position: relative;
        top: unset;
        left: unset;
    }

    .intro-title .big,
    .intro-title .small {
        font-size: 3rem;
        line-height: 3.6rem;
    }

    .intro-paragraph {
        font-size: 2rem;
        line-height: 2.6rem;
    }

    .intro-navigation {
        justify-content: space-between;
        margin-top: 20px;
        width: 100%;
    }

    .quiz-home {
        left: 6%;
        top: 15px;
        padding: 0;
        font-weight: 400;
        font-size: 1.6rem;
        line-height: 1.6rem;
    }

    .quiz-title {
        padding: 10px 10px 10px;
        height: 50px;
        font-size: 1.8rem;
        line-height: 1.8rem;
    }

    .quiz-progress {
        top: 15px;
        right: 7%;
    }

    .progress-text{
        font-size: 1.6rem;
        line-height: 1.6rem;
    }

    /* Mobile Two-Part Question Overrides */
    
    /* General question text positioning and sizing on mobile */
    .question-text {
        font-size: 1.4rem;
        line-height: 2rem;
        max-width: 300px;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 60px auto 20px !important;
        text-align: center !important;
    }

    /* Show question text on mobile for two-part and multi-select types */
    .question-type-two-part .question-text,
    .question-type-two-part_special .question-text,
    .question-type-multi-select .question-text {
        display: block !important;
        font-size: 1.8rem;
        line-height: 2.4rem;
    }

    .question-type-two-part_special.mobile-two-part-question .question-text {
        max-width: 320px;
    }

    .two-part-options {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        width: 100%;
        padding: 0 20px;
    }

    .two-part-main .answer-option {
        padding: 8px 20px;
        font-size: 1.8rem;
    }

    /* Quiz current image positioning on mobile */
    .quiz-current-image{
        bottom: -30px;
        left: 10px;
        width: 82px;
        height: 143px;
    }

    /* Multi-select options layout on mobile */
    .multi-select-options.multi-select-two-columns, 
    .single-select-options.multi-select-two-columns{
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .single-select-options.multi-select-two-columns .answer-option{
        width: 100%;
        font-size: 1.8rem;
        padding: 8px 20px;
        margin: 6px 0;
    }

    /* General answer-option mobile sizing for all question types */
    .answer-option {
        font-size: 1.8rem !important;
        padding: 8px 20px !important;
    }
    
    /* Answer options positioning */
    .answer-options {
        top: 55%;
    }
    
    .multi-select-column {
        width: 100%;
    }

    /* Hide the inline question text for both two-part types on mobile to avoid duplication */
    .question-type-two-part .two-part-main-question,
    .question-type-two-part .two-part-options .two-part-main-question,
    .question-type-two-part-special .two-part-special-main-question,
    .question-type-two-part-special .two-part-special-options .two-part-special-main-question,
    .question-type-two-part-special .two-part-special-main .two-part-special-main-question {
        display: none !important;
    }

    /* Main question container on mobile */
    .two-part-main {
        width: 100%;
        max-width: 400px;
        gap: 12px;
    }

    /* Main question stays in place on mobile */
    .two-part-main.answered {
        transform: translateX(0) !important; /* Override desktop shift */
    }

    /* Secondary questions slide in from bottom right and position under main */
    .two-part-satisfaction {
        width: 100%;
        max-width: 400px;
        transform: translateX(100vw) translateY(0px); /* Start from right edge */
        opacity: 0;
        transition: opacity 0.3s ease 0.2s, transform 0.4s ease 0.3s;
        position: relative;
        margin-top: 20px;
    }

    .two-part-satisfaction:not([style*="display: none"]) {
        opacity: 1;
        transform: translateX(0) translateY(0px); /* Slide to center position */
    }

    /* Remove vertical line on mobile */
    .two-part-satisfaction::before {
        display: none;
    }

    /* Show satisfaction question text on mobile since main question is at top */
    .question-type-two-part .two-part-satisfaction .satisfaction-question {
        display: block !important;
        font-size: 1.8rem;
        line-height: 2.4rem;
        color: var(--color-white);
        margin: 0 0 20px 0;
        text-align: center;
        text-transform: uppercase;
    }

    /* Two-part main and special question sizing */
    .two-part-special-main-question, 
    .two-part-main-question{
        font-size: 2.0rem;
        line-height: 2.6rem;
        max-width: 270px;
        margin: 0 auto;
        text-align: center;
    }

    /* Mobile Two-Part Special Questions */
    .two-part-special-options {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: translate(-50%, -200%) !important;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
        padding: 0 20px;
    }

    .two-part-special-question-text{
        font-size: 1.6rem;
        line-height: 2.2rem;
        text-align: center;
    }

    .two-part-special-main .answer-option {
        padding: 8px 20px;
        margin: 10px auto 0;
        min-width: 120px;
    }

    .two-part-special-main {
        width: 300px;
    }

    /* Main question container for special on mobile */
    .two-part-special-main {
        width: 100%;
        max-width: 400px;
        gap: 12px;
    }

    /* Main question stays in place on mobile for special questions */
    .two-part-special-main.answered {
        transform: translateX(0) !important; /* Override desktop shift */
    }

    /* Secondary questions for special - slide in from bottom right */
    .two-part-special-secondary {
        width: 100%;
        max-width: 400px;
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        grid-gap: 0;
        transform: translateX(100vw) translateY(0px); /* Start from right edge */
        opacity: 0;
        position: relative;
        margin-top: 0;
    }

    .two-part-special-secondary:not([style*="display: none"]) {
        opacity: 1;
        transform: translateX(0) translateY(0px); /* Slide to center position */
    }

    /* Remove vertical line on mobile for special questions */
    .two-part-special-secondary::before {
        display: none;
    }

    /* Stack secondary questions vertically on mobile */
    .two-part-special-question-two,
    .two-part-special-question-three {
        width: 100%;
        margin-bottom: 20px;
        gap: 10px;
    }

    /* Fix answer options positioning on mobile */
    .answer-options {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 10px !important;
        width: 100%;
    }

    /* Adjust button sizing for mobile */
    .two-part-satisfaction .answer-option,
    .two-part-special-option {
        max-width: 300px !important;
        width: 100%;
        font-size: 1.6rem;
        padding: 8px 20px;
        margin: 0 auto;
    }

    /* Insight container sizing on mobile */
    .insight-image-container{
        width: 100%;
        height: 100%;
        max-height: 65%;
        max-width: 85%;
        margin: 0 auto;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Button positioning on mobile */
    .btn-next-question{
        right: 50%;
        transform: translateX(50%);
    }

    /* Mobile Multi-Select Question Styles */
    .question-type-multi-select .multi-select-options {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        gap: 0;
    }

    /* Remove gaps between columns on mobile */
    .question-type-multi-select .multi-select-options.multi-select-two-columns {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .question-type-multi-select .multi-select-column {
        width: 100%;
        margin: 0;
        gap: 0;
    }

    .question-type-multi-select .multi-select-column-first,
    .question-type-multi-select .multi-select-column-second {
        flex: none !important;
        width: 100% !important;
        margin: 0;
        gap: 0;
    }

    .question-type-multi-select .multi-select-column-first{
        margin-top: 20px;
    }

    .question-type-multi-select .multi-select-instruction {
        font-size: 1.4rem;
        color: #fff;
        margin: 10px 0;
        font-weight: 500;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        text-align: center;
    }

    .question-type-multi-select .multi-select-option {
        display: block !important;
        width: 100%;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
        border-bottom: 1px solid var(--color-yellow);
        position: relative;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .question-type-multi-select .multi-select-option:first-child {
        border-top: 1px solid var(--color-yellow);
    }

    /* Remove top border from second column's first option to avoid double border */
    .question-type-multi-select .multi-select-column-second .multi-select-option:first-child {
        border-top: none;
    }

    /* Hide the custom circle styling on mobile */
    .question-type-multi-select .multi-select-option::before {
        display: none;
    }

    .question-type-multi-select .checkbox-label {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 1.6rem;
        font-weight: 400;
        color: #fff;
        text-align: center;
        margin: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* Selected state */
    .question-type-multi-select .multi-select-option.checked {
        background-color: var(--color-yellow);
    }

    .question-type-multi-select .multi-select-option.checked .checkbox-label {
        color: var(--color-nav-gray);
    }

    /* Multi-select continue button positioning and sizing */
    .question-type-multi-select .multi-select-continue {
        position: fixed;
        bottom: 40px;
        right: 50%;
        transform: translateX(50%);
        z-index: 20;
        padding: 8px 20px;
        font-size: 1.8rem;
    }

    .multi-select-options.multi-select-two-columns .multi-select-instruction {
        top: -20px;
    }

    .multi-select-options.multi-select-two-columns .checkbox-label {
        font-size: 1.4rem; /* Smaller font size for two-column */
        line-height: 2rem; /* Specific line height */
        font-weight: normal; /* Not bold */
        margin-top: 2px; /* Slight adjustment to align with checkbox top */
        padding: 8px 5px;
    }

    .profile-image-container{
        width: 100%;
        max-height: 60vh;
        max-width: 80vw;
        height: auto;
        margin: 0 auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        position: absolute;
    }

    /* Mobile Profile CTA Button Layout */
    .profile-cta-wrapper.dual-cta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }

    .profile-cta-btn.profile-cta-primary,
    .profile-cta-btn.profile-cta-secondary {
        padding: 8px 20px;
        font-size: 1.8rem;
        min-width: 200px;
        width: 100%;
        max-width: 300px;
    }

    .profile-cta-container{
        bottom: 5%;
    }

    /* Hide home button in form view on mobile */
    .assessment-view-form .btn-home.quiz-home {
        display: none;
    }

    /* Form view quiz title minimum width on mobile */
    .assessment-view-form .quiz-title {
        min-width: 350px;
    }
    
    .assessment-view-form .configurable-form-content {
        padding-top: 0;
    }

    /* Mobile checkbox group override for assessment forms */
    .assessment-view-form .checkbox-group-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 auto 20px !important;
    }

    .assessment-view-form .checkbox-option {
        flex: 0 1 calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 767px) {
    .assessment-view-form .sf-form-label .form-title {
        font-size: 1.4rem;
        line-height: 1.8rem;
    }

    .assessment-view-form .required-fields-container p.pv-p.center.italic {
        font-size: 1.2rem;
        line-height: 1.2rem;
    }

    .assessment-view-form .input-field {
        height: 35px;
    }

    .assessment-view-form.active {
        overflow-y: scroll;
    }
}

@media screen and (max-width: 400px) {
    .insight-image {
        max-height: 50vh;
    }

    .default-title .big,
    .intro-title .big {
        font-size: 2.6rem;
        line-height: 3.4rem;
        margin: 20px auto;
    }

    .default-title .small,
    .intro-title .small {
        font-size: 2.6rem;
        line-height: 3.4rem;
    }

    .default-subhead {
        font-size: 1.8rem;
        line-height: 2.8rem;
        margin: 0 auto;
    }

    .intro-paragraph {
        font-size: 1.4rem;
        line-height: 2.2rem;
        margin: 0 auto;
    }

    .assessment-view-intro .btn-home {
        font-size: 1.6rem !important;
        line-height: 2rem !important;
        padding: 6px 20px !important;
    }

    .progress-to-quiz,
    .btn-next-question,
    .question-type-multi-select .multi-select-continue {
        font-size: 1.6rem !important;
        line-height: 2rem !important;
        padding: 6px 20px !important;
    }

    .question-type-two-part_special.mobile-two-part-question .question-text,
    .question-type-multi-select .question-text {
        font-size: 1.4rem;
        line-height: 2rem;
        margin-top: 50px !important;
    }

    .two-part-special-question-text {
        font-size: 1.2rem;
        line-height: 1.8rem;
        margin-bottom: 10px;
    }

    .answer-option {
        font-size: 1.2rem !important;
        line-height: 1.8rem !important;
        padding: 6px 20px !important;
    }

    .question-type-two-part .question-text,
    .question-type-two-part .two-part-satisfaction .satisfaction-question {
        font-size: 1.4rem;
        line-height: 2rem;
        padding: 0;
        margin-bottom: 0;
    }

    .two-part-options {
        gap: 10px;
    }

    .question-type-multi-select .multi-select-instruction {
        font-size: 1.4rem !important;
        line-height: 2rem !important;
        margin-bottom: 10px !important;
    }

    .question-type-multi-select .checkbox-label {
        font-size: 1.2rem !important;
        line-height: 1.6rem !important;
        padding: 7px 20px !important;
    }

    .profile-cta-btn.profile-cta-primary, 
    .profile-cta-btn.profile-cta-secondary {
        padding: 8px 20px !important;
        font-size: 1.4rem !important;
        line-height: 2rem !important;
    }

    .profile-image-mobile {
        max-height: 50vh;
    }

    .profile-cta-btn {
        padding: 8px 20px;
        border-radius: 30px;
        font-size: 1.4rem;
        line-height: 1.8rem;
    }
    
}

/* Mobile Safari specific fixes to prevent crashes */
@supports (-webkit-touch-callout: none) {
    /* iPhone Safari specific fixes */
    .assessment-container {
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        -webkit-transform: translateZ(0); /* Force hardware acceleration */
        transform: translateZ(0);
    }
    
    .assessment-view {
        -webkit-overflow-scrolling: touch;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Prevent text size adjustment on orientation change */
    .assessment-container,
    .assessment-view,
    .quiz-slide,
    .answer-option,
    .question-text {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Prevent zoom on input focus */
    .assessment-view-form input,
    .assessment-view-form textarea,
    .assessment-view-form select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}
