/* ==========================================================================
   Warranty Page Styles (No Bootstrap, Modern & Elegant)
   ========================================================================== */

.warranty-page {
    padding: 35px 0 60px;
    background-color: #fcfbfa;
    min-height: 550px;
}

.warranty-page__wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #f2ede4;
}

/* Phần mô tả / chính sách bảo hành */
.warranty-page__desc {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #e8e0d5;
}

/* ==========================================================================
   Warranty Search Section
   ========================================================================== */
.warranty-search-section {
    margin: 40px 0;
}

.warranty-search-box {
    background: linear-gradient(135deg, #ffffff 0%, #fbf8f4 100%);
    border: 1px solid #ebdecb;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(120, 78, 47, 0.06);
    position: relative;
    overflow: hidden;
}

.warranty-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #784e2f 0%, #d48b3b 50%, #784e2f 100%);
}

.warranty-search-box__head {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 28px;
}

.warranty-search-box__badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #784e2f;
    background: #f7ede2;
    border-radius: 20px;
    margin-bottom: 10px;
}

.warranty-search-box__title {
    font-size: 26px;
    font-weight: 800;
    color: #2b1f14;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.warranty-search-box__desc {
    font-size: 14.5px;
    color: #6b635b;
    margin: 0;
    line-height: 1.5;
}

/* Radio Types */
.warranty-search-types {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 22px;
}

.warranty-type-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 15px;
    font-weight: 600;
    color: #4a3e35;
    transition: color 0.2s ease;
}

.warranty-type-radio {
    display: none;
}

.warranty-type-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #c8baa9;
    border-radius: 50%;
    margin-right: 9px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    flex-shrink: 0;
}

.warranty-type-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    top: 3px;
    left: 3px;
    background: #d48b3b;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.warranty-type-radio:checked + .warranty-type-custom {
    border-color: #d48b3b;
}

.warranty-type-radio:checked + .warranty-type-custom::after {
    opacity: 1;
    transform: scale(1);
}

.warranty-type-radio:checked ~ .warranty-type-text {
    color: #784e2f;
}

.warranty-type-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.warranty-type-text svg {
    color: #784e2f;
}

/* Input group */
.warranty-search-input-group {
    display: flex;
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #ebdecb;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.warranty-search-input-group:focus-within {
    border-color: #d48b3b;
    box-shadow: 0 6px 20px rgba(212, 139, 59, 0.15);
}

.warranty-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.warranty-input-icon {
    color: #a89a8b;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.warranty-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 0;
    font-size: 15px;
    color: #2b1f14;
}

.warranty-input::placeholder {
    color: #a39789;
}

.warranty-btn-submit {
    border: none;
    outline: none;
    cursor: pointer;
    background: linear-gradient(135deg, #e38627 0%, #cb6a14 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 0 32px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    white-space: nowrap;
}

.warranty-btn-submit:hover {
    background: linear-gradient(135deg, #d37719 0%, #b85b09 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

.warranty-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spin {
    animation: warrantySpin 0.9s linear infinite;
}

@keyframes warrantySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer / hotline */
.warranty-search-footer {
    margin-top: 18px;
    text-align: center;
}

.warranty-hotline-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #63584e;
}

.warranty-hotline-text svg {
    color: #e38627;
}

.warranty-hotline-text .hotline-number {
    color: #b85b09;
    font-weight: 700;
    text-decoration: none;
}

.warranty-hotline-text .hotline-number:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Warranty Results Table (Modern Card Style)
   ========================================================================== */
.warranty-result-container {
    margin-top: 30px;
    animation: fadeInWarranty 0.35s ease;
}

@keyframes fadeInWarranty {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.warranty-result__card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e7ded2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.warranty-result__header {
    background: #fbf7f1;
    padding: 18px 24px;
    border-bottom: 1px solid #eee4d7;
}

.warranty-result__summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.warranty-result__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.warranty-result__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2b1f14;
}

.warranty-result__sub {
    margin: 2px 0 0;
    font-size: 14px;
    color: #695d52;
}

.warranty-result__highlight {
    color: #b85b09;
    font-weight: 700;
}

.warranty-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.warranty-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.warranty-table th,
.warranty-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0e9df;
    vertical-align: middle;
}

.warranty-table thead th {
    background-color: #faf5ed;
    color: #4a3c2e;
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.warranty-table tbody tr:hover {
    background-color: #fdfaf6;
}

.warranty-badge--code {
    display: inline-block;
    padding: 4px 10px;
    background: #fdf2e9;
    color: #c05621;
    border: 1px solid #fbd38d;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.5px;
}

.warranty-customer-name {
    color: #231d16;
    font-size: 14.5px;
}

.warranty-address {
    max-width: 220px;
    line-height: 1.45;
    color: #4b4238;
}

.warranty-phone {
    font-weight: 600;
    color: #2b1f14;
}

.warranty-product {
    color: #69523e;
    font-weight: 600;
}

.warranty-category {
    color: #555;
}

.warranty-date {
    color: #5a4f44;
    white-space: nowrap;
}

.warranty-date--end {
    font-weight: 600;
    color: #1b1612;
}

.warranty-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.warranty-status--active {
    background-color: #d1fae5;
    color: #065f46;
}

.warranty-status--expired {
    background-color: #f3f4f6;
    color: #4b5563;
}

.warranty-status--cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.warranty-content-row td {
    background-color: #fffefb;
    padding: 12px 20px;
}

.warranty-note {
    background: #fbf8f3;
    border-left: 3px solid #d48b3b;
    padding: 10px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
}

.warranty-note strong {
    color: #784e2f;
}

.warranty-note__body {
    margin-top: 4px;
    color: #444;
}

/* Empty State */
.warranty-result__empty {
    text-align: center;
    background: #ffffff;
    border-radius: 14px;
    border: 1px dashed #e2d8c9;
    padding: 40px 20px;
}

.warranty-result__empty-icon {
    color: #d48b3b;
    margin-bottom: 12px;
}

.warranty-result__empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #2b1f14;
    margin: 0 0 8px;
}

.warranty-result__empty-desc {
    font-size: 14.5px;
    color: #63584e;
    margin: 0 0 18px;
    line-height: 1.6;
}

.warranty-result__support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fcf9f5;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
}

.warranty-support-link {
    color: #b85b09;
    font-weight: 700;
    text-decoration: none;
}

.warranty-support-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Phần nội dung chính sách (noi_dung_in)
   ========================================================================== */
.warranty-page__content {
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px dashed #e8e0d5;
}

.warranty-page .noi_dung_in h1,
.warranty-page .noi_dung_in h2,
.warranty-page .noi_dung_in h3,
.warranty-page .noi_dung_in h4 {
    color: #4a3321;
    margin-top: 24px;
    margin-bottom: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.warranty-page .noi_dung_in h1 {
    font-size: 24px;
    text-transform: uppercase;
}

.warranty-page .noi_dung_in h2 {
    font-size: 20px;
}

.warranty-page .noi_dung_in h3 {
    font-size: 18px;
}

.warranty-page .noi_dung_in p {
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.7;
    color: #3f3f3f;
    font-size: 15px;
}

.warranty-page .noi_dung_in a {
    color: #784e2f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.warranty-page .noi_dung_in a:hover {
    color: #4a3321;
    text-decoration: underline;
}

.warranty-page .noi_dung_in strong,
.warranty-page .noi_dung_in b {
    color: #222;
}

.warranty-page .noi_dung_in ul,
.warranty-page .noi_dung_in ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.warranty-page .noi_dung_in li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .warranty-page {
        padding: 20px 0 40px;
    }

    .warranty-page__wrapper {
        padding: 24px 16px;
        border-radius: 10px;
    }

    .warranty-search-box {
        padding: 24px 16px;
    }

    .warranty-search-box__title {
        font-size: 20px;
    }

    .warranty-search-types {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-left: 10px;
    }

    .warranty-search-input-group {
        flex-direction: column;
        border-radius: 10px;
    }

    .warranty-input-wrapper {
        padding: 6px 14px;
    }

    .warranty-btn-submit {
        width: 100%;
        padding: 14px;
    }

    .warranty-table th,
    .warranty-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
