/* Thêm tiền tố chay-no- để tránh xung đột */
.chay-no-quote-form .chay-no-form-group {
    margin-bottom: 15px;
}
.chay-no-quote-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.chay-no-quote-form select, .chay-no-quote-form input[type=text], .chay-no-quote-form input[type=number], .chay-no-quote-form input[type=tel], .chay-no-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;
}
.chay-no-quote-form select:disabled, .chay-no-quote-form input:disabled, .chay-no-quote-form input[readonly] {
    background-color: #e9e9e9;
    cursor: not-allowed;
}

/* Bổ sung cho quyền lợi bổ sung */
#supplementary-benefits-container {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
}
.supplementary-benefit-item {
    margin-bottom: 15px;
}
.supplementary-benefit-item:last-child {
    margin-bottom: 0;
}
.supplementary-benefit-item label {
    display: inline-block;
    margin-left: 5px;
    font-weight: normal;
}
.benefit-input-wrapper {
    margin-top: 8px;
    padding-left: 25px;
}
.chay-no-deductible-info {
    font-weight: bold;
    color: #2a7a2a;
    margin-top: 5px;
    font-size: 13px;
    display: block;
}
/* Hết bổ sung */

.chay-no-notice {
    padding: 10px;
    margin-top: 8px;
    border-radius: 5px;
    border: 1px solid transparent;
    font-style: italic;
    background-color: #fef4e7;
    border-left: 4px solid #f0ad4e;
    font-size: 14px;
}
.form-message {
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    text-align: justify;
}
.form-message.success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}
.form-message.error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}
.chay-no-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);
}
.chay-no-lightbox-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 800px;
    position: relative;
    border-radius: 8px;
}
.chay-no-lightbox-content h4 {
    margin-top: 0;
    color: #217b56;
    font-size: 1.4em;
    text-align: center;
}
.chay-no-lightbox-close {
    color: #d32f2f;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
}
.chay-no-lightbox-close:hover {
    color: #000;
}
.chay-no-care-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}
.chay-no-care-details-table td, .chay-no-care-details-table th {
    border: 1px solid #ddd;
    padding: 10px 5px;
    text-align: right;
    color: #000;
}

.chay-no-care-details-table td:last-child {
    padding-right: 5px;
}

.chay-no-care-details-table td:first-child {
    padding-left: 5px;
    text-align: left;
}

.chay-no-care-details-table th {
    background-color: #217b56;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}
.chay-no-care-details-table .item-value {
    text-align: right !important;
}

#chay-no-results-container {text-align: center;}

.chay-no-care-button {
    background-color: #d32f2f;
    color: white;
    padding: 4px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s;
    margin-right: 0px;
}

@media (max-width: 767px) {
    .chay-no-care-button {
        width: 100%;
        left: 0%;
    }
}
.chay-no-care-button:hover {
    background-color: #b71c1c;
}

.chay-no-view-details-btn {
    display: block;
    margin-top: 10px;
    color: #0073aa;
    cursor: pointer;
    font-style: italic;
    font-size: 13px;
    text-align: center;
}

.chay-no-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}
.chay-no-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);
}

.chay-no-plan-card .chay-no-plan-header {
    background-color: #217b56;
    padding: 15px 10px;
    margin: -1px -1px 10px -1px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.chay-no-plan-card .chay-no-plan-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
}
.chay-no-plan-card .chay-no-plan-body {
    flex-grow: 1;
    padding: 0 15px 15px;
}
.chay-no-plan-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.chay-no-plan-item:last-child {
    border-bottom: none;
}
.chay-no-plan-item .chay-no-item-label {
    text-align: left;
    margin-right: 10px;
}
.chay-no-plan-item .chay-no-item-value {
    text-align: right;
    font-weight: bold;
    color: #333;
}
.chay-no-plan-final-fee .chay-no-final-price {
    font-size: 1.1em;
    color: #d32f2f;
    font-weight: bold;
}

.chay-no-plan-final-fee .chay-no-item-label {
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
}

.chay-no-plan-fee-item.chay-no-discount-fee .chay-no-item-value {
    color: #28a745;
}

.chay-no-plan-card .chay-no-plan-footer {
    margin-top: auto;
    padding: 15px;
}

@media (max-width: 767px) {
    .chay-no-plans-grid {
        grid-template-columns: 1fr;
    }
    .chay-no-lightbox-content {
       margin: 10% auto;
       width: 90%;
    }
}
.chay-no-results-title {
    text-align: center;
    font-size: 1.4em;
    margin-bottom: 10px;
    margin-top: 25px;
    font-weight: 700;
    color: #002930;
}
.chay-no-error-message {
    color: #d32f2f;
    font-style: italic;
    font-size: 13px;
    display: block;
    margin-top: 5px;
}
input.invalid {
    border-color: #d32f2f !important;
}

.supplementary-benefit-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0px;
    margin-bottom: 0px;
}

/* --- CSS BỔ SUNG CHO CÁC ICON THÔNG TIN --- */
.info-icon-bh-chay-no {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    color: #0073aa;
    border: solid 1px #0073aa;
    vertical-align: middle; /* Thêm để căn chỉnh icon với text */
}

.info-icon-bh-chay-no:hover {
    background-color: #005a87;
    color: #fff;
}

@media (max-width: 767px) {
    .info-icon-bh-chay-no {
        width: 14px;
        height: 14px;
        margin-left: 2px;
        font-size: 10px;
    }
}

.chay-no-info-lightbox-body {
    padding: 10px;
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
}

/* Tooltip cho mức khấu trừ */
.chay-no-tooltip-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 5px;
}
.chay-no-tooltip-icon .chay-no-tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -140px; /* Dùng 1 nửa width */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
}
.chay-no-tooltip-icon .chay-no-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
.chay-no-tooltip-icon:hover .chay-no-tooltip-text {
    visibility: visible;
    opacity: 1;
}