        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Source Sans Pro',sans-serif;
            background-color: #f5f5f5;
            line-height: 1.3;
            color: #333;
        }
        input, select, textarea {
            color: #666;padding:5px;
        }
        .container {
            max-width: 640px;
            margin: 20px auto;
            background: white;
            border-radius: 8px;
            padding: 25px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .header {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            position: relative;
        }
        .back-button {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
        }
        .back-button svg {
            width: 24px;
            height: 24px;
            fill: none;
            stroke: #4684bc;
            stroke-width: 2;
        }
        h1 {
            font-size: 24px;
            font-weight: 400;
            color: #4684bc;
            margin: 0 auto;
            text-align: center;
        }
        .step-container {
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 25vh;
            margin-top: 5vh;
        }
        #step1.step-container {
            margin-top: 30px;
        }
        .question {
            font-size: 24px;
            font-weight: 400;
            margin-bottom: 0px;
            color: #333;
            text-align: center;
            width: 100%;
        }
        
        .select-wrapper {
            position: relative;
            margin-bottom: 20px;
            width: 100%;
            max-width: 150px;
        }
        
        .select-label {
            position: absolute;
            left: 0;
            top: 10px;
            color: #333;
            font-size: 16px;
            transition: all 0.2s ease;
            pointer-events: none;
        }
        
        .select-input {
            width: 100%;
            padding: 10px 0;
            font-size: 16px;
            border: none;
            border-bottom: 1px solid #ddd;
            outline: none;
            background: transparent;
            color: #666666;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234684bc%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
            background-repeat: no-repeat;
            background-position: right 0 center;
            background-size: 12px auto;
        }
        
        .select-input:focus ~ .select-label,
        .select-input:not([value=""]) ~ .select-label,
        .select-input.has-value ~ .select-label {
            top: -15px;
            font-size: 14px;
            color: #4684bc;
        }
         .input-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 40px;
            width: 100%;
            max-width: 300px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .input-wrapper {
            position: relative;
            margin-bottom: 20px;
            width: 100%;
        }
        
        .input-label {
            position: absolute;
            left: 0;
            top: 10px;
            color: #333;
            font-size: 16px;
            transition: all 0.2s ease;
            pointer-events: none;
        }
        
        .text-input {
            width: 100%;
            padding: 10px 0;
            font-size: 16px;
            border: none;
            border-bottom: 1px solid #ddd;
            outline: none;
            background: transparent;
            color: #666666;
        }
        
        .text-input:focus ~ .input-label,
        .text-input:not([value=""]) ~ .input-label,
        .text-input.has-value ~ .input-label {
            top: -15px;
            font-size: 14px;
            color: #4684bc;
        }
        .date-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
        }

        .continue-btn {
            display: block;
            padding: 12px;
            width: 100%;
            max-width: 300px;
            background-color: #4682B4;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: 400;
            cursor: pointer;
            text-align: center;
            margin: 0 auto;
            margin-top: 30px;
            /* Ensure button stays in document flow on desktop */
            position: static;
            left: auto;
            right: auto;
            bottom: auto;
            box-shadow: none;
        }
        .continue-btn:hover {
            background-color: #3a6fa0;
        }
        .intro-content {
            max-width: 700px;
            margin: 0 auto;
        }
        .intro-title {
            font-size: 28px;
            font-weight: 400;
            margin-bottom: 30px;
            color: #4684bc;
            text-align: center;
        }
        .intro-text {
            font-size: 14px;
            line-height: 1.6;
            color: #555;
            margin-bottom: 30px;
        }
        .section-title {
            font-size: 18px;
            font-weight: 400;
            color: #4684bc;
            margin: 30px 0 15px 0;
        }
        .section-content {
            margin-bottom: 20px;
        }
        .requirements-list {
            list-style-type: none;
            padding-left: 20px;
            margin-bottom: 20px;
        }
        .requirements-list li {
            position: relative;
            padding-left: 15px;
            margin-bottom: 8px;
            line-height: 1.5;
        }
        .requirements-list li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #4684bc;
        }
        .benefits-list {
            list-style-type: none;
            padding-left: 20px;
            margin-bottom: 20px;
        }
        .benefits-list li {
            position: relative;
            padding-left: 15px;
            margin-bottom: 8px;
            line-height: 1.5;
        }
        .benefits-list li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #4684bc;
        }
        .application-list {
            list-style-type: none;
            padding-left: 20px;
            margin-bottom: 20px;
        }
        .application-list li {
            position: relative;
            padding-left: 15px;
            margin-bottom: 8px;
            line-height: 1.5;
        }
        .application-list li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #4684bc;
        }
        .contact-info {
            font-style: italic;
            color: #666;
            margin: 15px 0;
        }
        .bottom-divider {
            height: 1px;
            background-color: #ddd;
            margin: 30px 0;
        }
        .question {
            font-size: 24px;
            font-weight: 400;
            margin-bottom: 0px;
            color: #333;
            text-align: center;
            width: 100%;
        }
        .form-group {
            position: relative;
            margin-bottom: 30px;
        }
        
        /* Field tip/hint text - positioned close to the input above */
        .fieldTip,
        .field-tip {
            font-size: 13px;
            color: #888;
            margin-top: -25px;
            margin-bottom: 30px;
            line-height: 1.4;
        }
        
        /* When field tip follows a form-group, reduce the gap */
        .form-group + .fieldTip,
        .form-group + .field-tip {
            margin-top: -25px;
        }
        
        .form-control {
            width: 100%;
            padding: 10px 0;
            padding-left:5px;
            font-size: 16px;
            border: none;
            border-bottom: 1px solid #ddd;
            outline: none;
            background: transparent;
            color: #666;
        }
        /* Select styling - custom arrow for desktop */
        select.form-control {
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            appearance: none !important;
            border-radius: 0 !important;
            background-color: transparent !important;
            background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 5px center !important;
            background-size: 10px auto !important;
            padding-right: 25px !important;
            border: none !important;
            border-bottom: 1px solid #ddd !important;
        }

        /* iOS-specific padding adjustments (iOS ignores appearance:none but respects padding) */
        @media screen and (max-width: 768px) {
            select.form-control {
                font-size: 14px;
                padding: 8px 20px 8px 12px;
                line-height: 1.2;
            }
        }          
        .form-label {
            position: absolute;
            left: 0;
            top: 10px;
            color: #666;
            font-size: 16px;
            transition: all 0.2s ease;
            pointer-events: none;
        }
        
        .form-control:focus ~ .form-label,
        .form-control:not(:placeholder-shown) ~ .form-label {
            top: -15px;
            font-size: 14px;
            color: #4684bc;
        }
        
        .required-marker {
            color: #72141e;
        }
        .switch-container {
            display: flex;
            justify-content: center;
            padding: 10px 0 0 0;
            width: 100%;
        }
        .switch-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .option-label {
            color: #666666;
            font-size: 16px;
            font-weight: 400;
            min-width: 35px;
            text-align: center;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .option-label:hover {
            color: #4b9bd4;
        }
        .switch {
            position: relative;
            width: 52px;
            height: 18px;
            background-color: #ccc;
            border-radius: 18px;
            cursor: pointer;
            display: flex;
        }
        .switch input[type="radio"] {
            opacity: 0;
            width: 50%;
            height: 100%;
            position: absolute;
            z-index: 2;
            cursor: pointer;
            margin: 0;
            color: #666;
        }
        .switch .leftOption {
            left: 0;
        }
        .switch .rightOption {
            right: 0;
        }
        .slider {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            transition: .4s;
            pointer-events: none;
            border-radius: 18px;
        }
        .slider:before {
            position: absolute;
            content: "";
            height: 14px;
            width: 14px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        .rightOption:checked ~ .slider {
            background-color: #4b9bd4;
        }
        .rightOption:checked ~ .slider:before {
            transform: translateX(34px);
        }
        .switch .slider.middle:before {
            transform: translateX(17px);
        }
        .switch.unselected {
            background-color: #e0e0e0;
        }
        .leftOption:checked ~ .slider {
            background-color: #4b9bd4;
        }
        .leftOption:checked ~ .slider:before {
            transform: translateX(0);
        }
        

        /* Link styling */
        .intro-text a, .contact-info a, .application-list a {
            color: #4684bc;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s ease;
        }
        
        .intro-text a:hover, .contact-info a:hover, .application-list a:hover {
            color: #3a6fa0;
            text-decoration: underline;
        }
        
        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }
        
        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 25px;
            border: 1px solid #888;
            border-radius: 8px;
            width: 80%;
            max-width: 700px;
            max-height: 85vh;
            overflow-y: auto;
            position: relative;
        }
        
        .modal-close {
            color: #aaa;
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1010;
            width: 40px;
            height: 40px;
            text-align: center;
            line-height: 40px;
        }
        
        .modal-close:hover,
        .modal-close:focus {
            color: #4684bc;
            text-decoration: none;
        }
        
        .modal-header {
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #ddd;
            padding-right: 40px; /* Make room for the close button */
        }
        
        .modal-title {
            font-size: 24px;
            font-weight: 400;
            color: #4684bc;
            margin-right: 25px;
        }
        
        .modal-body {
            padding-right: 10px;
        }
        
        .req-guidelines-link {
            color: #4684bc;
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            display: block;
            margin: 0 auto 24px;
            text-align: center;
        }
        
        .req-guidelines-link:hover {
            text-decoration: underline;
            color: #3a6fa0;
        }
        
        @media (max-width: 768px) {
            body {
                padding-bottom: 0; /* Remove any body padding */
            }
            
            .container {
                margin: 0 auto;
                padding: 15px;
                border-radius: 0;
                box-shadow: none; /* Remove box shadow on mobile */
                position: relative; /* For absolute positioning of child elements */
                min-height: 100vh; /* Ensure container takes at least full viewport height */
            }
            
            h1 {
                font-size: 20px;
            }
            
            .intro-title {
                font-size: 24px;
            }
            
            .section-title {
                font-size: 18px;
            }
            
            .intro-text {
                font-size: 16px; /* Increased font size for better readability on mobile */
                line-height: 1.7; /* Slightly increased line height to match larger font */
                margin-bottom: 35px; /* Increased bottom margin */
            }
            
            .bottom-divider {
                margin: 30px 0 50px;
            }
            
            /* Create a wrapper div for the bottom elements to position them at the bottom */
            .bottom-elements {
                position: fixed;
                bottom: 20px;
                left: 15px;
                right: 15px;
                max-width: 100%; /* Changed from 'none' to '100%' to be explicit */
                width: calc(100% - 30px); /* Calculate full width minus the left/right spacing */
                padding: 0;
                z-index: 90;
                background-color: white; /* Add background to prevent content showing through */
                padding-top: 10px;
            }
            
            /* Center requirements & guidelines link on mobile */
            .req-guidelines-link {
                display: block;
                text-align: center;
                margin: 0 auto 24px;
                font-size: 16px;
                font-weight: 600;
                color: #4684bc;
                background-color: transparent;
                border: none;
                border-radius: 0;
            }
            
            .req-guidelines-link:hover {
                background-color: transparent;
                text-decoration: underline;
            }
            
            .question {
                font-size: 22px;
                margin-bottom: 0px;
                padding: 0 10px;
                text-align: center;
                width: 100%;
            }
            .date-container {
                flex-direction: column;
                align-items: center;
                width: 100%;
                max-width: 300px;
                margin-left: auto;
                margin-right: auto;
                margin-bottom: 0;
            }
            .continue-btn {
                margin: 0 auto;
                height: 64px;
                font-size: 18px;
                max-width: 100%;
            }
            .step-container .continue-btn {
                position: fixed;
                bottom: 16px;
                left: 50%;
                transform: translateX(-50%);
                width: calc(100% - 32px);
                max-width: 608px; /* container max-width (640px) minus padding (32px) */
                margin: 0;
                border-radius: 8px;
                z-index: 100;
                height: 70px;
                font-size: 20px;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            }
            
            .step-container {
                width: 100%;
                align-items: center;
                justify-content: flex-start;
                padding: 0 10px;
                margin-top: 5vh !important;
            }

            
            /* Make modal full screen on mobile */
            .modal-content {
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 20px;
                max-height: 100%;
                border-radius: 0;
                border: none;
            }
            
            .modal-title {
                font-size: 20px;
            }
            
            /* Fixed close button for mobile */
            .modal-close {
                position: fixed;
                top: 15px;
                right: 15px;
                background-color: rgba(255, 255, 255, 0.9);
                border-radius: 50%;
                width: 44px;
                height: 44px;
                line-height: 44px;
                text-align: center;
                font-size: 24px;
                box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            }
            
            /* Add padding to modal body for better scrolling experience */
            .modal-body {
                padding-bottom: 30px;
            }
            
            /* Adjust header for mobile */
            .modal-header {
                margin-top: 10px;
            }

            .switch-container {
                justify-content: center;
                width: 100%;
            }
            .switch {
                height: 32px;  
                width: 64px;   
            }
            .slider:before {
                height: 26px;  
                width: 26px;   
                bottom: 3px;
            }
            .rightOption:checked ~ .slider:before {
                transform: translateX(32px); 
            }
            .option-label {
                font-size: 18px; 
                min-width: 45px; 
            }

            /* Fix date input centering on mobile - target webkit shadow DOM */
            input[type="date"].form-control,
            .form-group input[type="date"].form-control,
            .form-container .form-group input[type="date"].form-control {
                text-align: left !important;
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
            }

            /* Target webkit date picker internal elements */
            input[type="date"]::-webkit-datetime-edit,
            input[type="date"]::-webkit-datetime-edit-fields-wrapper,
            input[type="date"]::-webkit-datetime-edit-text,
            input[type="date"]::-webkit-datetime-edit-month-field,
            input[type="date"]::-webkit-datetime-edit-day-field,
            input[type="date"]::-webkit-datetime-edit-year-field {
                text-align: left !important;
                padding-left: 0;
            }

            input[type="date"]::-webkit-inner-spin-button,
            input[type="date"]::-webkit-calendar-picker-indicator {
                margin-left: auto;
            }

        }
        
        /* Move this inside the media query to prevent it from applying globally */
        @media (min-width: 769px) {
            .bottom-elements {
                width: 100%;
                max-width: 300px;
                margin: 0 auto;
            }
        }

        /* Dashboard Icon */
.dashboard-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 0px;
    padding: 8px;
    box-sizing: border-box;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.dashboard-icon:hover,
.dashboard-icon:focus {
    opacity: 1;
}

.dashboard-square {
    background-color: #5582b7;
    border-radius: 50%;
    width: 4px;
    height: 4px;
    justify-self: center;
    align-self: center;
}

/* Mobile dashboard icon */
@media (max-width: 768px) {
    .dashboard-icon {
        width: 32px;
        height: 32px;
        gap: 0px;
        padding: 6px;
    }
}


/* ===== CHIP RAIL NAVIGATION - CONSOLIDATED ===== */

/* Base chip rail container */
.apa-crumbs {
    margin: 0 0 12px;
    background: #fff;
    border: 1px dashed #e6e6e6;
    border-radius: 12px;
}

.apa-crumbs-inner {
    padding: 8px 8px 6px;
}

/* Chip list container */
.apa-crumbs-list {
    list-style: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
    padding: 0;
}

.apa-crumbs-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.apa-crumbs-list li {
    flex: 0 0 auto;
}

/* Base chip styling */
.apa-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d8dde6;
    background: #f8f9fb;
    color: #475467;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.1;
    transition: background .2s, border-color .2s, color .2s;
}

.apa-chip:hover {
    background: #eef3fb;
}

.apa-chip .idx {
    font-weight: 700;
    opacity: .85;
}

.apa-chip svg {
    width: 14px;
    height: 14px;
    flex: none;
}

/* Chip states */
.apa-chip.locked {
    color: #9aa3af;
    border-style: dashed;
    pointer-events: none;
    background: #fafafa;
}

.apa-chip.current {
    background: #e9f2ff;
    color: #1e73be;
    border-color: #1e73be;
}

.apa-chip.done {
    background: #e9fbf0;
    color: #22543d;
    border-color: #34d399;
}

/* Desktop slider */
.apa-scrollbar {
    margin: 4px 2px 2px;
    height: 8px;
    background: #eceff3;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}

.apa-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    min-width: 36px;
    background: #c5cbd3;
    border-radius: 999px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: left .06s, width .06s, background .12s;
}

.apa-thumb:active {
    cursor: grabbing;
    background: #b7bec8;
}

/* Chip rail link styles */
.apa-crumbs a,
.apa-crumbs a:visited {
    color: inherit;
    text-decoration: none;
}

.apa-crumbs a.apa-chip,
.apa-crumbs a.apa-chip:link,
.apa-crumbs a.apa-chip:visited,
.apa-crumbs a.apa-chip:hover,
.apa-crumbs a.apa-chip:active,
.apa-crumbs a.apa-chip:focus { 
    text-decoration: none !important; 
    color: inherit !important; 
}

.apa-crumbs a.apa-chip *,
.apa-crumbs a.apa-chip span,
.apa-crumbs a.apa-chip .idx,
.apa-crumbs a.apa-chip .label { 
    text-decoration: none !important; 
    color: inherit !important; 
}

.apa-crumbs a.apa-chip:focus-visible {
    outline: 2px solid var(--chip-focus, #2e7dd7);
    outline-offset: 2px;
    border-radius: 9999px;
}

/* Mobile styles - 640px and below */
@media (max-width: 640px) {
    .apa-crumbs {
        margin: 0 0 6px;
    }
    
    .apa-crumbs-inner {
        padding: 6px 8px 4px;
    }
    
    .apa-crumbs-list {
        gap: 4px;
    }
    
    .apa-chip {
        font-size: 13px;
        padding: 5px 9px;
    }
    
    .apa-chip svg {
        width: 12px;
        height: 12px;
    }
    
    .apa-scrollbar {
        display: none;
    }
}

/* Mobile styles - 768px and below */
@media (max-width: 768px) {
    /* Reduce bottom padding for mobile but keep some spacing */
    nav.apa-crumbs > .apa-crumbs-inner {
        padding-bottom: 6px !important;
    }

    /* Ensure the list itself isn't adding space */
    nav.apa-crumbs .apa-crumbs-list {
        margin-bottom: 0 !important; 
        padding-bottom: 0 !important;
    }
    
    nav.apa-crumbs .apa-crumbs-list > li {
        margin-bottom: 0 !important;
    }

    /* Completely hide the desktop slider/track on mobile */
    nav.apa-crumbs .apa-scrollbar {
        display: none !important; 
        height: 0 !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        overflow: hidden !important;
    }
}

/* Desktop styles - 769px and above */
@media (min-width: 769px) {
    /* Single source of truth for vertical rhythm */
    .apa-crumbs { 
        --chipbar-gap: 4px;
        padding: var(--chipbar-gap) 2px;
    }

    /* Remove extra internal margins and set the horizontal gap between chips */
    .apa-crumbs-list {
        margin: 0;
        gap: var(--chipbar-gap);
    }

    /* Compact slider with symmetric spacing above/below */
    .apa-crumbs .apa-scrollbar {
        height: 6px;
        margin: var(--chipbar-gap) 0;
    }

    /* Make sure no inner container adds extra bottom padding */
    .apa-crumbs-inner { 
        padding-bottom: 0; 
    }
    
    /* Desktop: Ensure continue button stays in normal document flow */
    .continue-btn,
    .step-container .continue-btn {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        padding: 12px !important;
        font-size: 16px !important;
        margin: 30px auto 0 auto !important;
        box-shadow: none !important;
    }
}
/* Loader */
.loader{border:8px solid #f3f3f3;border-radius:50%;border-top:8px solid #e8e8e8;width:50px;height:50px;animation:spin 1s linear infinite;margin:0 auto;}
@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
/* ===== MODERN MULTISELECT STYLING ===== */

/* Container for multiselect */
.modern-multiselect,
.multiselect-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.modern-multiselect .multiselect-label,
.multiselect-container .multiselect-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 400;
}

/* Override Chosen plugin styles for modern look */
.chosen-container {
    width: 100% !important;
    font-family: 'Source Sans Pro', sans-serif;
}

.chosen-container-multi .chosen-choices {
    background: #fff !important;
    border: none !important;
    border-bottom: 2px solid #ddd !important;
    border-radius: 0 !important;
    padding: 8px 0 !important;
    min-height: 44px !important;
    box-shadow: none !important;
}

.chosen-container-multi .chosen-choices:focus,
.chosen-container-active .chosen-choices {
    border-bottom-color: #4682B4 !important;
    box-shadow: none !important;
}

/* Selected items - pill style */
.chosen-container-multi .chosen-choices li.search-choice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border: 1px solid #90caf9 !important;
    border-radius: 20px !important;
    padding: 6px 26px 6px 12px !important;
    margin: 4px 6px 4px 0 !important;
    color: #1565c0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    position: relative !important;
    line-height: 1.3 !important;
}

/* Remove button (X) */
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 8px !important;
    background: none !important;
    width: 14px !important;
    height: 14px !important;
    font-size: 0 !important;
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before {
    content: "×" !important;
    font-size: 18px !important;
    color: #1565c0 !important;
    line-height: 14px !important;
    display: block !important;
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover:before {
    color: #0d47a1 !important;
}

/* Search input field */
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
    font-size: 16px !important;
    color: #333 !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    font-family: 'Source Sans Pro', sans-serif !important;
}

/* Dropdown results */
.chosen-container .chosen-drop {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    margin-top: 4px !important;
    background: #fff !important;
}

.chosen-container .chosen-results {
    max-height: 250px !important;
    padding: 4px 0 !important;
    margin: 0 !important;
}

.chosen-container .chosen-results li {
    padding: 12px 16px !important;
    font-size: 15px !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

.chosen-container .chosen-results li.highlighted {
    background: #e3f2fd !important;
    color: #1565c0 !important;
}

.chosen-container .chosen-results li.result-selected {
    background: #f5f5f5 !important;
    color: #999 !important;
}

.chosen-container .chosen-results li.no-results {
    background: #fafafa !important;
    color: #999 !important;
    font-style: italic !important;
}

/* Single select Chosen styling */
.chosen-container-single .chosen-single {
    background: #fff !important;
    border: none !important;
    border-bottom: 2px solid #ddd !important;
    border-radius: 0 !important;
    padding: 8px 0 !important;
    height: auto !important;
    box-shadow: none !important;
    font-size: 16px !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

.chosen-container-single .chosen-single span {
    margin-right: 30px !important;
}

.chosen-container-single .chosen-single div {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 0 !important;
}

/* Mobile adjustments for multiselect */
@media (max-width: 768px) {
    .chosen-container-multi .chosen-choices {
        min-height: 50px !important;
        padding: 6px 0 !important;
    }
    
    .chosen-container-multi .chosen-choices li.search-choice {
        font-size: 13px !important;
        padding: 5px 24px 5px 10px !important;
        margin: 3px 4px 3px 0 !important;
    }
    
    .chosen-container .chosen-results li {
        padding: 14px 16px !important;
        font-size: 16px !important;
    }
    
    .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
}

/* Native select fallback styling (when Chosen is not used on mobile) */
@media (max-width: 768px) {
    select.chosen-select[multiple] {
        width: 100% !important;
        min-height: 120px !important;
        padding: 8px !important;
        font-size: 16px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        background: #fff !important;
    }
    
    select.chosen-select[multiple] option {
        padding: 10px 8px !important;
        font-size: 16px !important;
    }
}
/* ============================================
   SUBMIT SPINNER OVERLAY
   ============================================ */

/* Full-screen overlay for form submission */
.submit-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.submit-overlay.active {
    display: flex;
}

.submit-overlay .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4684bc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.submit-overlay .spinner-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

/* Disable button while submitting */
.continue-btn.submitting {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}



/* ==========================================================================
   STEP 42 - PERSONALITY INTRO PAGE STYLES
   ========================================================================== */

/* Assessment Complete Banner */
.assessment-complete-banner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.assessment-complete-banner .checkmark {
    width: 50px;
    height: 50px;
    background: #28a745;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.assessment-complete-banner .checkmark svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.assessment-complete-banner h3 {
    color: #155724;
    margin: 0 0 5px 0;
    font-size: 20px;
}

.assessment-complete-banner p {
    color: #155724;
    margin: 0;
    font-size: 14px;
}

/* Results Summary Grid */
.results-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.results-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.domain-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.domain-score {
    background: white;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.domain-score .domain-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-score .domain-percentile {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 3px;
}

.domain-score .domain-descriptor {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.domain-score.high .domain-percentile { color: #28a745; }
.domain-score.high .domain-descriptor { background: #d4edda; color: #155724; }
.domain-score.average .domain-percentile { color: #ffc107; }
.domain-score.average .domain-descriptor { background: #fff3cd; color: #856404; }
.domain-score.low .domain-percentile { color: #dc3545; }
.domain-score.low .domain-descriptor { background: #f8d7da; color: #721c24; }

/* Legacy Notice */
.legacy-notice {
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.legacy-notice p {
    margin: 0;
    color: #084298;
    font-size: 14px;
}

/* Begin Assessment Button */
.begin-assessment-btn {
    display: inline-block;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.begin-assessment-btn:hover {
    background: linear-gradient(135deg, #004080 0%, #0056b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
    color: white;
    text-decoration: none;
}

/* Assessment Info List */
.assessment-info-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.assessment-info-list li {
    padding: 10px 0 10px 35px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.assessment-info-list li:last-child {
    border-bottom: none;
}

.assessment-info-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}
