.rating-scale {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.rating-options {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap; /* Allow rating boxes to wrap into rows on mobile */
    width: 100%;
    margin: 0 auto;
}

.rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background-color: #fff; /* Default background */
    padding: 0;  
    min-width:50px;
}

.rating-box-label {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    cursor: pointer;
}

.rating-box input[type="radio"] {
    display: none;
}

/* Hover effect for the entire box */
.rating-box:hover {
    background-color: #f7f7f7; /* Light gray background on hover */
}

/* Active or focus state of the entire box */
.rating-box input[type="radio"]:focus + .rating-box-number,
.rating-box input[type="radio"]:checked + .rating-box-number {
    background-color: #43aedc; /* Green background for focus or checked */
    color: #fff; /* White text */
}

/* Styling the number inside the box */
.rating-box-number {
    font-size: 17px;    
    z-index: 1;
    padding: 10px;
}

/* Labels for "Not At All Likely" and "Extremely Likely" */
.rating-labels {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin-top: 10px;
    font-size: 14px;
}

.rating-labels span {
    font-weight: bold;
}

/* Responsive Design for Small Screens (mobile) */
@media (max-width: 768px) {
    .rating-options {
        justify-content: center;
        flex-wrap: wrap; /* Rating boxes will wrap into multiple rows on small screens */
        flex-direction: row-reverse; /* Reverse the order for descending scale (10 to 0) */
    }

    /* Rating Boxes: Reverse the order of the items so that 10 appears at the top */
    .rating-box:nth-child(1) { order: 11; }
    .rating-box:nth-child(2) { order: 10; }
    .rating-box:nth-child(3) { order: 9; }
    .rating-box:nth-child(4) { order: 8; }
    .rating-box:nth-child(5) { order: 7; }
    .rating-box:nth-child(6) { order: 6; }
    .rating-box:nth-child(7) { order: 5; }
    .rating-box:nth-child(8) { order: 4; }
    .rating-box:nth-child(9) { order: 3; }
    .rating-box:nth-child(10) { order: 2; }
    .rating-box:nth-child(11) { order: 1; }

    .rating-box {
        width: 80%; /* Make each rating box take up more space on mobile */
        min-width: 60px;
    }

    .rating-labels {
        font-size: 12px;
        width: 100%;
        margin-top: 5px;
        text-align: center;
    }

    /* Reverse the order of the labels for mobile: "Not At All Likely" should appear at the top */
    .rating-labels span:first-child {
        order: 2; /* "Not At All Likely" should be at the top */
    }

    .rating-labels span:last-child {
        order: 1; /* "Extremely Likely" should be at the bottom */
    }
}



.question-container {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
	font-family: 'Poppins', sans-serif !important;
	font-size: 17px;
}

.question-text {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 15px;
}

.question-options {
    margin-bottom: 15px;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
	margin-top:15px;
}

button.green {
    padding: 5px 20px;
    background-color: #06D6A0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button.grey {
    padding: 5px 20px;
    background-color: #d3d3d3;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
}

button.green:hover {
    background-color: #fdd500;
	color:#000000;
}

button.yellowgr{
	margin: 20px auto; 
	display: block; 
	background-color: #fdd500; 
	color: #000000; 
	border: none; padding: 10px 20px; 
	border-radius: 5px; 
	cursor: pointer;
}

button.yellowgr:hover{	
	background-color: #06D6A0 !important; 	
}

.next-button {
    margin-left: auto; /* Pushes the "Next" button to the right if "Previous" is absent */
}

.question-options {
    margin: 20px 0;
}

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

.option-row {
    border: 2px solid #ccc;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.option-row.selected {
    border-color: #43aedc; /* Green border when selected */
    background-color: #43aedc; /* Green background when selected */
    color: white; /* White text when selected */
}

.option-box {
    font-size: 16px;
    font-weight: bold;
}
.comment-textarea {
    width: 100%;
    height: 100px;
    margin-top: 10px;   
    border: 1px solid #ccc;
    padding: 5px;
}
/* General styling for the single select options */
.single-select-options {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.single-select-options .option-row {
    display: flex;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
}

.single-select-options .option-row.selected {
    background-color: #e0f7fa; /* Highlight selected option */
}

.single-select-options .option-row input[type="radio"] {
    display: none;
}

.single-select-options .option-row label.option-box {
    font-size: 16px;
    padding-left: 8px;
    cursor: pointer;
}

.single-select-options .option-row.selected label.option-box {
    font-weight: bold; /* Make label bold when selected */
}

/* Optional: Add a hover effect for better UX */
.single-select-options .option-row:hover {
    background-color: #f1f1f1;
}

 .radio-option {
        display: inline-block;
        margin-right: 20px;
        cursor: pointer;
    }

    /* Default styles for tick/cross */
    .circle {
        display: inline-block;
        width: 40px;
        height: 40px;
        border: 3px solid #ccc; /* Gray border */
        border-radius: 50%;
        text-align: center;
        line-height: 37px;
        font-size: 24px;
        color: #ccc; /* Gray color for tick and cross */
        transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    }

    /* Highlighted styles (when clicked) */
    .radio-option.highlighted .circle {
        color: white; /* Text color changes to white when highlighted */
    }

    /* Green for Yes */
    .radio-option.highlighted.yes .circle {
        background-color: green;
        border-color: green;
        color: white; /* Ensure the icon is white when highlighted */
    }

    /* Red for No */
    .radio-option.highlighted.no .circle {
        background-color: red;
        border-color: red;
        color: white; /* Ensure the icon is white when highlighted */
    }
	
#loading-text {
    display: none; /* Initially hidden */
    position: absolute; /* Positioned relative to the parent */
    bottom: 0; /* Align to the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for perfect centering */
    font-size: 14px;
    font-weight: bold;
    color: #555;
    padding: 5px 10px;
    background-color: #f9f9f9; /* Optional: add a light background */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10; /* Ensure it appears above other content */
}

#feedback-form {
    position: relative; /* Ensures absolute positioning works */
}

#questions-container {
    min-height: 150px; /* Ensures there's enough height for the content */
    position: relative; /* So the loading text appears relative to this */
}