
/* Grid 排版 */
.radio-box-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:  0 12px;
}


/* box 樣式 */
.box_fm {
    text-align: left;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #d7eaff;
    color: #007bff;
    cursor: pointer;
    width: 100%;
    font-size: 1.05rem;
}

    .box_fm:hover {
        background: #248eff;
        color: #fff;
    }
    /* 隱藏 radio */
    .box_fm input {
        display: inline-block;
        margin: 0 6px;
    }

    /* 選取狀態 */
    .box_fm:has(input:checked) {
        background: #007bff;
        border-color: #007bff;
        color: #fff;
    }

/* 子區塊 */
.sub-section {
    display: none;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.sub-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* RWD */
@media (max-width: 992px) {
    .radio-box-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .radio-box-group {
        grid-template-columns: 1fr;
        gap: 0px;
    }
}



/* 問題區塊 */
.survey-section {
    margin-bottom: 40px;
}

/* 大標 */
.section-title {
    font-size:1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

    .section-title span {
        font-size: 1.05rem;
        color: #666;
        margin-left: 6px;
    }

/* 題目 */
.question-block {
    margin-bottom: 30px;
}

.question-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

    .question-title span {
        font-weight: normal;
        color: #666;
        margin-left: 6px;
    }

.q-code {
    color: #007bff;
    margin-right: 4px;
}

.question-desc {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

/* 評分 Grid */
.radio-box-group.scale-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

/* RWD */
@media (max-width: 992px) {
    .radio-box-group.scale-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .radio-box-group.scale-6 {
        grid-template-columns: 1fr;
    }
}
.rbl-grid {
    width: 100%;
}
    .rbl-grid table {
        width: 100%;
        table-layout: fixed;
    }
    .rbl-grid td {
        width: calc((100% - 50px) / 6);
        text-align: center;
        display: inline-block;
        /*justify-content: left;*/
        align-items: center;
       /* gap: 6px;*/
        padding: 5px;
        border: 1px solid #ddd;
        border-radius: 3px;
        background: #d7eaff;
        color: #007bff;
        cursor: pointer;
        white-space: nowrap;
        font-size: 1.05rem;
        margin-right: 8px;
        text-align:left;
    }

    /* radio 本體 */
    .rbl-grid input[type="radio"] {
        margin: 0;
    }

    .rbl-grid label {
        display: inline-block;
        width:100%;
        padding: 0 5px;
        cursor: pointer;
        margin-bottom: 0;
    }


    /* hover */
    .rbl-grid td:hover {
        background: #248eff;
        color: #fff;
    }

    /* checked（利用 :has） */
    .rbl-grid td:has(input:checked) {
        background: #007bff;
        border-color: #007bff;
        color: #fff;
    }
/* ===== RWD ===== */

@media (max-width: 1200px) {
    .rbl-grid td {
        width: calc((100% - 24px) / 3);
        margin-right: 8px;
        margin-bottom: 12px;
    }
}

@media (max-width: 800px) {
    .rbl-grid td {
        width: calc((100% - 12px) / 2);
        margin-right: 6px;
        margin-bottom: 12px;
    }
}

@media (max-width: 600px) {
    .rbl-grid td {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
}




.box_fm.disabled {
    color: #aaa;
    cursor: not-allowed;
}

    .box_fm.disabled input {
        pointer-events: none;
    }




.rbl-grid-a {
    width: 100%;
}

    .rbl-grid-a table {
        width: 100%;
        table-layout: fixed;
    }

    .rbl-grid-a td {
        width: calc((100% - 12px) / 2);
        text-align: center;
        display: inline-block;
        /*justify-content: left;*/
        align-items: center;
        gap: 6px;
        padding: 5px;
        border: 1px solid #ddd;
        border-radius: 3px;
        background: #d7eaff;
        color: #007bff;
        cursor: pointer;
        white-space: nowrap;
        font-size: 1.05rem;
        margin: 3px;
        text-align: left;
    }

    /* radio 本體 */
    .rbl-grid-a input[type="radio"] {
        margin: 0;
    }
    .rbl-grid-a input[type="radio"] {
        appearance: auto !important;
        -webkit-appearance: radio !important;
        opacity: 1 !important;
    }


    .rbl-grid-a label {
        display: inline-block;
        width: 100%;
        padding: 0 5px;
        cursor: pointer;
        margin-bottom: 0;
    }


    /* hover */
    .rbl-grid-a td:hover {
        background: #248eff;
        color: #fff;
    }

    /* checked（利用 :has） */
    .rbl-grid-a td:has(input:checked) {
        background: #007bff;
        border-color: #007bff;
        color: #fff;
    }
/* ===== RWD ===== */

@media (max-width: 1200px) {
    .rbl-grid-a td {
        width: calc((100% - 24px) / 2);
        margin-right: 8px;
        margin-bottom: 12px;
    }
}


@media (max-width: 800px) {
    .rbl-grid-a td {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
}