/* ==========================================================================
   VinFast Warranty Policy - Premium EV Design System
   ========================================================================== */

:root {
    --vf-blue-primary: #004C97;
    --vf-blue-hover: #00366b;
    --vf-blue-accent: #1464f4;
    --vf-blue-light: #eff6ff;
    --vf-blue-glow: rgba(20, 100, 244, 0.25);
    
    --vf-green-accent: #10b981;
    --vf-green-bg: #ecfdf5;
    --vf-amber-accent: #f59e0b;
    --vf-amber-bg: #fffbe6;
    --vf-red-accent: #ef4444;
    
    --vf-dark-bg: #0f172a;
    --vf-dark-card: #1e293b;
    --vf-bg-body: #f8fafc;
    --vf-card-bg: #ffffff;
    --vf-text-main: #0f172a;
    --vf-text-muted: #64748b;
    --vf-border-color: #e2e8f0;
    --vf-radius-lg: 24px;
    --vf-radius-md: 16px;
    --vf-radius-sm: 10px;
    --vf-shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --vf-shadow-md: 0 10px 30px rgba(0,76,151,0.08);
    --vf-shadow-lg: 0 20px 40px rgba(0,76,151,0.12);
}

.warranty-page-wrapper {
    background: var(--vf-bg-body);
    color: var(--vf-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Hero Section & Glassmorphism Header
   -------------------------------------------------------------------------- */
.vf-warranty-hero {
    position: relative;
    padding: 60px 0 70px;
    background: linear-gradient(135deg, #051428 0%, #00366b 50%, #004C97 100%);
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.vf-warranty-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 140%; height: 200%;
    background: radial-gradient(circle, rgba(20, 100, 244, 0.25) 0%, rgba(0,0,0,0) 65%);
    pointer-events: none;
}

.vf-hero-inner {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.vf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vf-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
    color: #ffffff !important;
    letter-spacing: -0.5px;
}

.vf-hero-title span {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vf-hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 820px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.vf-hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
}

.vf-highlight-chip {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--vf-radius-md);
    padding: 18px 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vf-highlight-chip:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
}

.vf-chip-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--vf-blue-accent) 0%, #004C97 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(20, 100, 244, 0.3);
}

.vf-chip-text h4 {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.vf-chip-text p {
    margin: 0;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   Sticky Tab Navigation
   -------------------------------------------------------------------------- */
.vf-sticky-nav-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--vf-border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: top 0.3s ease;
}

.admin-bar .vf-sticky-nav-container {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .vf-sticky-nav-container {
        top: 46px;
    }
}

.vf-tabs-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.vf-tabs-wrapper::-webkit-scrollbar { display: none; }

.vf-tab-btn {
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--vf-text-muted);
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.vf-tab-btn:hover {
    color: var(--vf-blue-primary);
}

.vf-tab-btn.active {
    color: var(--vf-blue-accent);
}

.vf-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--vf-blue-accent), #38bdf8);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 8px var(--vf-blue-glow);
}

/* --------------------------------------------------------------------------
   Model Interactive Selector Section
   -------------------------------------------------------------------------- */
.vf-model-selector-sec {
    background: #ffffff;
    border-radius: var(--vf-radius-lg);
    border: 1px solid var(--vf-border-color);
    padding: 35px 30px;
    margin: 40px auto 0;
    max-width: 1240px;
    box-shadow: var(--vf-shadow-sm);
}

.vf-selector-header {
    text-align: center;
    margin-bottom: 25px;
}

.vf-selector-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--vf-text-main);
    margin: 0 0 6px;
}

.vf-selector-header p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--vf-text-muted);
}

.vf-model-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.vf-model-pill {
    padding: 10px 20px;
    border-radius: 50px;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    color: var(--vf-text-main);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vf-model-pill:hover {
    background: #e2e8f0;
}

.vf-model-pill.active {
    background: var(--vf-blue-primary);
    color: #ffffff;
    border-color: var(--vf-blue-accent);
    box-shadow: 0 4px 14px rgba(0, 76, 151, 0.25);
}

/* Card Result Display for Selected Model */
.vf-model-detail-card {
    margin-top: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-radius: var(--vf-radius-md);
    border: 1px solid #cbd5e1;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    animation: fadeIn 0.4s ease;
}

.vf-model-info-box {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--vf-radius-sm);
    border: 1px solid var(--vf-border-color);
}

.vf-model-info-box h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--vf-text-muted);
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.vf-model-info-box .val-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--vf-blue-primary);
}

/* --------------------------------------------------------------------------
   Tab Content Sections
   -------------------------------------------------------------------------- */
.vf-tab-content-sec {
    display: none;
    max-width: 1240px;
    margin: 45px auto 0;
    padding: 0 20px;
    animation: fadeIn 0.4s ease;
}

.vf-tab-content-sec.active {
    display: block;
}

.vf-section-title-wrap {
    margin-bottom: 35px;
    text-align: center;
}

.vf-section-title-wrap h2 {
    font-size: clamp(1.38rem, 2.8vw, 1.75rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.vf-section-title-wrap p {
    font-size: 1.05rem;
    color: var(--vf-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Tables & Badges
   -------------------------------------------------------------------------- */
.vf-table-card {
    background: #ffffff;
    border-radius: var(--vf-radius-lg);
    border: 1px solid var(--vf-border-color);
    box-shadow: var(--vf-shadow-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.vf-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vf-custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.vf-custom-table th {
    background: #f1f5f9;
    color: var(--vf-text-main);
    font-weight: 800;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 24px;
    border-bottom: 2px solid var(--vf-border-color);
    white-space: nowrap;
}

.vf-custom-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--vf-border-color);
    font-size: 0.98rem;
    color: var(--vf-text-main);
    vertical-align: middle;
}

.vf-custom-table tr:last-child td {
    border-bottom: none;
}

.vf-custom-table tr:hover td {
    background: #f8fafc;
}

/* Badges */
.vf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

.vf-badge-blue {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.vf-badge-green {
    background: var(--vf-green-bg);
    color: #059669;
    border: 1px solid #a7f3d0;
}

.vf-badge-amber {
    background: var(--vf-amber-bg);
    color: #d97706;
    border: 1px solid #fde68a;
}

.vf-badge-purple {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

/* Notice & Note Cards */
.vf-note-box {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-left: 5px solid var(--vf-blue-accent);
    border-radius: 0 var(--vf-radius-md) var(--vf-radius-md) 0;
    padding: 22px 26px;
    margin: 25px 0;
}

.vf-note-box p {
    margin: 0;
    color: #1e40af;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Grid Cards Section (Phụ tùng, Cứu hộ, Điều khoản)
   -------------------------------------------------------------------------- */
.vf-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.vf-feature-card {
    background: #ffffff;
    border-radius: var(--vf-radius-lg);
    border: 1px solid var(--vf-border-color);
    padding: 32px 28px;
    box-shadow: var(--vf-shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vf-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--vf-shadow-md);
    border-color: var(--vf-blue-accent);
}

.vf-card-icon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.vf-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--vf-blue-light);
    color: var(--vf-blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.vf-feature-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--vf-text-main);
    margin: 0 0 12px;
}

.vf-feature-card p {
    font-size: 0.95rem;
    color: var(--vf-text-muted);
    margin: 0 0 20px;
    flex-grow: 1;
}

.vf-card-stat {
    background: var(--vf-bg-body);
    padding: 12px 18px;
    border-radius: var(--vf-radius-sm);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--vf-blue-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   FAQ Accordions
   -------------------------------------------------------------------------- */
.vf-faq-container {
    max-width: 960px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vf-faq-item {
    background: #ffffff;
    border: 1px solid var(--vf-border-color);
    border-radius: var(--vf-radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
}

.vf-faq-item.active {
    border-color: var(--vf-blue-accent);
    box-shadow: var(--vf-shadow-sm);
}

.vf-faq-btn {
    width: 100%;
    text-align: left;
    padding: 22px 26px;
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vf-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.vf-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--vf-bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.vf-faq-item.active .vf-faq-icon {
    transform: rotate(180deg);
    background: var(--vf-blue-light);
    color: var(--vf-blue-accent);
}

.vf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
    padding: 0 26px;
    color: var(--vf-text-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.vf-faq-item.active .vf-faq-answer {
    max-height: 1000px;
    padding-bottom: 22px;
    transition: max-height 0.5s ease-in-out;
}

/* --------------------------------------------------------------------------
   CTA & Rescue 24/7 Section
   -------------------------------------------------------------------------- */
.vf-rescue-cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #002d5a 100%);
    border-radius: var(--vf-radius-lg);
    padding: 50px 40px;
    color: #ffffff;
    margin: 60px auto 0;
    max-width: 1240px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.vf-rescue-cta-banner::before {
    content: '';
    position: absolute;
    right: -10%; top: -30%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(20, 100, 244, 0.3) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.vf-rescue-text h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 10px;
}

.vf-rescue-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 650px;
}

.vf-rescue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.vf-btn-phone {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    transition: all 0.3s ease;
    animation: pulseGlow 2s infinite;
}

.vf-btn-phone:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.5);
}

.vf-btn-booking {
    background: #ffffff;
    color: var(--vf-blue-primary) !important;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.vf-btn-booking:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .vf-rescue-cta-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 25px;
    }
    .vf-rescue-text p {
        margin: 0 auto;
    }
    .vf-rescue-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .vf-warranty-hero {
        padding: 40px 0 50px;
    }
    .vf-hero-highlights {
        grid-template-columns: 1fr;
    }
    .vf-tab-btn {
        padding: 16px 18px;
        font-size: 0.9rem;
    }
    .vf-model-selector-sec {
        padding: 25px 18px;
    }
    .vf-custom-table th, .vf-custom-table td {
        padding: 14px 16px;
        font-size: 0.88rem;
    }
    .vf-cards-grid {
        grid-template-columns: 1fr;
    }
}
