* {
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f0f7ff; /* สีฟ้าอ่อนมากๆ */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.booking-box {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 149, 255, 0.1);
    border: 1px solid #e1efff;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h2 {
    color: #007bff; /* สีฟ้าหลัก */
    margin: 0;
}

.header p {
    color: #6c757d;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    margin-bottom: 10px;
}

input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

button {
    width: 100%;
    padding: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

#statusMessage {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background-color: #d4edda;
    color: #155724;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* สร้างวงกลมหมุน */
.spinner {
    display: none; /* ซ่อนไว้ก่อน */
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ปรับแต่งปุ่มเวลาที่มี Spinner */
button {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* เมื่อปุ่มถูกปิดการใช้งาน (ตอนกำลังโหลด) */
button:disabled {
    background-color: #a0cfff;
    cursor: not-allowed;
}
