.mic-quote-form .form-group {
    margin-bottom: 5px;
    margin-top: 5px;
}
.mic-quote-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.mic-quote-form select, .mic-quote-form input[type=text], .mic-quote-form input[type=tel] {
    width: 100%;
    padding: 7px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-color: #fff;
    margin-bottom: 0px;
}

input#customer-car-value {
    margin-bottom: 0px;
}

.mic-quote-form select:disabled {
    background-color: #e9e9e9;
    cursor: not-allowed;
}
.mic-quote-form .hidden {
    display: none;
}
.mic-quote-form .mic-form-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 0 20px;
}
@media (max-width:768px) {
    .mic-quote-form .mic-form-grid {
        grid-template-columns: 1fr;
    }
}
.mic-quote-form .loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.mic-quote-form #results-container {
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed #002930;
}
.mic-quote-form .result-title {
    text-align: center;
    color: #217b56;
    margin-bottom: 20px;
}
.mic-quote-form .price-item {
    display: flex;                 /* Kích hoạt Flexbox */
    justify-content: space-between;/* Đẩy các phần tử ra 2 bên */
    align-items: center;           /* Căn giữa theo chiều dọc */
    padding: 5px 0;               /* Thêm khoảng cách trên dưới cho đẹp */
    border-bottom: 1px solid #f0f0f0; /* Thêm đường kẻ phân cách */
}

.mic-quote-form .price-item:last-child {
    border-bottom: none;
}
.mic-quote-form .price-item .fee-name {
    font-weight: 700;
}

.mic-quote-form .price-item .fee-value {
    float: left;
}

.mic-quote-form .price-item .fee-value strong {
    color: #e92128;
    font-size: 1.2em;
}
span.original-fee {
    text-decoration: line-through;
    font-size: 0.9em;
}

.mic-quote-form .info-icon {
    cursor: pointer;
    color: #0073aa;
    margin-left: 8px;
    font-size: 9px;
    border: 1px solid;
    border-radius: 2px;
    display: inline-block;
    text-align: center;
    padding: 0 5px;
    font-weight: 500;
}
#custom-value-hint, #custom-value-error {
    font-size: 12px;
    margin-top: 4px;
    color: #e92128;
    font-style: italic;
}
#custom-value-error {
    color: red;
}
.mic-notice {
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    border: 1px solid transparent;
}

.mic-notice-date-end {
    color: #ed1c24;
}


.mic-notice.promo {
    background-color: #f4f8f7;
    border-color: #217b56;
    color: #002930;
}
.mic-notice.final {
    font-style: italic;
    background-color: #fef4e7;
}
.form-message {
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
}
.form-message.success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}
.form-message.error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}
.mic-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 40px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,.6);
}
.mic-lightbox-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 800px;
    position: relative;
    border-radius: 8px;
}
.mic-lightbox-content h4 {
    margin-top: 0;
}
.mic-lightbox-content ul {
    list-style: none;
    padding: 0;
}
.mic-lightbox-content li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.mic-lightbox-content li:last-child {
    border-bottom: none;
}
.mic-lightbox-close {
    color: #d32f2f;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
}
.mic-lightbox-close:hover {
    color: #000;
}

/* CSS Thêm vào cuối file css/style.css */
.mic-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}
.mic-details-table th, 
.mic-details-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    color: #000;
}
.mic-details-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.mic-details-table td:first-child {
    text-align: left;
    padding-left: 5px;
    color: #000;
}

/* === CSS CHO NÚT MUA NGAY (Thêm vào cuối file) === */
.mic-button {
    background-color: #d32f2f; /* Màu đỏ của kết quả */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    margin-top: 0px;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s;
}
.mic-button:hover {
    background-color: #b71c1c; /* Màu đỏ sậm hơn khi hover */
}

@media screen and (max-width: 768px) {
    .mic-button {
        width: 100%;
    }
}

/* === CSS CHO NÚT MUA NGAY CỦA TỪNG GÓI (Thêm vào cuối file) === */
.buy-now-btn {
    background-color: #e92128;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.buy-now-btn:hover {
    background-color: #c9302c;
}

/* Container cho nút để căn lề */
.price-item .buy-now-container {
    text-align: right;
    min-width: 100px;
}

/* === CSS CHO NÚT MUA NGAY (Thêm vào cuối file) === */
.mic-button {
    background-color: #d32f2f; /* Màu đỏ của kết quả */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    margin-top: 20px;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s;
}
.mic-button:hover {
    background-color: #b71c1c; /* Màu đỏ sậm hơn khi hover */
}

/* Định dạng cho bảng so sánh quyền lợi */
.mic-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}
.mic-details-table th, 
.mic-details-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}
.mic-details-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.mic-details-table td:first-child {
    text-align: left;
}

/* Thêm vào css/style.css */
.mic-lightbox.is-visible {
    display: block !important; /* Sử dụng !important để đảm bảo ghi đè */
}

/* --- Responsive Table for Lightbox --- */
@media screen and (max-width: 768px) {
    .mic-details-table {
        border: 0;
    }
    .mic-details-table thead {
        display: none;
    }
    .mic-details-table tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
    }
    
    /* === DÒNG MỚI ĐƯỢC THÊM VÀO ĐÂY === */
    .mic-details-table tr:last-child {
        margin-bottom: 0; /* Xóa khoảng trống thừa ở thẻ cuối cùng */
    }
    /* ===================================== */

    .mic-details-table td {
        display: block;
        text-align: right!important;
        padding: 8px 10px !important;
        border-bottom: 1px solid #eee;
        color: #000;
    }
    .mic-details-table td:last-child {
        border-bottom: 0;
    }
    .mic-details-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.9em;
    }
    .mic-details-table td:first-child {
        background-color: #f8f8f8;
        font-weight: bold;
        text-align: center;
        font-size: 1.1em;
    }
    .mic-details-table td:first-child::before {
        content: "";
    }
}

/* --- CSS cho phí bảo hiểm theo ngày --- */
.price-item .fee-value .daily-fee {
    display: block;
    font-size: 0.9em;
    color: #ed1c24;
    font-weight: 400;
    margin-top: 0px;
    font-style: italic;
}

/* === Đồng bộ giao diện Select2 với form MIC Car Quote === */

#mic-quote-form-wrapper .select2-container--default .select2-selection--single {
    border: 1px solid #ccc; /* Màu viền xám nhạt, giống các ô khác */
    border-radius: 4px; /* Bo góc nhẹ */
    padding: 0 7px;
}

/* 2. Căn chỉnh văn bản và mũi tên bên trong ô Select2 */
#mic-quote-form-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057; /* Màu chữ */
}

/* 3. Bỏ hiệu ứng viền xanh khi click (focus) vào ô Select2 */
#mic-quote-form-wrapper .select2-container--default.select2-container--open .select2-selection--single,
#mic-quote-form-wrapper .select2-container--default .select2-selection--single:focus {
    box-shadow: none; /* Bỏ hiệu ứng đổ bóng */
    border: 1px solid #ccc; /* Bạn có thể đổi màu này hoặc để màu viền cũ #ced4da */
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #333;
}

.select2-results__option {
    padding: 5px 7px;
    font-size: 14px;
    margin-left: 0px !important;
    margin-bottom: 0px !important;
}

/* Thêm thuộc tính để sửa lỗi mobile (quan trọng) */
#mic-quote-form-wrapper {
    position: relative;
}

.tnds-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.tnds-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.tnds-radio-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.price-item-wrapper {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.price-item-wrapper:last-child {
    border-bottom: none;
}

.price-item.sub-item {
    padding: 5px 15px 0 15px; /* Thụt vào một chút */
    border: none;
}
.price-item.sub-item .fee-name {
    font-weight: normal;
    font-style: italic;
}

.price-item.total-item {
    padding: 5px 15px 0 15px;
    border: none;
}
.price-item.total-item .fee-name {
    font-weight: bold;
}
.price-item.total-item .fee-value strong {
    color: #d32f2f; /* Màu đỏ đậm hơn cho tổng */
}

.price-item .fee-value .daily-fee {
    display: inline-block;
    font-size: 0.9em;
    color: #555;
    font-weight: 400;
    margin-top: 0px;
    font-style: italic;
    margin-left: 5px;
}

/* Bỏ flexbox khỏi price-item cũ */
.mic-quote-form .price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.price-item-wrapper {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}
.price-item-wrapper:last-of-type {
    border-bottom: none;
}

.price-item .fee-details {
    text-align: left;
}

.price-item .fee-values {
    text-align: right;
    white-space: nowrap; /* Giữ giá tiền trên 1 dòng */
    font-size: 0.9em;
    color: #555;
}

.price-item .fee-values strong {
    font-size: 1.2em;
    color: #e92128;
}

.price-item.main-fee .fee-name {
    font-weight: bold;
    font-size: 1.2em;
}

.price-item .daily-fee {
    font-size: 0.8em;
    font-style: italic;
    color: #555;
    margin-top: 2px;
}

.price-item.sub-item .fee-details {
    font-style: italic;
}

.price-item.total-item .fee-details {
    font-weight: bold;
}

.price-item.total-item .fee-values strong {
    color: #e92128;
}

/* Bỏ container cũ của nút Mua Ngay */
.price-item .buy-now-container {
    display: none;
}

/* Container mới cho nút Mua Ngay */
.buy-now-wrapper {
    text-align: center;
    margin-top: 15px;
}

.buy-now-wrapper .buy-now-btn {
    display: inline-block;
    width: auto; /* Cho phép nút co giãn theo nội dung */
    padding: 5px 30px; /* Tăng padding cho nút to hơn */
}

#order-form-container {margin-top: 20px;}