.radio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* ระยะห่างระหว่างตัวเลือก */
}

.radio-img {
    display: none; /* ซ่อนปุ่ม radio */
}

.radio-label {
    display: flex;
    flex-direction: column; /* ทำให้ข้อความอยู่ใต้รูป */
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 100%; /* กำหนดขนาดกรอบ */
    transition: all 0.3s ease-in-out;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.radio-label img {
    width: 310px; /* ขนาดรูปภาพ */
    height: 310px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border 0.3s ease-in-out;
}

.radio-img:checked + .radio-label {
    border-color: #007bff; /* เปลี่ยนสีกรอบเมื่อเลือก */
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
    background: rgba(0, 123, 255, 0.05);
}

.radio-img:checked + .radio-label img {
    border-color: #007bff; /* เปลี่ยนสีเส้นขอบของรูปภาพเมื่อเลือก */
}

.radio-label span {
    display: block;
    font-family: 'Sarabun', sans-serif;
    font-size: 18px; /* ปรับขนาดตัวอักษร */
    font-weight: 400;
    color: #333;
    margin-top: 10px;
}


h2 {
            text-align: center;
            color: #007bff;
        }

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px; /* เพิ่มระยะห่างด้านล่าง */
    border-bottom: 2px solid #00c6a9;
    padding-bottom: 5px;
}


        .question {
            margin-top: 10px;
            font-size: 18px;
        }

        .rating-group {
            display: flex;
            justify-content: left;
            gap: 10px;
            margin-top: 5px;
        }

        .rating-group input {
            display: none;
        }

        .rating-group label {
            width: 35px;
            height: 35px;
            background: #ddd;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.3s;
        }

        .rating-group input:checked + label {
            background: #007bff;
            color: white;
            box-shadow: 0px 0px 8px #007bff;
        }

        .title-box {
            display: inline-block; /* ให้ขนาดพอดีกับข้อความ */
            background-color: #f8f9fa; /* สีพื้นหลังอ่อน */
            border: 2px solid #00c6a9; /* กรอบสีน้ำเงิน */
            color: #00c6a9; /* สีตัวหนังสือ */
            padding: 10px 20px; /* ระยะห่างภายในกรอบ */
            border-radius: 10px; /* ทำให้ขอบมน */
            font-family: 'Sarabun', sans-serif; /* ใช้ฟอนต์ Sarabun */
            font-size: 20px; /* ขนาดตัวอักษร */
            font-weight: bold; /* ตัวหนา */
            text-align: center; /* จัดให้อยู่ตรงกลาง */
            box-shadow: 2px 2px 10px rgba(0, 123, 255, 0.2); /* เพิ่มเงา */
        }