body{
    font-family: Tahoma, sans-serif;
    font-size: 14px;
    background:#f7f9fc;
}
.app-wrap{
    width: 80vw;           /* ใช้ประมาณ 80% ของความกว้าง viewport */
    max-width: 1320px;     /* ล็อกไม่ให้กว้างเกินไปบนจอใหญ่มาก ๆ */
    margin: 40px auto 24px auto;
    padding: 0 24px;
}
.card{
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}
.card-header{
    border-radius: 16px 16px 0 0;
}
.card-header-primary{
    background: linear-gradient(90deg,#0b5fa5,#1a86d0);
    color:#fff;
    padding-top: 14px;
    padding-bottom: 14px;
}
.card-header-primary .h5{
    font-size: 18px;
}
.card-header-primary .small{
    font-size: 12px;
    opacity: .9;
}
.card-header-report{
    background: linear-gradient(90deg,#2563eb,#38bdf8);
    color:#fff;
}
.section-title{
    font-size:16px;
    font-weight:700;
    color:#0b5fa5;
    margin-bottom:8px;
}
.form-hint{
    font-size:12px;
    color:#6b7280;
}
.q-label{
    font-weight:600;
}
.scale-note{
    font-size:13px;
    color:#4b5563;
}
/* ปรับ layout ปุ่มคะแนนให้ยืดเต็มแถว */
.score-pill{
    width: 100%;
}
.score-pill .btn{
    min-width:46px;
    font-weight:bold;
    border-radius:999px;
    margin:0 2px;
}
.score-pill input[type=radio]{
    display:none;
}
.score-pill .btn-choice{
    background:#eef2f7;
    border:1px solid #dbe3ee;
    min-width: 80px;     /* เดิม ~46px ? เพิ่มให้กว้างขึ้น */
    height: 48px;         /* ทำให้สี่เหลี่ยมสวยขึ้น */
    font-size: 18px;      /* ตัวเลขชัดกว่าเดิม */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;   /* มนขึ้น ดูทันสมัย */
    margin: 0 4px;   /* ระยะห่างระหว่างปุ่ม */
}
/* ?? พิเศษสำหรับหน้าจอเล็ก (มือถือ)  ไม่ให้ล้นจอ */
@media (max-width: 576px){
    .score-pill{
        display:flex;
        width:100%;
    }
    .score-pill .btn-choice{
        min-width: 0;       /* ยกเลิกบังคับความกว้าง */
        flex: 1 1 0;        /* แบ่งพื้นที่กันคนละส่วนเท่า ๆ กัน */
        margin: 0 2px;
        font-size: 16px;    /* หดตัวเลขลงนิดนึงให้พอดี */
        height: 42px;
    }
}
.score-pill .btn-choice.active,
.score-pill .btn-choice:active{
    background:#0b5fa5;
    color:#fff;
}
.footer-note{
    font-size:12px;
    color:#6b7280;
}
.summary .display-4{
    font-size:40px;
}
.progress{
    height:12px;
    border-radius:999px;
    background:#e9edf5;
}
.progress-bar{
    border-radius:999px;
}
.survey-sidebox{
    background: #f9fafb;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;  /* เพิ่มบรรทัดให้ดูอ่านง่าย */
}
.sidebox-title{
    font-weight: 700;
    font-size: 15px;
    color: #0b5fa5;
    margin-bottom: 6px;
}

.sidebox-subtitle{
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.sidebox-text{
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 14px;
}

.sidebox-system{
    font-weight: 700;
    color: #0b5fa5;
    font-size: 14px;
}

