/* Premium Look & Feel Setup */
.warranty-page-wrapper {
    font-family: Montserrat;
    color: #ffd700;
    width: 100%;
    background-color: #f7f8fa;
    min-height: 100vh;
}

.warranty-page-wrapper .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Hero ===== */
.about-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c1f4d 0%, #1e3c72 55%, #14295c 100%);
    padding: 90px 0 110px;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 58%, var(--brand-blue-light) 60%, #14295c 100%);
    clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%);
}

.about-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 215, 0, 0.4) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    clip-path: polygon(78% 0, 100% 0, 100% 55%, 66% 100%, 55% 100%);
    opacity: 0.5;
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.about-hero-eyebrow {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-gold);
    margin-bottom: 18px;
}

.about-hero-title {
    color: #ffffff;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin: 0 0 20px;
}

.about-hero-subtitle {
    color: #cdd7ef;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
}

.about-hero-arrows {
    display: flex;
    gap: 6px;
    margin-top: 40px;
}

.about-hero-arrows i {
    color: var(--brand-gold);
    font-size: 14px;
}

.about-hero-year {
    position: absolute;
    right: 4%;
    bottom: -6%;
    z-index: 1;
    font-size: 150px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    user-select: none;
}


/* Card Content Area */
.warranty-content-section {
    padding: 60px 0 80px;
}

.warranty-card-container {
    max-width: 1500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    padding: 60px 40px;
}

.card-title-main {
    font-size: 32px;
    font-weight: 800;
    color: #1B4EF6;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.title-divider {
    width: 90px;
    height: 4px;
    border-radius: 2px;
    background-color: #1B4EF6;
    margin: 0 auto 20px;
}

.card-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 40px;
}

/* Search Box - refined */
.search-box-container {
    max-width: 750px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fdfdfd;
    border: 1px solid #1B4EF6;
    border-radius: 100px;
    padding: 8px 8px 8px 24px;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-input-wrapper:focus-within {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
    background: #fff;
}

.search-icon {
    color: #94a3b8;
    font-size: 16px;
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 15px 0;
    font-size: 16px;
    font-family: Montserrat;
    color: #333;
    outline: none;
    font-weight: 500;
}

.search-input-wrapper input::placeholder {
    color: #aeb9c6;
    font-weight: 400;
}

.clear-search-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #eef1f5;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.clear-search-btn.is-visible {
    display: flex;
}

.clear-search-btn:hover {
    background: #e2e8f0;
}

.warranty-submit-btn {
    background:  #1e3c72;
    color: #ffd700;
    border: none;
    border-radius: 100px;
    padding: 15px 40px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow:0 4px 15px rgba(255, 215, 0, 0.35);
    flex-shrink: 0;
}

/* Valid / Error messages */
.valid-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: #16a34a;
    font-weight: 600;
    font-size: 16px;
    margin-top: 28px;
    animation: fadeIn 0.4s ease;
}

.valid-msg i {
    font-size: 18px;
}

.search-error-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff1f0;
    border: 1px solid #ffa39e;
    color: #cf1322;
    padding: 20px;
    border-radius: 12px;
    font-weight: 500;
    margin-top: 28px;
    animation: fadeIn 0.4s ease;
}

/* Results layout - professional */
.warranty-results-area {
    margin-top: 0;
}

.results-layout {
    margin-top: 30px;
}

.result-card-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    background: #fcfdfe;
    border: 1px solid #eef1f5;
    border-radius: 16px;
    padding: 30px;
}

/* Product media / thumbnail */
.result-media-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    border-radius: 12px;
    background: #eaf1fb;
    color: #1B4EF6;
    font-size: 56px;
}

.result-media-caption {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f4f6f8;
    border-radius: 10px;
    padding: 14px;
    margin-top: 16px;
}

.result-media-caption i {
    color: #16a34a;
    font-size: 20px;
    margin-top: 2px;
}

.result-media-caption strong {
    display: block;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.result-media-caption span {
    display: block;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

/* Detail rows */
.result-details {
    display: flex;
    flex-direction: column;
}

.detail-line {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f4f8;
}

.detail-line:last-child {
    border-bottom: none;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fdf1f1;
    color: #1B4EF6;
    font-size: 16px;
}

.label {
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    width: 160px;
    flex-shrink: 0;
}

.value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
    flex: 1;
}

.serial-number {
    color: #1B4EF6;
}

.warranty-value {
    color: #FF0000;
}

.expiry-value {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #1a1a1a;
}

.expiry-value.is-active,
.expiry-value.is-lifetime {
    color: #16a34a;
}

.expiry-value.is-expired {
    color: #cf1322;
}

.expiry-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.expiry-badge.expiry-ok {
    background:  #1e3c72;
    color: #ffd700;
}

.expiry-badge.expiry-expired {
    background: #FFC1C1;
    color: #cf1322;
}

/* Notice bar */
.warranty-notice-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 24px;
    background:  #1e3c72;
    color: #ffd700;
    font-size: 16px;
    font-weight: 500;

}

.warranty-notice-bar i {
    color: #1B4EF6;
    margin-top: 2px;
}

.warranty-notice-bar strong {
    color: #ffd700;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom features row */
.warranty-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1500px;
    margin: 30px auto 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background:  #1e3c72;
    color: #ffd700;
    font-size: 18px;
}

.feature-text h4 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.feature-text p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}

.feature-highlight {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e3c72 !important;
}

.feature-highlight a {
    color: inherit;
    text-decoration: none;
}

.feature-sub {
    color: #64748b !important;
}

/* Responsive */
@media (max-width: 900px) {
    .warranty-features-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .warranty-card-container {
        padding: 30px 15px;
    }

    .search-input-wrapper {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 12px 15px;
    }

    .search-input-wrapper input {
        padding: 8px 0;
        flex-basis: 100%;
        order: 1;
    }

    .search-icon {
        order: 0;
    }

    .clear-search-btn {
        order: 2;
    }

    .warranty-submit-btn {
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    .result-card-item {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }

    .result-media-box {
        height: 160px;
        font-size: 40px;
    }

    .detail-line {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
        padding: 12px 0;
    }

    .label {
        font-size: 14px;
        color: #94a3b8;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        width: auto;
    }

    .value {
        font-size: 16px;
        font-weight: 700;
        flex-basis: 100%;
        padding-left: 54px;
    }

    .card-title-main {
        font-size: 22px;
    }

    .card-subtitle {
        font-size: 15px;
    }

    .warranty-features-row {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
}
