#resultBox .productImage {
    max-width: 100%;
    max-height: 180px;
}
#resultBox p {
	line-height: 1.1em;
}

#resultBox h4.productName {
	text-transform: uppercase;
}

.mt-loading-image {
	max-width: 30px;
	height: auto;
}

#warranty-check-box {
	background-color: #f2f2f2;
}

#warranty-check-box h2.mt-title {
	text-transform: uppercase;
	
}

#checkWarrantyBtn {
	text-transform: uppercase;
	min-width: 200px;
}

#resultBox {
	background: #fff;
}

/* Thiết lập cơ bản (Giữ nguyên) */
body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa; 
}

/* 1. Container Chính: Đảm bảo nó chiếm toàn bộ chiều rộng (Bố cục trang) */
.warranty-container {
    width: 100%; /* Chiếm 100% chiều rộng của cha */
    margin: 50px 0 20px 0; /* Margin trên và dưới, không có margin ngang */
    padding: 30px;
    border: 1px solid #dee2e6; 
    border-left: none; /* Loại bỏ border trái và phải để không làm hỏng bố cục trang */
    border-right: none;
    background-color: #fff; /* Màu nền trắng */
}

/* 2. Tiêu đề và Văn bản (Sử dụng MAX-WIDTH ở đây để kiểm soát nội dung) */
.form-title {
    text-align: center;
    color: #343a40; 
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 25px; 
}

.text-center {
    text-align: center;
}

.form-section {
    margin-top: 15px; 
    margin-bottom: 15px;
}

.info-block {
    /* Đặt max-width và canh giữa cho khối mô tả bên trong */
    max-width: 600px;
    margin: 0 auto; 
}

.info-block p {
    font-size: 15px; 
    color: #6c757d; 
}

/* 3. Input Form */
.input-area {
    display: flex;
    justify-content: center;
    margin-top: 30px; 
    margin-bottom: 30px;
}

.form-control {
    /* Ràng buộc chiều rộng TỐI ĐA của input, nhưng vẫn canh giữa */
    width: 100%; 
    max-width: 450px; 
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    height: 44px;
    box-sizing: border-box;
}

/* 4. Nút bấm (Giữ nguyên) */
.btn {
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

/* 5. Vùng thông báo Lỗi/Thành công */
.message-container-wrapper {
    /* Đây là nơi tôi đã loại bỏ max-width cũ */
    width: 100%;
    margin: 10px 0;
}

.error-message,
.success-message {
    /* Đặt max-width và canh giữa cho nội dung thông báo */
    max-width: 700px;
    margin: 0 auto; /* Canh giữa khối thông báo */
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/* Style cho thông báo LỖI */
.error-message {
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24; 
    background-color: #f8d7da;
}

/* Style cho thông báo THÀNH CÔNG (Tìm thấy) */
.success-message {
    border: 1px solid #b8daff;
    border-radius: 4px 4px 0 0; 
    border-bottom: none; /* Bỏ border dưới để nối với result box */
    color: #004085; 
    background-color: #cce5ff; 
}


/* 6. Vùng kết quả chi tiết sản phẩm (result box) */
.result-box {
    /* Đặt max-width và canh giữa cho khối kết quả */
    max-width: 700px;
    margin: 0 auto 20px auto; 
    padding: 15px;
    border: 1px solid #dee2e6; 
    border-top: none; /* Bỏ border trên */
    border-radius: 0 0 4px 4px; 
    background-color: #fff; 
}

.product-info-row {
    display: flex;
    gap: 15px; 
    align-items: flex-start; 
}

/* ... Các style chi tiết khác giữ nguyên ... */
.product-image-col { flex: 0 0 100px; text-align: center; }
.product-details-col { flex: 1; }
.product-image { width: 100%; height: auto; border: 1px solid #ddd; border-radius: 4px; padding: 5px; background-color: #fff; }
.productName { margin-top: 0; margin-bottom: 10px; color: #333; font-size: 18px; font-weight: bold; }
.product-detail-item { margin-bottom: 5px; }
.warranty-badge { display: inline-block; padding: 0.25em 0.4em; font-size: 85%; font-weight: 700; line-height: 1; vertical-align: middle; border-radius: 0.25rem; color: white; }
.warranty-badge.active { background-color: #28a745; }
.warranty-badge.expired { background-color: #dc3545; }