﻿.text-sans-serif {
    color: #7fbc03;
    font-family: Poppins,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}


.rating-button, .rating-button2 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    font-size: 20px;
    color: #333;
    display: flex; /* ใช้ flexbox เพื่อจัดตำแหน่ง */
    justify-content: center; /* จัดแนวกลางในแนวนอน */
    align-items: center; /* จัดแนวกลางในแนวตั้ง */
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}





    /* สีปุ่มเมื่อเอาเมาส์วาง */
    .rating-button:hover, .rating-button2:hover {
        border: 2px solid #ccc;
        background-color: #28a745;
    }

.rating-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5px;
}
.rating-button2[data-rating="0"], .rating-button2[data-rating="1"], .rating-button2[data-rating="2"],
.rating-button2[data-rating="3"], .rating-button2[data-rating="4"], .rating-button2[data-rating="5"],
.rating-button2[data-rating="6"],
.rating-button[data-rating="0"], .rating-button[data-rating="1"], .rating-button[data-rating="2"],
.rating-button[data-rating="3"], .rating-button[data-rating="4"], .rating-button[data-rating="5"],
.rating-button[data-rating="6"] {
    background-color: #ff4844b0; /* Light red */
    color: white;
}

.rating-button2[data-rating="7"], .rating-button2[data-rating="8"], .rating-button[data-rating="7"], .rating-button[data-rating="8"] {
    background-color: #eded53; /* Light yellow */
    color: white;
}

.rating-button2[data-rating="9"], .rating-button2[data-rating="10"],
.rating-button[data-rating="9"], .rating-button[data-rating="10"] {
    background-color: #28a74594; /* Light green */
    color: white;
}



.rating-button[data-rating="0"].selected, .rating-button2[data-rating="0"].selected, .rating-button[data-rating="1"].selected, .rating-button2[data-rating="1"].selected,
.rating-button[data-rating="2"].selected, .rating-button2[data-rating="2"].selected, .rating-button[data-rating="3"].selected, .rating-button2[data-rating="3"].selected,
.rating-button[data-rating="4"].selected, .rating-button2[data-rating="4"].selected, .rating-button[data-rating="5"].selected, .rating-button2[data-rating="5"].selected,
.rating-button[data-rating="6"].selected, .rating-button2[data-rating="6"].selected{
    background-color: red; /* Bright green for selected state */
    color: white;
    border: 2px solid black; /* เพิ่มเส้นขอบที่เข้มขึ้นเพื่อให้เห็นชัด */
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6); /* เพิ่มเงาให้ปุ่มที่เลือก */
    transform: scale(1.3); /* เพิ่มการขยายขนาดเล็กน้อยให้ปุ่มที่เลือก */
}



    .rating-button[data-rating="7"].selected, .rating-button2[data-rating="7"].selected, .rating-button[data-rating="8"].selected, .rating-button2[data-rating="8"].selected {
        background-color: yellow; /* Bright green for selected state */
        color: white;
        border: 2px solid black; /* เพิ่มเส้นขอบที่เข้มขึ้นเพื่อให้เห็นชัด */
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.6); /* เพิ่มเงาให้ปุ่มที่เลือก */
        transform: scale(1.3); /* เพิ่มการขยายขนาดเล็กน้อยให้ปุ่มที่เลือก */
    }


.rating-button[data-rating="9"].selected, .rating-button2[data-rating="9"].selected, .rating-button[data-rating="10"].selected, .rating-button2[data-rating="10"].selected {
    background-color: #28a745; /* Bright green for selected state */
    color: white;
    border: 2px solid black; /* เพิ่มเส้นขอบที่เข้มขึ้นเพื่อให้เห็นชัด */
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6); /* เพิ่มเงาให้ปุ่มที่เลือก */
    transform: scale(1.3); /* เพิ่มการขยายขนาดเล็กน้อยให้ปุ่มที่เลือก */
}





#selectedRating {
    margin-top: 20px;
    font-size: 18px;
}
.x_panel {
    border-radius: 10px; /* กำหนดมุมให้โค้ง */
    overflow: hidden; /* เพื่อป้องกันไม่ให้เนื้อหาภายในเกินออกจากกรอบ */
    border: 1px solid #ddd; /* เพิ่มขอบกรอบเล็กน้อย (หรือจะเลือกสีอื่นๆ) */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* เพิ่มเงาเล็กน้อยให้ดูเด่น */
}

.x_title {
    font-size: 0.9rem;
    text-align: left;
    color: black;
    padding-bottom: 0px;
}

.rating-header {
    display: flex;
    justify-content: space-between; /* จัดข้อความสองข้างสุด */
    align-items: center;
    width: 100%;
    font-size: 18px; /* ปรับขนาดข้อความให้เหมาะสม */
    text-align: center;
}

body {
    color: black;
    font-family: Roboto, Arial, sans-serif;
}

.radio-item span {
    word-wrap: break-word; /* Allow text to wrap if it exceeds the space */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 3px;
    text-align: center;
    border: 0px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

td input[type="radio"] {
    margin: 0;
}

.table-striped tbody tr.inactive {
    background-color: #dc35451a !important; /* สีพื้นหลังเมื่อไม่ได้เลือก radio button */
}

.table-striped tbody tr:nth-child(odd) {
    background-color: white; /* สีพื้นหลังสำหรับแถวคี่ */
}

/* ปรับสีพื้นหลังของแถวคู่ */
.table-striped tbody tr:nth-child(even) {
    background-color: #ecf5eead; /* สีพื้นหลังสำหรับแถวคู่ */
}






textarea {
    width: 100%; /* ให้เต็มขนาด container */

    height: 100px; /* ความสูงของ textarea */
    padding: 10px; /* เพิ่มระยะห่างภายใน */
    border-radius: 8px; /* ขอบมน */
    border: 1px solid #ccc; /* ขอบสีเทา */
    font-size: 16px; /* ขนาดฟอนต์ */
    font-family: Arial, sans-serif; /* ฟอนต์ */
    background-color: #f9f9f9; /* พื้นหลังสีเทาอ่อน */
    transition: border-color 0.3s ease; /* การเปลี่ยนแปลงขอบเมื่อโฟกัส */
}

    /* เพิ่มสีขอบเมื่อผู้ใช้คลิกหรือโฟกัส */
    textarea:focus {
        border-color: #007bff; /* ขอบสีน้ำเงินเมื่อโฟกัส */
        background-color: #fff; /* พื้นหลังขาวเมื่อโฟกัส */
        outline: none; /* ลบกรอบที่แสดงเมื่อโฟกัส */
    }

    /* เพิ่ม placeholder สวยงาม */
    textarea::placeholder {
        color: #999; /* สีของ placeholder */
        font-style: italic; /* สไตล์ตัวเอียง */
    }

.survey-btn:hover {
    background-color: green; /* เปลี่ยนพื้นหลังเป็นสีเขียว */
    color: white; /* เปลี่ยนสีตัวอักษรเป็นสีขาว */
}

.survey-btn {
    background-color: white; /* พื้นหลังสีขาว */
    color: green; /* สีตัวอักษร */
    transition: background-color 0.3s ease, color 0.3s ease; /* เพิ่ม transition เมื่อมีการ hover */
}

.survey-step {
    display: none;
}

    /* แสดงคำถามที่กำลังแสดง */
    .survey-step.active {
        display: block;
    }



.surveyC1-btn {
    background-color: #abffaa47;
    color: black;
    width: 60%; /* Default to full width */
    max-width: 300px; /* Max width for larger screens */
    margin: 10px 0; /* Spacing between buttons */
    line-height: 50px; /* Vertically center the text */
}

/* Media query for small screens */
@media (max-width: 600px) {
    .surveyC1-btn {
        width: 50%; /* Full width on smaller screens */
    }
}

/* Media query for medium screens (tablets, etc.) */
@media (min-width: 601px) and (max-width: 1024px) {
    .surveyC1-btn {
        width: 80%; /* Make buttons slightly smaller on medium screens */
    }
}

/* Media query for larger screens */
@media (min-width: 1025px) {
    .surveyC1-btn {
        width: 200px; /* Fixed width for larger screens */
    }
}


.language-btn {
    cursor: pointer;
    padding: 3px;
    margin: 0 10px;
    transition: background-color 0.3s, color 0.3s;
    color: green;
}

    .language-btn:hover {
        background-color: #007bff;
        color: white;
        border-radius: 5px;
    }

    .language-btn.active {
        font-weight: bold;
        text-decoration: underline;
    }
.btn {
    font-size:0.8rem

}