.survey-container {
    width: 100% !important;
}

.survey-header {
    width: 100%;
    height: auto;
    margin-bottom: 4%;
}

.question-number {
    min-width: 58px; 
    text-align: center;
    background-color: #cb3233;
    font-size: 1.8vw; /* Reduced: ~28.8px on a 1600px screen */
    font-weight: 700;
    align-content: center;
    min-height: 68px !important; 
}

.question-text {
    margin-left: 10px; 
    color: #263a80;
    font-size: 1.8vw; /* Reduced: ~28.8px on a 1600px screen */
    font-weight: 700;
    align-content: center;
}

.answer {
    padding: 2px 15px;
    border-radius: 5px;
    border: 1px solid #cb3233;
    min-height: 68px;
    color: #263a80;
    font-size: 1.6875vw; /* Reduced: ~27px on a 1600px screen */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    word-wrap: break-word;
    white-space: normal;
    box-sizing: border-box; /* Ensure padding doesn't affect layout */
}

.answer text {
    padding-left: 5px;
}

.answer:hover {
    background-color: #eaecf3; 
}

.answer.selected {
    background-color: #eaecf3 !important; 
    color: #155724 !important;
    border-color: #155724 !important;
    min-height: 68px !important; /* Ensure min-height doesn't change */
}

/* Ensure .answer-image-container dimensions remain unchanged when .answer is selected */
.answer.selected .answer-image-container {
    width: 9.6875vw !important; /* Preserve original width */
    height: 11.5625vw !important; /* Preserve original height */
}

/* Ensure the image inside .answer-image-container doesn't shrink */
.answer.selected .answer-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.reference {
    font-size: 1.125vw; /* Reduced: ~18px on a 1600px screen */
    font-weight: 500;
    padding: 0px 5%;
}

.answer-2 {
    width: 275px !important; 
    height: 135px !important;
    padding: 2px 15px !important;
    border-radius: 5px;
    border: 1px solid #cb3233;
    min-height: 32px;
    color: #263a80;
    font-size: 1.6875vw; /* Reduced: ~27px on a 1600px screen */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    word-wrap: break-word;
    white-space: normal;    
}

.answer-2 text {
    padding-left: 5px;
}

.answer-image {
    text-align: center;
    padding-left: 15%;
}

.answer-image-container {
    margin-left: 10%;
    width: 9.6875vw; /* ~155px on a 1600px screen */
    height: 11.5625vw; /* ~185px on a 1600px screen */
    overflow: hidden;
    box-sizing: border-box; /* Ensure padding/borders don't affect size */
}

.answer-image-container img {
    object-fit: cover; 
    width: 100%; 
    height: 100%;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

.answer-box {
    width: 100%;
    text-align: center;
    margin-top: 25%;
}

.answer-image-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    width: 50%;
}

.answer-image-container-2 img {
	width: 28.6875vw;
	height: 11.5625vw;
	object-fit: contain;
}

.result-header-success {
    color: #1ad37c;
	font-size: 32px;
    font-weight: 700;
    margin-bottom: 0 !important;
    line-height: 110%;
}

.result-header-warning {
    color: #e82e83;
	font-size: 32px;
    font-weight: 700;
    margin-bottom: 0 !important;
    line-height: 110%;
}

.result-header-danger {
    color: #cb3233;
	font-size: 32px;
    font-weight: 700;
    margin-bottom: 0 !important;
    line-height: 110%;
}

.result-reference {
    color: #263a80;
	font-size: 18px;
    font-weight: 500;
}

.survey-result-modal .modal-dialog {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: 1200px;
	margin: 0 auto;
}

.survey-result-modal .modal-content {
    border-radius: 10px;
}

.survey-header {
    width: 100%;
    height: auto;
}

.no-bullet {
    list-style-type: none;
}

.bullet {
    margin-left: 10px;
}

.modal {
  max-width: none !important;
}

.survey-result-modal {
    width: 100%;
    max-width: 100%;
/*     left: 20% !important;*/
}

#surveyResultMessage {
    position: relative;
    width: 100%;
}

.result-content {
    margin-left: 8%;
    margin-top: 2%;
    max-width: 100%;
    text-align: start;
}

.result-content ul {
    margin-top: 1%;
    margin-bottom: 0px;
}

/* Responsive Adjustments */

/* 987px - 1129px */
@media screen and (min-width: 987px) and (max-width: 1129px) {
    .survey-result-modal .modal-dialog {
        max-width: 1129px !important;
    }
    
    .result-header-success, 
    .result-header-warning, 
    .result-header-danger {
        font-size: 26px !important;
    }

    .result-reference {
        font-size: 16px !important;
    }
    
    .survey-result-modal {
        max-width: 1129px !important;
    }
    
    .survey-container {
        max-width: 1129px !important;
        width: 100% !important;
    }
    
    .question-number {
        font-size: 2.07vw; /* Reduced: ~23.4px on a 1129px screen */
        min-width: 48px;
        min-height: 58px !important;
    }

    .question-text {
        font-size: 2.07vw; /* Reduced: ~23.4px on a 1129px screen */
    }
    
    .answer {
        font-size: 1.89vw; /* Reduced: ~21.3px on a 1129px screen */
    }
    
    .answer-2 {
        font-size: 1.89vw; /* Reduced: ~21.3px on a 1129px screen */
        width: 235px !important; 
        height: 125px !important;
    }
    
    .reference {
        font-size: 1.26vw; /* Reduced: ~14.2px on a 1129px screen */
    }

    .answer-image-container {
        width: 12vw; /* ~135px on a 1129px screen */
        height: 14.6vw; /* ~165px on a 1129px screen */
    }

    /* Preserve .answer-image-container dimensions when selected */
    .answer.selected .answer-image-container {
        width: 12vw !important;
        height: 14.6vw !important;
    }

    /* Ensure the image inside .answer-image-container doesn't shrink */
    .answer.selected .answer-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* 901px - 986px */
@media screen and (min-width: 901px) and (max-width: 986px) {
    .survey-result-modal .modal-dialog {
        max-width: 986px !important;
    }
    
    .result-header-success, 
    .result-header-warning, 
    .result-header-danger {
        font-size: 24px !important;
    }

    .result-reference {
        font-size: 15px !important;
    }
    
    .survey-result-modal {
        max-width: 986px !important;
    }
    
    .survey-container {
        max-width: 986px !important;
        width: 100% !important;
    }
    
    .question-number {
        font-size: 2.16vw; /* Reduced: ~21.3px on a 986px screen */
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .question-text {
        font-size: 2.16vw; /* Reduced: ~21.3px on a 986px screen */
    }
    
    .answer {
        font-size: 1.98vw; /* Reduced: ~19.5px on a 986px screen */
        min-height: 42px !important;
    }
    
    .answer-2 {
        font-size: 1.98vw; /* Reduced: ~19.5px on a 986px screen */
        width: 215px !important; 
        height: 105px !important;
    }
    
    .reference {
        font-size: 1.35vw; /* Reduced: ~13.3px on a 986px screen */
    }

    .answer-image-container {
        width: 13.7vw; /* ~135px on a 986px screen */
        height: 16.7vw; /* ~165px on a 986px screen */
    }

    /* Preserve .answer-image-container dimensions when selected */
    .answer.selected .answer-image-container {
        width: 13.7vw !important;
        height: 16.7vw !important;
    }

    /* Ensure the image inside .answer-image-container doesn't shrink */
    .answer.selected .answer-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* 769px - 900px */
@media screen and (min-width: 769px) and (max-width: 900px) {
    .survey-result-modal .modal-dialog {
        max-width: 900px !important;
    }
    
    .result-header-success, 
    .result-header-warning, 
    .result-header-danger {
        font-size: 20px !important;
    }

    .result-reference {
        font-size: 13px !important;
    }
    
    .survey-result-modal {
        max-width: 900px !important;
    }
    
    .survey-container {
        max-width: 900px !important;
        width: 100% !important;
    }
    
    .question-number {
        font-size: 1.98vw; /* Reduced: ~17.8px on a 900px screen */
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .question-text {
        font-size: 1.98vw; /* Reduced: ~17.8px on a 900px screen */
    }
    
    .answer {
        font-size: 1.8vw; /* Reduced: ~16.2px on a 900px screen */
        min-height: 42px !important;
    }
    
    .answer-2 {
        font-size: 1.8vw; /* Reduced: ~16.2px on a 900px screen */
        width: 195px !important; 
        height: 100px !important;
    }
    
    .reference {
        font-size: 1.26vw; /* Reduced: ~11.3px on a 900px screen */
    }

    .answer-image-container {
        width: 13.9vw; /* ~125px on a 900px screen */
        height: 17.2vw; /* ~155px on a 900px screen */
    }

    /* Preserve .answer-image-container dimensions when selected */
    .answer.selected .answer-image-container {
        width: 13.9vw !important;
        height: 17.2vw !important;
    }

    /* Ensure the image inside .answer-image-container doesn't shrink */
    .answer.selected .answer-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* 620px - 768px */
@media screen and (min-width: 620px) and (max-width: 768px) {
    .survey-result-modal .modal-dialog {
        max-width: 768px !important;
    }
    
    .result-header-success, 
    .result-header-warning, 
    .result-header-danger {
        font-size: 18px !important;
    }
    
    .survey-container {
        max-width: 768px !important;
        width: 100% !important;
    }

    .result-reference {
        font-size: 11px !important;
    }
    
    .survey-result-modal {
        max-width: 768px !important;
        left: 0 !important;
    }
    
    .question-number {
        font-size: 2.07vw; /* Reduced: ~15.9px on a 768px screen */
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .question-text {
        font-size: 2.07vw; /* Reduced: ~15.9px on a 768px screen */
    }
    
    .answer {
        font-size: 1.89vw; /* Reduced: ~14.5px on a 768px screen */
        min-height: 38px !important;
    }
    
    .answer-image {
        width: 50% !important;
    }
    
    .answer-2 {
        font-size: 1.89vw; /* Reduced: ~14.5px on a 768px screen */
        width: 195px !important; 
        height: 100px !important;
    }
    
    .reference {
        font-size: 1.26vw; /* Reduced: ~9.7px on a 768px screen */
    }

    .answer-image-container {
        width: 16.3vw; /* ~125px on a 768px screen */
        height: 20.2vw; /* ~155px on a 768px screen */
    }

    /* Preserve .answer-image-container dimensions when selected */
    .answer.selected .answer-image-container {
        width: 16.3vw !important;
        height: 20.2vw !important;
    }

    /* Ensure the image inside .answer-image-container doesn't shrink */
    .answer.selected .answer-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* 571px - 619px */
@media screen and (min-width: 571px) and (max-width: 619px) {
    .survey-result-modal .modal-dialog {
        max-width: 619px !important;
    }
    
    .result-header-success, 
    .result-header-warning, 
    .result-header-danger {
        font-size: 18px !important;
    }
    
    .survey-container {
        max-width: 619px !important;
        width: 100% !important;
    }

    .result-reference {
        font-size: 10px !important;
    }
    
    .survey-result-modal {
        max-width: 619px !important;
        left: 0 !important;
    }
    
    .question-number {
        font-size: 2.34vw; /* Reduced: ~14.5px on a 619px screen */
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .question-text {
        font-size: 2.34vw; /* Reduced: ~14.5px on a 619px screen */
    }
    
    .answer-2 {
        width: 145px !important; 
        height: 85px !important;    
        margin-left: 5px;
        font-size: 2.07vw; /* Reduced: ~12.8px on a 619px screen */
    }
    
    .reference {
        font-size: 1.44vw; /* Reduced: ~8.9px on a 619px screen */
    }
    
    .answer {
        font-size: 2.07vw; /* Reduced: ~12.8px on a 619px screen */
        min-height: 32px !important;
		padding: 2px !important;
    }
    
    .answer-image {
        width: 50% !important;
        padding-left: 10% !important;
    }
    
    .answer-image-container {
        width: 16.2vw; /* ~100px on a 619px screen */
        height: 17vw; /* ~105px on a 619px screen */
    }
    
    .answer-image-container img {
        padding-left: 20px !important;
    }
    
    .result-content {
        padding-left: 0% !important;
        margin-left: 0% !important;
    }

    /* Preserve .answer-image-container dimensions when selected */
    .answer.selected .answer-image-container {
        width: 16.2vw !important;
        height: 17vw !important;
    }

    /* Ensure the image inside .answer-image-container doesn't shrink */
    .answer.selected .answer-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* 485px - 570px */
@media screen and (min-width: 485px) and (max-width: 570px) {
    .survey-result-modal .modal-dialog {
        max-width: 619px !important;
    }
    
    .result-header-success, 
    .result-header-warning, 
    .result-header-danger {
        font-size: 14.6px !important;
    }
    
    .survey-container {
        max-width: 570px !important;
        width: 100% !important;
    }

    .result-reference {
        font-size: 10px !important;
    }
    
    .survey-result-modal {
        max-width: 570px !important;
        left: 0 !important;
    }
    
    .question-number {
        font-size: 2.52vw; /* Reduced: ~14.4px on a 570px screen */
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .question-text {
        font-size: 2.52vw; /* Reduced: ~14.4px on a 570px screen */
    }
    
    .answer-2 {
        width: 145px !important; 
        height: 85px !important;    
        margin-left: 5px;
        font-size: 2.25vw; /* Reduced: ~12.8px on a 570px screen */
    }
    
    .reference {
        font-size: 1.62vw; /* Reduced: ~9.2px on a 570px screen */
    }
    
    .answer {
        font-size: 2.25vw; /* Reduced: ~12.8px on a 570px screen */
        min-height: 32px !important;
		padding: 2px !important;
    }
    
    .answer-image {
        width: 50% !important;
        padding-left: 10% !important;
    }
    
    .answer-image-container {
        width: 17.5vw; /* ~100px on a 570px screen */
        height: 18.4vw; /* ~105px on a 570px screen */
    }
    
    .answer-image-container img {
        padding-left: 20px !important;
    }
    
    .result-content {
        padding-left: 0% !important;
        margin-left: 0% !important;
    }

    /* Preserve .answer-image-container dimensions when selected */
    .answer.selected .answer-image-container {
        width: 17.5vw !important;
        height: 18.4vw !important;
    }

    /* Ensure the image inside .answer-image-container doesn't shrink */
    .answer.selected .answer-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* < 484px */
@media screen and (max-width: 484px) {
    .survey-result-modal .modal-dialog {
        max-width: 484px !important;
    }
    
    .survey-header-modal {
        margin-bottom: 0% !important;
    }
    
    .survey-result-modal {
        max-width: 484px !important;
        left: 0 !important;
    }
    
    .survey-container {
        max-width: 484px !important;
        width: 100% !important;
    }
    
    .result-header-success, 
    .result-header-warning, 
    .result-header-danger {
        font-size: 10.4px !important;
    }

    .result-reference {
        font-size: 8px !important;
    }
    
    .question-number {
        font-size: 2.07vw; /* Reduced: ~10px on a 484px screen */
        min-width: 22px !important;
        min-height: 22px !important;
    }

    .question-text {
        font-size: 2.07vw; /* Reduced: ~10px on a 484px screen */
    }
    
    .answer-2 {
        width: 85px !important; 
        height: 45px !important;    
        font-size: 1.8vw; /* Reduced: ~8.7px on a 484px screen */
        padding: 0px 0px !important;
    }
    
    .answer {
        font-size: 1.8vw; /* Reduced: ~8.7px on a 484px screen */
        min-height: 32px !important;
		padding: 0px !important;
    }
    
    .answer-image {
        width: 50% !important;
        padding-left: 0% !important;
    }
    
    .answer-image-container {
        width: 13.4vw; /* ~65px on a 484px screen */
        height: 14.5vw; /* ~70px on a 484px screen */
        margin-left: 10% !important;
    }
    
    .reference {
        font-size: 1.53vw; /* Reduced: ~7.4px on a 484px screen */
    }
    
    .result-content {
        padding-left: 0% !important;
        margin-left: 0% !important;
    }

    /* Preserve .answer-image-container dimensions when selected */
    .answer.selected .answer-image-container {
        width: 13.4vw !important;
        height: 14.5vw !important;
    }

    /* Ensure the image inside .answer-image-container doesn't shrink */
    .answer.selected .answer-image-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}