/* Survey UI (modernized) */

.qnb-survey__top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
}
.qnb-separator {
    border: none;
    height: 1px;
    background-color: #e0e0e0; /* light grey */
    margin: 16px 0;
}
.qnb-survey__meta {
    min-width: 220px;
}

.qnb-survey__title {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 26px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qnb-survey__subtitle {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.65);
    margin-top: 2px;
}

.qnb-progress {
    max-width: 420px;
    margin-left: auto;
}

.qnb-progress--hero {
    margin-top: 4px;
}

.qnb-progress__track {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    position: relative;
}

.qnb-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #003a5d, #005e9c);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: width 220ms ease;
    position: relative;
}

.qnb-progress__fill::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #00324f);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 8px 14px rgba(15, 23, 42, 0.35);
}

.qnb-progress__percent {
    margin-top: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: #00324f;
}

.qnb-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.qnb-actions__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.qnb-actions__grid button {
    flex: 1 1 45%;
    max-width: calc(50% - 6px);
    min-width: 140px;
}

@media (min-width: 768px) {
    .qnb-actions__grid {
        gap: 16px;
    }

    .qnb-actions__grid button {
        flex: 0 1 auto;
        min-width: 160px;
        max-width: none;
    }
}

.qnb-link-back {
    background: transparent;
    border: none;
    color: #025a95;
    font-size: 13px;
    font-weight: 600;
    align-self: flex-start;
    padding: 0;
    cursor: pointer;
}

.qnb-link-back[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.qnb-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    will-change: auto;
}

.qnb-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 156, 222, 0.22);
}

.qnb-btn--primary {
    background: linear-gradient(180deg, #025a95, #004b7d);
    color: #fff;
    box-shadow: 0 10px 22px rgba(2, 90, 149, 0.22);
}

.qnb-btn--ghost {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

.qnb-btn--subtle {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.14);
    color: rgba(15, 23, 42, 0.92);
}

.qnb-btn--subtle:hover {
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: 0 10px 22px rgba(2, 8, 23, 0.08);
}

.qnb-btn--ghost:hover {
    border-color: rgba(15, 23, 42, 0.22);
    background: rgba(248, 250, 252, 1);
}

.qnb-input {
    padding: 10px 12px;
    border-radius: 12px;
}

.qnb-btn--hero {
    min-width: 160px;
    padding: 14px 24px;
    border-radius: 12px;
    background-color: #005e9c;
    border-color: #005e9c;
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 12px 24px rgba(0, 65, 110, 0.35);
}

.qnb-btn--hero {
    min-width: 160px;
    padding: 14px 24px;
    border-radius: 12px;
    background-color: #005e9c;
    border-color: #005e9c;
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 65, 110, 0.2);
}

.qnb-btn--hero:hover {
    background-color: #004676;
    border-color: #004676;
    box-shadow: 0 6px 16px rgba(0, 65, 110, 0.3);
}
 .btn-back,
.btn-qnb-primary,
.btn-qnb-secondary,
.btn-qnb-submit {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    line-height: 1.2;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    will-change: auto;
    transform: none !important;
    animation: none !important;
}

button,
.qnb-btn {
    will-change: auto;
    transform: none !important;
    animation: none !important;
}

.btn-back {
    background: linear-gradient(135deg, #898a8d 0%, #afb2b7 100%);
    color: #ffffff;
}

.btn-qnb-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #ffffff;
}

.btn-qnb-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-qnb-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1) !important;
    transform: none !important;
    animation: none !important;
}

.btn-qnb-submit {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
}

.btn-qnb-submit:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3) !important;
    transform: none !important;
    animation: none !important;
}

/* Exit Button — Always solid blue for Finish Later page as requested */
.btn-dark-blue,
.exit-button,
.btn-exit,
[data-action="exit"] {
    background: #29abe2 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    min-width: 140px !important;
    box-shadow: 0 4px 12px rgba(41, 171, 226, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-dark-blue:hover,
.exit-button:hover,
.btn-exit:hover,
[data-action="exit"]:hover {
    background-color: #1b97cc !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(41, 171, 226, 0.35) !important;
}

.btn-qnb-primary:disabled,
.btn-qnb-secondary:disabled,
.btn-qnb-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
}

/* Premium Question Blocks */
.question-block {
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.05), inset 0 2px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.question-block:hover {
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.1);
    border-color: rgba(30, 58, 138, 0.2);
}

.question-block+.question-block {
    margin-top: 32px;
}

.question-block .form-label {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Premium Form Elements */
.form-check {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 14px 0 0 0;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.form-check:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.1);
}

@keyframes checkPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-check-input {
    margin-top: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="radio"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: inset 0 0 0 4px #ffffff, 0 4px 12px rgba(59, 130, 246, 0.25);
    animation: checkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-check-input[type="checkbox"] {
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='square' stroke-linejoin='miter' stroke-width='2.5' d='M5 10.5l3 3l7-7'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    animation: checkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-check-label {
    color: #334155;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.5;
    cursor: pointer;
    flex-grow: 1;
    margin: 0;
    transition: color 0.2s ease;
}

.form-check:has(input:checked) .form-check-label {
    color: #1e3a8a;
    font-weight: 600;
}

textarea.form-control,
input.form-control,
input[type="text"].form-control,
input[type="password"].form-control {
    border: 1px solid rgba(2, 4, 9, 0.15) !important;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 1rem;
}

textarea.form-control:hover,
input[type="text"].form-control:hover {
    border-color: rgba(59, 130, 246, 0.2) !important;
}

textarea.form-control:focus,
input.form-control:focus,
input[type="text"].form-control:focus,
input[type="password"].form-control:focus {
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none;
}

/* Dark border for access code textbox as requested */
.textbox-accesscode {
    border: 1.5px solid #0f172a !important;
}

.shadeit-withcolor {
    background-color: rgba(243, 244, 246, 0.4);
}

.shadeit-withoutcolor {
    background-color: transparent;
}

/* Premium Textarea & Input Styles */
.qnb-textarea-container {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.qnb-input-premium,
.qnb-textarea-premium {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    width: 100%;
    color: #0f172a !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qnb-input-premium:focus,
.qnb-textarea-premium:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none;
}

.qnb-char-count {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    opacity: 0.9;
}

.btn-qnb-primary:hover {
    color: #fff;
}


/* Matrix Question Layout - Desktop View Force (min-width: 769px) */
@media (min-width: 769px) {

    .assistance-table,
    .matrix-table,
    table.assistance-table {
        display: table !important;
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 12px !important;
        background: transparent !important;
        margin-top: 24px !important;
    }

    .matrix-header-row,
    thead,
    .matrix-column-headers,
    .assistance-table thead {
        display: table-header-group !important;
        visibility: visible !important;
    }

    .assistance-table thead tr {
        display: table-row !important;
    }

    thead th,
    .matrix-column-headers th,
    .assistance-table thead th {
        display: table-cell !important;
        text-align: center !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #475569 !important;
        padding: 12px 8px !important;
        visibility: visible !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }

    .matrix-row,
    tbody tr,
    .assistance-table tbody tr {
        display: table-row !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        border: 1px solid #f1f5f9 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        flex-direction: unset !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
        transition: none !important;
    }

    .matrix-row td,
    tbody tr td,
    .assistance-table td {
        display: table-cell !important;
        text-align: center !important;
        vertical-align: middle !important;
        padding: 16px 12px !important;
        border: none !important;
        background: transparent !important;
    }

    .matrix-row-label,
    td:first-child,
    .assistance-table td:first-child {
        text-align: left !important;
        max-width: none !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #1e3a8a !important;
        border: none !important;
        background: transparent !important;
    }

    .matrix-header-capsule {
        display: contents !important;
    }

    .matrix-chevron {
        display: none !important;
    }

    .matrix-row input[type="radio"],
    .assistance-table .form-check-input {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        margin: 0 auto !important;
        float: none !important;
    }
}

/* Mobile Responsive Matrix Accordion Card Layout (max-width: 768px) */
@media (max-width: 768px) {

    /* Hide Table Headers */
    .matrix-header-row,
    thead,
    .matrix-column-headers,
    .assistance-table thead {
        display: none !important;
    }

    /* Container Reset */
    .assistance-table {
        display: block !important;
        width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
    }

    .assistance-table tbody {
        display: block !important;
        width: 100% !important;
    }

    /* Each Row = One Separate Card Block */
    .assistance-table tr,
    .matrix-row,
    tbody tr {
        display: block !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
        margin-bottom: 16px !important;
        overflow: hidden !important;
        border: 1px solid #eef2fb !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Card Header - Pill Style */
    .matrix-row-header,
    td:first-child,
    .matrix-row-label {
        display: block !important;
        background: #eef2fb !important;
        border: 2px solid #3b5bdb !important;
        border-radius: 50px !important;
        margin: 12px !important;
        padding: 10px 16px !important;
        width: calc(100% - 24px) !important;
        box-sizing: border-box !important;
    }

    .matrix-header-capsule {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        min-width: unset !important;
    }

    .matrix-label {
        font-weight: 700 !important;
        color: #1a2e6e !important;
        font-size: 14px !important;
        margin: 0 !important;
        text-align: left !important;
        line-height: 1.3 !important;
        flex-grow: 1 !important;
    }

    .matrix-chevron {
        color: #3b5bdb !important;
        font-size: 0 !important;
        margin-left: 12px !important;
        flex-shrink: 0 !important;
    }

    .matrix-chevron::before {
        content: "≫" !important;
        font-size: 16px !important;
        font-weight: 900 !important;
        display: inline-block !important;
    }

    .matrix-header-capsule::after {
        display: none !important;
    }

    /* Radio Options - Vertical Stack */
    .matrix-option-cell,
    td:not(:first-child) {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid #f5f7fb !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border-left: none !important;
        border-right: none !important;
        text-align: left !important;
    }

    .matrix-option-cell:last-child {
        border-bottom: none !important;
        padding-bottom: 16px !important;
    }

    /* Show Label from data-label */
    .matrix-option-cell::after {
        content: attr(data-label) !important;
        display: block !important;
        font-size: 14px !important;
        color: #334155 !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
    }

    .form-check-input {
        width: 20px !important;
        height: 20px !important;
        accent-color: #3b5bdb !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        border: 2px solid #cbd5e1 !important;
    }

    /* Stability fix for mobile card buttons */
    .matrix-option-cell .form-check-input:checked {
        animation: none !important;
        background-color: #3b5bdb !important;
        border-color: #3b5bdb !important;
    }

    /* Bug 2 — Mobile View: Options Not Clickable Fix */
    /* Remove any overlay blocking clicks */
    .question-overlay,
    .disabled-overlay,
    .question-disabled-mask {
        display: none !important;
        pointer-events: none !important;
    }

    /* Ensure Q23 answer options are fully tappable */
    .question-block input[type="radio"],
    .question-block input[type="checkbox"],
    .question-block label,
    .form-check {
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* Fix selected radio button color in branching question (Q24) on mobile only */
    #qBlock24 input[type="radio"],
    .branching-question input[type="radio"],
    .conditional-question input[type="radio"],
    [data-branching="true"] input[type="radio"] {
        accent-color: #3b5bdb !important;
        opacity: 1 !important;
        filter: none !important;
    }

    #qBlock24 input[type="radio"]:checked,
    .branching-question input[type="radio"]:checked,
    .conditional-question input[type="radio"]:checked,
    [data-branching="true"] input[type="radio"]:checked {
        accent-color: #3b5bdb !important;
        opacity: 1 !important;
        border-color: #3b5bdb !important;
        background-color: #3b5bdb !important;
    }

    #qBlock24 label,
    .branching-question label,
    [data-branching="true"] label {
        color: #1a2e6e !important;
        opacity: 1 !important;
    }

    #qBlock24,
    .branching-question,
    [data-branching="true"] {
        opacity: 1 !important;
        filter: none !important;
    }

    /* Bug 1 — Q23 Mobile Radio Button Selected Color Fix */
    /* Consolidated Bullseye Selection Styles for Mobile */
    input[type="radio"],
    .form-check-input[type="radio"] {
        -webkit-appearance: none !important;
        appearance: none !important;
        width: 22px !important;
        height: 22px !important;
        border: 2px solid #adb5bd !important;
        /* Gray unselected on mobile */
        background-color: white !important;
        border-radius: 50% !important;
        opacity: 1 !important;
        filter: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }

    input[type="radio"]:checked,
    .form-check-input[type="radio"]:checked {
        border-color: #3b5bdb !important;
        /* Blue ring on mobile */
        background-color: white !important;
    }

    input[type="radio"]:checked::after,
    .form-check-input[type="radio"]:checked::after {
        content: '' !important;
        display: block !important;
        width: 11px !important;
        /* Slightly larger dot for mobile */
        height: 11px !important;
        border-radius: 50% !important;
        background-color: #3b5bdb !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    /* Fix option card background on selection */
    #qBlock23 .option-card:has(input:checked),
    [data-question-id="q23"] .option-card:has(input:checked),
    [data-question="23"] .option-card:has(input:checked) {
        border-color: #3b5bdb !important;
        background-color: #f0f4ff !important;
    }

    #qBlock23,
    .question-block[id*="qBlock23"] {
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 767.98px) {
    
    .rating-scale-wrapper {
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 4px 0 0 0 !important;
        box-shadow: none !important;
        margin-top: 8px !important;
        border: none !important;
        width: 100% !important;
    }

    /* Labels: 3 labels in a single row — left / center / right */
    .rating-labels-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        width: 100% !important;
        margin-bottom: 6px !important;
    }

    .rating-label-text {
        font-size: 11px !important;
        font-weight: 500 !important;
        color: #555 !important;
        line-height: 1.3 !important;
        max-width: 33% !important;
        text-align: center !important;
    }

        .rating-label-text:first-child {
            text-align: left !important;
        }

        .rating-label-text:last-child {
            text-align: right !important;
        }

    /* Hide native radio */
    .rating-radio {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
    }

    .rating-progress-bar-bg {
        height: 8px !important; /* ⬅ increase height */
        width: 100% !important;
        border-radius: 99px !important;
        background: #e0e0e0 !important;
        margin-bottom: 12px !important;
        position: relative !important;
        overflow: hidden; /* ⬅ IMPORTANT */
    }

    .rating-progress-bar-fill {
        height: 100%; /* ⬅ fill full height */
        width: 0%;
        background-color: #ffc107;
        transition: all 0.4s ease;
    }

    /* Buttons row */
    .rating-options {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 3px !important;
        width: 100% !important;
    }

    .rating-item-wrapper {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    /* Number button — plain white box */
    .rating-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 6px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        border: 1.5px solid #ccc !important;
        background: #ffffff;
        color: #333 !important;
        transition: background 0.2s, border-color 0.2s !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
        padding: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

        /* Reset all label-N color zones to plain white */
        .rating-button[class*="label-"] {
            color: #333 !important;
            border-color: #ccc !important;
        }

        /* Selected = yellow */
        .rating-button.selected {
            color: #000 !important;
            font-weight: 700 !important;
            transform: none !important;
            box-shadow: none !important;
        }

    /* Exit button mobile */
    .btn-dark-blue,
    .exit-button,
    .btn-exit {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
    }
}

@media screen and (min-width: 319px) and (max-width: 321px) {
    hr:not([size]) {
        height: 1px;
        width: 98%;
        margin-left: 5px;
    }

    tbody,
    td,
    tfoot,
    th,
    thead,
    tr {
        border-color: inherit;
        border-style: solid;
        border-width: 0;
        padding: 0px 26px 0px 2px;
    }

    img,
    svg {
        vertical-align: middle;
        margin-left: 10px;
        padding: 0px 0px;
        width: 95%;
    }

    .assistance-table tr {
        width: 113%;
    }
}