/* 1. เพิ่มการ Import Font เพื่อให้แสดงผลภาษาไทยสวยงาม */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;700;900&display=swap');

body {
    background-color: #f4f7f6;
    font-family: 'Kanit', sans-serif; /* ใช้ Font ที่ Import มา */
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    min-height: 100vh;
    overflow-x: hidden;
}

/* 2. แก้ไขส่วนหัวข้อ (Company Header) */
.company-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.brand-badge {
    background: #004a99;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

/* 3. ปรับขนาดโลโก้ KID-D ให้สมดุล */
.company-title {
    font-size: clamp(3rem, 10vw, 5rem); /* ปรับขนาดตามหน้าจออัตโนมัติ */
    font-weight: 900;
    margin: 0;
    color: #004a99;
    text-shadow: 2px 2px 0px #fff, 4px 4px 10px rgba(0,0,0,0.1);
}

.char-d {
    color: #ff8c00;
}

/* 4. ส่วนสำคัญ: ตกแต่งการ์ดค้นหา (Main Card) */
.main-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 550px;
    border-top: 8px solid #004a99;
    transition: transform 0.3s ease;
}

/* 5. ปรับแต่งปุ่มและช่องกรอกข้อมูล */
.form-control {
    border-radius: 10px 0 0 10px !important;
    padding: 12px;
}

.btn-search {
    border-radius: 0 10px 10px 0 !important;
    background-color: #004a99 !important;
    border: none;
    padding: 0 25px;
}

/* 6. ส่วนแสดงผลลัพธ์ */
#resultArea .alert {
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: left;
}

/* --- ส่วนปุ่มแจ้งเคลมสไตล์ Modern --- */
.btn-claim-modern {
    display: inline-flex; /* เปลี่ยนจาก flex เป็น inline-flex เพื่อให้กรอบไม่ยาวเต็มจอ */
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #06C755;
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 30px; /* เพิ่ม padding ซ้าย-ขวา ให้ปุ่มดูมีรูปทรงสวยงาม */
    border-radius: 50px; /* ปรับเป็นทรงแคปซูล จะดูวัยรุ่นและกระทัดรัดกว่า */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.2);
    
    /* จำกัดความกว้างปุ่ม */
    min-width: 200px; 
    margin: 0 auto; /* จัดให้อยู่กึ่งกลาง */
}
/* เอฟเฟกต์ตอนเมาส์ชี้ (วัยรุ่นชอบ!) */
.btn-claim-modern:hover {
    transform: translateY(-5px) scale(1.02); /* ยกตัวขึ้นและขยายขึ้นนิดเดียว */
    background-color: #05b34c;
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
    color: white !important;
}

/* เอฟเฟกต์ตอนกดปุ่ม */
.btn-claim-modern:active {
    transform: translateY(-2px) scale(0.98); /* ยุบตัวลงเหมือนปุ่มจริงๆ */
}

/* สไตล์เส้นคั่นให้ดูสะอาดตา */
.claim-divider {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

#claimSection {
    text-align: center;
    width: 100%;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

