/* Sử dụng tiền tố dlqt- để nhất quán */
.dlqt-quote-form .dlqt-form-group {
    margin-bottom: 5px;
}
.dlqt-quote-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.dlqt-quote-form select, .dlqt-quote-form input[type=text], .dlqt-quote-form input[type=number], .dlqt-quote-form input[type=tel], .dlqt-quote-form input[type=email] {
    width: 100%;
    padding: 7px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-color: #fff;
    margin-bottom: 0px;
    height: 38px;
}
.dlqt-quote-form select:disabled, .dlqt-quote-form input:disabled, .dlqt-quote-form input[readonly] {
    background-color: #fff;
    cursor: not-allowed;
}
.dlqt-participant-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #ccc; }
.dlqt-participant-row .name { font-weight: bold; }
.dlqt-participant-row .range { color: #555; font-size: 0.9em; }
.dlqt-participant-row .controls { display: flex; align-items: center; }
.dlqt-participant-row .controls button { cursor: pointer; border: 1px solid #ccc; background: #f0f0f0; width: 30px; height: 30px; font-size: 1.2em; margin-right: 0px; padding-right: 25px; padding-left: 15px;}
.dlqt-participant-row .controls span.dlqt-p-count { margin: 0 15px 15px; font-size: 1.1em; font-weight: bold; min-width: 20px; text-align: center; }
.dlqt-participant-row .controls span.warning { margin: 0 15px 15px; font-size: 1em; font-weight: bold; min-width: 20px; text-align: center; font-style: italic;}
.dlqt-warning { color: red; font-weight: bold; font-style: italic;}
.dlqt-note { color: #005a9c; font-style: italic; }
.dlqt-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 767px) { .dlqt-date-fields { grid-template-columns: 1fr; } }

/* Loader */
.dlqt-loader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.8); z-index: 999; display: flex; justify-content: center; align-items: center; }
.dlqt-spinner { border: 8px solid #f3f3f3; border-top: 8px solid #3498db; border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Lightbox chung */
.dlqt-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,.6);
}
.dlqt-lightbox-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 800px;
    position: relative;
    border-radius: 8px;
}
.dlqt-lightbox-content h4 {
    margin-top: 0;
    color: #217b56;
    font-size: 1.1em;
    text-align: center;
    text-transform: uppercase;
}
.dlqt-lightbox-close {
    color: #d32f2f;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
}
.dlqt-lightbox-close:hover {
    color: #000;
}
.dlqt-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}
.dlqt-details-table td, .dlqt-details-table th {
    border: 1px solid #ddd;
    padding: 10px 5px;
    text-align: center;
    color: #000;
}
.dlqt-details-table th {
    background-color: #217b56;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}

.dlqt-benefit-details-table.dlqt-details-table td {
    border: 1px solid #ddd;
    padding: 10px 5px!important;
    text-align: left;
    color: #000;
}

/* Nút Mua Ngay */
.dlqt-buy-button {
    background-color: #d32f2f;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s;
    margin-top: 10px;
}
.dlqt-buy-button:hover {
    background-color: #b71c1c;
}

/* Link xem chi tiết */
.dlqt-view-details-btn {
    display: block;
    margin-bottom: 10px;
    color: #0073aa;
    cursor: pointer;
    font-style: italic;
    font-size: 13px;
    text-align: center;
}

/* Grid các gói bảo hiểm */
.dlqt-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.dlqt-plan-card {
    border: 1px solid #217b56;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.dlqt-plan-card .dlqt-plan-header {
    background-color: #217b56;
    padding: 15px 10px;
    margin: -1px -1px 10px -1px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.dlqt-plan-card .dlqt-plan-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
}
.dlqt-plan-card .dlqt-plan-body {
    flex-grow: 1;
    padding: 0 15px 5px 15px;
}
.dlqt-plan-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.dlqt-plan-item:last-child {
    border-bottom: none;
}
.dlqt-plan-item .dlqt-item-label {
    text-align: left;
    margin-right: 10px;
}
.dlqt-plan-item .dlqt-item-value {
    text-align: right;
    font-weight: bold;
    color: #333;
}
.dlqt-plan-final-fee .dlqt-item-value {
    font-size: 1.1em;
    color: #d32f2f;
    font-weight: bold;
}
.dlqt-plan-final-fee .dlqt-item-label {
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
}
.dlqt-plan-item.dlqt-discount-fee .dlqt-item-value {
    color: #28a745;
}
.dlqt-plan-card .dlqt-plan-footer {
    margin-top: auto;
    padding: 0 15px;
}

/* Icon thông tin tỷ giá */
.dlqt-info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    color: #0073aa;
    border: solid 1px #0073aa;
    vertical-align: middle;
}
.dlqt-info-icon:hover {
    background-color: #005a87;
    color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .dlqt-plans-grid {
        grid-template-columns: 1fr;
    }
    .dlqt-lightbox-content {
       margin: 10% auto;
       width: 90%;
    }
}
.dlqt-results-title {
    margin-bottom: 10px;
    margin-top: 25px;
    font-weight: 700;
    color: #002930;
}
.dlqt-error-message {
    color: #d32f2f;
    font-style: italic;
    font-size: 13px;
    display: block;
    margin-top: 5px;
}
input.invalid {
    border-color: #d32f2f !important;
}
.dlqt-notice-box {
    border: 2px solid #006a4e;
    background-color: #f0f7f6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.dlqt-notice-box p {
    margin: 5px 0;
    color: #003c2d;
    font-weight: bold;
}
.dlqt-notice-box p strong {
    color: #e53935;
}

.dlqt-select-plan-btn {    
    background-color: #d32f2f;
    color: white;
    padding: 4px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s;
    margin-right: 0px;
}

.dlqt-select-plan-btn:hover {
    background-color: #b71c1c;
}
 
#dlqt-total-participants {color: #28a745; font-size: 1.1em;}

#dlqt-participants-list {margin-bottom: 10px;}

#dlqt-participants-warning {margin-bottom: 10px;}

#dlqt-step-2, #dlqt-step-4 {margin-top: 20px;}

.ui-datepicker {
    width: 290px;
    padding: 0px;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: none;
}

/* Phần header (chứa tháng, năm) */
.ui-datepicker-header {
    position: relative;
    display: flex;
    justify-content: center; /* Căn giữa nội dung */
    align-items: center;
    padding: 0 0 12px 0;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    border-top: 0;
    border-left: 0;
    border-right: 0;
}

/* THAY ĐỔI 1: Ẩn nút Previous/Next */
.ui-datepicker-prev,
.ui-datepicker-next {
    display: none !important;
}

/* Phần chứa dropdown tháng/năm */
.ui-datepicker-title {
    flex-grow: 1;
    text-align: center;
    padding: 0 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tùy chỉnh dropdown */
.ui-datepicker-title select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 2px 12px 2px 0;
    margin: 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 top 50%;
    background-size: 0.7em auto;
}
.ui-datepicker-title select:focus {
    outline: none;
}

/* Bảng lịch */
.ui-datepicker-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

/* Tiêu đề các ngày trong tuần (T2, T3, ...) */
.ui-datepicker-calendar thead th {
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #8c8c8c;
}

/* Ô chứa ngày */
.ui-datepicker-calendar tbody td {
    padding: 2px;
}

/* Link chứa số ngày */
.ui-datepicker-calendar .ui-state-default {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 1px solid transparent;
    border-radius: 50%;
    background: none;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

/* Ngày của tháng khác (màu xám) */
.ui-datepicker-other-month .ui-state-default {
    color: #bfbfbf;
    cursor: default;
}

/* Khi hover vào một ngày có thể chọn */
.ui-datepicker-calendar td:not(.ui-datepicker-other-month) .ui-state-default:hover {
    background-color: #f5f5f5;
}

/* Ngày được chọn */
.ui-datepicker-current-day .ui-state-active,
.ui-datepicker-current-day .ui-state-default {
    background-color: #1890ff !important;
    color: #fff !important;
    border-color: transparent !important;
    font-weight: 600;
}

/* Style cho ô input bị vô hiệu hóa */
input[type="text"]:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.ui-datepicker .ui-datepicker-title select {margin: 1px 5px;}