/* ===== Trang tra cứu bảo hành ===== */
.bh-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.bh-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    padding: 40px;
}

.bh-title {
    text-align: center;
    font-size: 26px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 18px;
    margin: 0 0 30px;
    border-bottom: 1px solid #e2e2e2;
}

.bh-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.bh-step-num {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    background: #01519a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transform: rotate(45deg);
}

.bh-step-num span {
    transform: rotate(-45deg);
}

.bh-step-label {
    font-size: 17px;
    font-weight: 600;
    color: #222;
}

.bh-search-form {
    display: flex;
    gap: 10px;
    margin: 0 0 34px 46px;
}

.bh-search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    font-size: 15px;
}

.bh-search-form button {
    background: #ff8b16;
    color: #fff;
    border: 0;
    padding: 0 26px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: .2s;
}

.bh-search-form button:hover {
    background: #e87a08;
}

.bh-search-form button:disabled {
    opacity: .6;
    cursor: default;
}

.bh-search-msg {
    margin: -20px 0 24px 46px;
    color: #d63638;
    font-size: 14px;
}

.bh-search-msg:empty {
    display: none;
}

.bh-result {
    margin: 0 0 34px 46px;
}

.bh-result:empty {
    display: none;
}

.bh-result-card {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 24px;
}

.bh-result-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.bh-status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.bh-status-badge--active { background: #2e9e4b; }
.bh-status-badge--expired { background: #d63638; }
.bh-status-badge--stopped { background: #8a8a8a; }
.bh-status-badge--unknown { background: #b98a00; }

.bh-days-left {
    font-size: 13px;
    color: #555;
}

.bh-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.bh-info-table th,
.bh-info-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.bh-info-table th {
    width: 180px;
    color: #666;
    font-weight: 600;
}

.bh-history h4 {
    margin: 0 0 10px;
    font-size: 15px;
}

.bh-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bh-history-table th,
.bh-history-table td {
    border: 1px solid #ececec;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.bh-history-table th {
    background: #f7f7f7;
}

.bh-history-empty {
    color: #777;
    font-size: 14px;
}

.bh-print-btn {
    margin-top: 18px;
    background: #01519a;
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.bh-print-btn:hover {
    background: #013f79;
}

.bh-divider {
    border: 0;
    border-top: 1px dashed #d7d7d7;
    margin: 34px 0;
}

.bh-intro {
    text-align: center;
    color: #444;
    margin: 0 0 26px;
}

.bh-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bh-links a,
.bh-links button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    background: none;
    border: 1px solid #01519a;
    color: #01519a;
    padding: 14px 10px;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 4px;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
}

.bh-links a:hover,
.bh-links button:hover {
    background: #01519a;
    color: #fff;
}

.bh-request-trigger {
    margin: 0 0 20px 46px;
}

.bh-request-trigger button {
    background: none;
    border: 1px solid #01519a;
    color: #01519a;
    padding: 12px 26px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.bh-request-trigger button:hover {
    background: #01519a;
    color: #fff;
}

/* Form yêu cầu bảo hành */
.bh-request {
    margin-top: 20px;
    display: none;
}

.bh-request.is-open {
    display: block;
}

.bh-request-hint {
    color: #555;
    margin: 0 0 18px;
}

.bh-request-empty {
    color: #777;
    font-size: 14px;
}

/* Restyle form Caldera Forms nhúng vào để khớp giao diện trang */
.bh-request-caldera {
    background: #f9fafb;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 24px;
}

.bh-request-caldera .form-group {
    margin-bottom: 16px;
}

.bh-request-caldera .form-control {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s;
}

.bh-request-caldera .form-control:focus {
    outline: none;
    border-color: #01519a;
}

.bh-request-caldera textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.bh-request-caldera .btn,
.bh-request-caldera input[type="submit"] {
    box-sizing: border-box;
    background: #ff8b16;
    color: #fff;
    border: 0;
    padding: 12px 32px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
}

.bh-request-caldera .btn:hover,
.bh-request-caldera input[type="submit"]:hover {
    background: #e87a08;
}

@media (max-width: 600px) {
    .bh-card { padding: 24px 18px; }
    .bh-search-form,
    .bh-result,
    .bh-search-msg,
    .bh-request-trigger { margin-left: 0; }
    .bh-links { grid-template-columns: 1fr; }
    .bh-request-caldera { padding: 18px; }
}

/* In phiếu bảo hành: chỉ in khu vực kết quả */
@media print {
    body * { visibility: hidden; }
    .bh-print-area, .bh-print-area * { visibility: visible; }
    .bh-print-area { position: absolute; top: 0; left: 0; width: 100%; }
    .bh-print-btn { display: none; }
}
