.iq-checker-form-wrapper * {
    box-sizing: border-box !important;
}

.iq-checker-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 16px 0px;
}

.iq-checker-button-wrapper button {
    background-color: #3420cd;
    color: #fff;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 16px;
    border-radius: 6px;
    outline: none;
    border: none;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
}

.iq-checker-button-wrapper button:hover {
    background-color: #330a84;
}

.iq-checker-form-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.iq-checker-form {
    position: relative;
    background-color: #fff;
    padding: 30px 40px;
    max-height: calc(100% - 32px);
    overflow-y: auto;
    border-radius: 20px;
}

@media screen and (max-width: 1024px) {
    .iq-checker-form {
        width: calc(100% - 32px);
        padding: 32px 16px;
    }
}

.iq-checker-form>div {
    width: 870px;
}

@media screen and (max-width: 1024px) {
    .iq-checker-form>div {
        width: 100%;
    }
}

#iq-checker-form-close {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    #iq-checker-form-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
}

#iq-checker-timer-text {
    color: #5050ff;
}

.iq-checker-timer {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.iq-checker-heading {
    font-size: 28px;
    text-align: center;
    text-transform: uppercase;
    margin: 0px 0px 20px 0px !important;
    font-weight: 700;
    color: #5050ff;
}

@media screen and (max-width: 1024px) {
    .iq-checker-heading {
        font-size: 24px;
        margin: 0px 0px 14px 0px !important;
    }
}

.iq-checker-title {
    margin: 0px 0px 10px 0px;
    font-size: 20px;
    font-weight: 700;
}

@media screen and (max-width: 1024px) {
    .iq-checker-title {
        font-size: 18px;
        margin: 0px 0px 8px 0px;
    }
}

.iq-checker-bold {
    font-weight: 700;
}

.iq-checker-p {
    font-size: 18px;
    margin: 0px 0px 10px 0px !important;
}

@media screen and (max-width: 1024px) {
    .iq-checker-p {
        font-size: 16px;
        margin: 0px 0px 8px 0px !important;
    }
}


.iq-checker-question-wrapper {
    /* Retaining some basic structure, but updating visual appeal */
    border-radius: 16px; /* More pronounced rounded corners */
    background: #fdfdfd; /* A subtle off-white for a clean feel */
    padding: 25px 35px; /* More generous padding */
    border: 1px solid #e0e0e0; /* Softer border */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* A more prominent, elegant shadow */
    margin-bottom: 40px; /* Ensure good spacing below the questions wrapper */
}

/* --- Question Label Styling --- */
.iq-checker-question label {
    cursor: pointer;
    font-size: 1em; /* Slightly larger and more readable */
    color: #333; /* Darker text for better contrast */
    line-height: 1.6; /* Improved line height for readability */
    transition: color 0.2s ease;
}

.iq-checker-question label:hover {
    color: #007bff; /* A nice blue on hover for text labels */
}

@media screen and (max-width: 1024px) {
    .iq-checker-question label {
        font-size: 16px;
    }
}

.iq-checker-text-answers {
    display: flex;
    flex-direction: column;
}

.iq-checker-image-answers {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 360px;
    gap: 30px;
}

@media screen and (max-width: 1024px) {
    .iq-checker-image-answers {
        width: 100%;
        gap: 16px;
    }
}

.iq-checker-image-answers input[type="checkbox"] {
    display: none;
    /* Hide the checkbox */
}

.image-question-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media screen and (max-width: 1024px) {
    .image-question-container {
        flex-direction: column;
        gap: 20px;
    }
}

.iq-checker-question .image-question-container>img {
    aspect-ratio: 1;
    width: 400px;
    border: 1.5px solid #d5d5d5;
    border-radius: 4px;
}

@media screen and (max-width: 1024px) {
    .iq-checker-question .image-question-container>img {
        width: 100%;
    }
}

.iq-checker-image-answers input[type="checkbox"]+label {
    width: 100px;
    height: auto;
}

@media screen and (max-width: 1024px) {
    .iq-checker-image-answers input[type="checkbox"]+label {
        width: calc((100% - 32px) / 3);
    }
}

.iq-checker-image-answers input[type="checkbox"]+label img {
    border: 1.5px solid #d5d5d5;
    border-radius: 4px;
    width: 100%;
    aspect-ratio: 1;
    /* Default state with no border */
}

.iq-checker-image-answers input[type="checkbox"]:checked+label img {
    border: 1.5px solid #5050ff;
    /* When checked, show the border */
}

.iq-checker-question-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15.33px;
    margin-top: 30px;
    width: 100%;
}

@media screen and (max-width: 1024px) {
    .iq-checker-question-pagination {
        gap: 8.7px;
        margin-top: 20px;
    }
}

.iq-checker-question-pagination-button {
    border: 2px solid #ccc; /* Slightly thicker, neutral border */
    background-color: #fff; /* White background for inactive buttons */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px; /* Slightly larger button size */
    height: 45px; /* Slightly larger button size */
    border-radius: 50%; /* Make them perfectly circular */
    cursor: pointer;
    font-weight: 600; /* Bolder text for numbers */
    font-size: 1.05em; /* Slightly larger font size */
    color: #555; /* Neutral grey for inactive numbers */
    transition: all 0.3s ease; /* Smooth transitions for all properties */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.iq-checker-question-pagination-button:hover {
    background-color: #f0f0f0; /* Light grey on hover */
    border-color: #007bff; /* Primary blue on hover */
    color: #007bff;
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 1024px) {
    .iq-checker-question-pagination-button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

.iq-checker-question-pagination-button.current {
    background-color: #007bff; /* Vibrant blue for current page */
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4); /* Stronger shadow for current */
    transform: scale(1.05); /* Slightly enlarge current button */
}

.iq-checker-question-pagination-button.done {
    background-color: #28a745; /* Green for completed pages */
    color: #fff;
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3); /* Green shadow for done */
}

.iq-checker-progress-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px !important;
}

.iq-checker-question-result {
    display: none;
}

.iq-checker-instruction {
    text-align: center;
}

.iq-checker-instruction-button {
    color: #5050ff;
    text-decoration: underline;
    cursor: pointer;
}

.iq-checker-password-invalid {
    color: #ED2939;
    margin: 6px 0px 10px 0px;
    font-size: 16px;
    display: none;
}

.iq-checker-password {
    width: 870px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    padding: 0px 20px;
    font-size: 18px;
    outline: none;
}

@media screen and (max-width: 1024px) {
    .iq-checker-password {
        width: 100%;
        font-size: 16px;
    }
}

.iq-checker-result-buttons {
    display: flex;
    gap: 25px; /* Increased gap between buttons */
    justify-content: center;
    margin-top: 35px; /* More space above buttons */
    margin-bottom: 25px; /* Space below buttons (if any) */
}

/* --- Individual Result Buttons --- */
.iq-checker-result-buttons button {
    background-color: #dc3545; /* A standard, clear red for primary action */
    color: #fff;
    height: 48px; /* Taller buttons */
    padding: 0px 24px; /* More horizontal padding */
    border-radius: 8px; /* Softer rounded corners */
    outline: none;
    border: none;
    font-weight: 700;
    font-size: 1.1em; /* Slightly larger font */
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transitions */
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3); /* Subtle red shadow */
    min-width: 150px; /* Ensure a decent minimum width */
}

.iq-checker-result-buttons button:hover {
    background-color: #c82333; /* Darker red on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 7px 20px rgba(220, 53, 69, 0.4); /* Enhanced shadow on hover */
}

.iq-checker-result-buttons button:active {
    transform: translateY(0); /* Press down effect */
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.iq-checker-result {
    border-radius: 16px; /* More rounded container */
    background-color: #ffffff; /* Clean white background */
    padding: 30px 40px; /* More spacious padding */
    margin-top: 40px; /* More space from previous elements */
    display: none; /* Keep hidden by default */
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Deeper, more elegant shadow */
    border: 1px solid #e0e0e0; /* Consistent light border */
}


.iq-checker-content {
    display: none;
    border-radius: 10px;
    background-color: #f5f5f5;
    padding: 12px 20px;
    margin: 20px 0px 0px 0px;
}

.iq-checker-content img {
    border-radius: 5px;
    width: 100%;
    margin: 0px 0px 16px 0px;
}

.iq-checker-content p {
    margin: 0px 0px 16px 0px;
}

#iq-checker-result {
    color: #302f2f; /* Màu chữ đen hoặc xám đậm để dễ nhìn trên nền sáng */
    font-size: 4.2em; /* Tăng kích thước số thêm một chút để nổi bật */
    font-weight: 900; /* Làm số siêu đậm (ultra-bold) */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px; /* Tăng kích thước vòng tròn */
    height: 190px; /* Tăng kích thước vòng tròn */
    border-radius: 50%; /* Vẫn giữ hình tròn hoàn hảo */
    line-height: 1; /* Đảm bảo căn giữa dọc hoàn hảo */
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0); /* Gradient nền xám/trắng tinh tế */
    border: 6px solid #a0a0a0; /* Border xám đậm hơn, dày hơn */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), /* Đổ bóng mạnh mẽ hơn, rõ ràng hơn */
                inset 0 0 15px rgba(255, 255, 255, 0.8); /* Bóng sáng bên trong tạo hiệu ứng 3D */
    margin-bottom: 30px; /* Tăng khoảng cách dưới vòng tròn */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Bóng chữ rõ hơn để số nổi bật */
    letter-spacing: -2px; /* Giảm khoảng cách giữa các chữ số để chúng gắn kết hơn */
}

#iq-checker-result-text {
    margin: 16px 0px 0px 0px;
}

#iq-checker-result-text img {
    border-radius: 5px;
    width: 100%;
    margin: 0px 0px 16px 0px;
}

#iq-checker-result-text p {
    margin: 0px 0px 16px 0px;
}

#iq-checker-result-text ul {
    margin: 0px 0px 16px 0px;
    padding: 0px 0px 0px 16px;
}

#iq-checker-result-text li {
    margin: 0px 0px 4px 0px;
}

/* Progress bar */
@keyframes progress {
    0% {
        --percentage: 0;
    }

    100% {
        --percentage: var(--value);
    }
}

@property --percentage {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

/* --- Wrapper for the Horizontal Progress Bar --- */
/* It's good practice to style the container that holds the actual progress bar */
/* This ensures the bar itself takes up the full width inside its defined space */
.mbti-checker-progress-wrapper {
    width: 100%; /* Make the wrapper take full available width */
    height: 12px; /* Set the height of the entire progress bar container */
    background-color: #e0e0e0; /* Color of the unfilled part of the bar */
    border-radius: 6px; /* Slightly rounded ends for the bar */
    margin: 25px auto; /* Center the bar and add vertical spacing */
    overflow: hidden; /* Ensures the fill doesn't extend beyond the rounded corners */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle inner shadow for depth */
}

/* --- The Actual Progress Bar Fill --- */
[role="progressbar"] {
    /* We no longer need many of the circular properties */
    --value: 0; /* Default value, assumed to be set by JavaScript */
    --primary-color: #4CAF50; /* A vibrant green for the progress fill */
    --text-color: #ffffff; /* Color for percentage text, if shown inside */

    width: var(--value, 0%); /* This defines the filled portion of the bar */
    height: 100%; /* Make the fill take up the full height of its wrapper */
    background-color: var(--primary-color); /* The fill color */
    border-radius: 6px; /* Match the border-radius of the wrapper */
    transition: width 0.6s ease-out; /* Smooth animation when progress changes */

    /* Removed properties that create a circle or specific inner text */
    aspect-ratio: unset; /* No longer square */
    position: relative; /* Keep if you want text inside, otherwise can be removed */
    overflow: hidden; /* Keep if you want text inside, otherwise can be removed */
    display: flex; /* Changed to flex to potentially center text inside */
    align-items: center; /* Vertically center text if it's placed inside */
    justify-content: flex-end; /* Align text to the end of the bar */
    margin: 0; /* No external margins needed here */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Small shadow for the fill */
}

/* --- Percentage Text (Optional, if you want it inside the bar) --- */
/* If you want the percentage text to appear *on* the bar itself, use this */
/* Otherwise, the timer text below the bar (mbti-checker-timer) is usually sufficient. */
[role="progressbar"]::after {
    /* Only include this if you want the percentage text *inside* the bar */
    counter-reset: percentage var(--value);
    content: counter(percentage) '%';
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.8em; /* Smaller font size for text inside the bar */
    font-weight: 600;
    color: var(--text-color); /* White text for contrast on green background */
    margin-right: 10px; /* Space from the right edge of the fill */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Subtle shadow for readability */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in;
}

/* Show percentage text when bar is wide enough */
[role="progressbar"][style*="--value"]:not([style*="--value: 0"])::after {
    opacity: 1; /* Make visible when progress is not 0 */
}

/* --- Remove existing pseudo-elements for circular bar if they exist in other places --- */
/* Ensure no conflicting ::before for the conic gradient remains */
/* You might want to remove any existing ::before or ::after from your [role="progressbar"] */
/* if they're causing issues with this new horizontal bar */