/**
 * MoveCar Homepage Slider CSS - Automotive Black & Red Theme v1.0
 * Wypożyczalnia samochodów i transport Polska-Niemcy
 */

/* MoveCar - Brand colors with pagehero prefix */
:root {
    --movecar-black: #000000; /* Główna czerń */
    --movecar-black-soft: #111111; /* Delikatnie jaśniejsza do dużych płaszczyzn */
    --movecar-red: #E10600; /* Główna czerwień - przyciski, akcenty */
    --movecar-red-hover: #FF2D2D; /* Jaśniejsza czerwień - hover */
    --movecar-red-dark: #B00000; /* Ciemniejsza czerwień - cienie, gradienty */
    --movecar-white: #F5F5F5; /* Elegancka biel zamiast czystej */
    --movecar-separator: #CCCCCC; /* Linie, ramki, separatory */
    --movecar-overlay: rgba(0, 0, 0, 0.3); /* Nakładka na zdjęcia */
    --movecar-glass: rgba(255, 255, 255, 0.05);
    --movecar-glass-border: rgba(225, 6, 0, 0.2);
    --movecar-card-bg: rgba(17, 17, 17, 0.95);
}

/* Base slider container styles with containment for performance */
.homepage-slider-main-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    contain: layout style paint;
    background-color: var(--movecar-black);
}

.homepage-slider {
    width: 100%;
    height: auto;
}

.swiper-slide {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Main hero container with automotive styling */
.page-hero-inter {
    position: relative;
    padding: 120px 15px 160px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 85vh;
    
    /* Background handling for automotive images */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll;
    
    /* Dark overlay for better text readability */
    background-color: var(--movecar-black);
    
    /* Performance optimizations */
    will-change: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Dark overlay for hero images */
.page-hero-inter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--movecar-overlay);
    z-index: 1;
}

/* Video background styles with optimization */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.slide-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    
    /* Performance optimizations for video */
    will-change: auto;
    backface-visibility: hidden;
}

/* Grid container for content */
.page-hero-content.grid-container {
    margin-left: auto;
    margin-right: auto;
    width: 1200px;
    max-width: 1200px;
    z-index: 2;
    position: relative;
}

/* Hero content container with automotive premium styling */
.hero-content-container {
    z-index: 2;
    position: relative;
    padding: 80px 40px;
    background: linear-gradient(135deg, hsl(0deg 0% 6.67% / 55%) 0%, var(--movecar-black) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: left;
    border-radius: 12px;
    max-width: 800px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 30px 0;
    border: 1px solid rgba(225, 6, 0, 0.2);
    
    /* Performance optimizations */
    contain: layout style;
    will-change: auto;
}

/* Automotive subtitle styling */
.hero-subtitle {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 20px 0;
    color: var(--movecar-red);
    position: relative;
    padding-left: 20px;
    letter-spacing: 1.5px;
    line-height: 1.4;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-subtitle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--movecar-red) 0%, var(--movecar-red-dark) 100%);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(225, 6, 0, 0.4);
}

/* Main title styling - automotive premium */
.hero-title {
    font-weight: 800; 
    max-width: 700px;
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 30px 0;
    color: var(--movecar-white);
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Highlighted text in title - red accent */
.red-highlight {
    color: var(--movecar-red);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(225, 6, 0, 0.3);
}

.red-highlight::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--movecar-red) 0%, var(--movecar-red-hover) 100%);
    border-radius: 2px;
}

/* Description styling */
.hero-description {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.7;
    margin: 0 0 40px 0;
    color: var(--movecar-white);
    opacity: 0.95;
    max-width: 620px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Button container */
.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 2em;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Primary button styling - automotive red */
.hero-button-primary {
    display: inline-flex;
    font-weight: 700; 
    text-transform: uppercase;
    padding: 18px 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--movecar-red) 0%, var(--movecar-red-dark) 100%);
    color: var(--movecar-white);
    box-shadow: 
        0 6px 20px rgba(225, 6, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    
    /* Performance optimizations */
    transition: all 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-button-primary:hover, 
.hero-button-primary:focus {
    background: linear-gradient(135deg, var(--movecar-red-hover) 0%, var(--movecar-red) 100%);
    color: var(--movecar-white);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(225, 6, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-decoration: none;
    outline: 2px solid var(--movecar-red-hover);
    outline-offset: 3px;
}

/* Secondary button styling - elegant outline */
.hero-button-secondary {
    display: inline-flex;
    font-weight: 600;
    text-transform: uppercase;
    padding: 18px 36px;
    border-radius: 6px;
    border: 2px solid var(--movecar-white);
    background-color: transparent;
    color: var(--movecar-white);
    letter-spacing: 1px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    
    /* Performance optimizations */
    transition: all 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-button-secondary:hover, 
.hero-button-secondary:focus {
    border-color: var(--movecar-red);
    background: linear-gradient(135deg, var(--movecar-red) 0%, var(--movecar-red-dark) 100%);
    color: var(--movecar-white);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(225, 6, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-decoration: none;
    outline: 2px solid var(--movecar-red);
    outline-offset: 3px;
}

/* Navigation arrows - automotive styling */
.swiper-button-next,
.swiper-button-prev {
    color: var(--movecar-white);
    background: linear-gradient(135deg, var(--movecar-black-soft) 0%, var(--movecar-black) 100%);
    padding: 35px;
    border-radius: 50%;
    width: 35px !important;
    height: 35px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(225, 6, 0, 0.3);
    cursor: pointer;
    
    /* Performance optimizations */
    transition: all 0.3s ease;
    will-change: background-color, border-color;
    backface-visibility: hidden;
}

.swiper-button-next:hover,
.swiper-button-prev:hover,
.swiper-button-next:focus,
.swiper-button-prev:focus {
    background: linear-gradient(135deg, var(--movecar-red) 0%, var(--movecar-red-dark) 100%);
    border-color: var(--movecar-red-hover);
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.4);
    transform: scale(1.05);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 22px;
    font-weight: bold;
}

/* Pagination - red accents */
.swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    background: var(--movecar-white);
    border: 2px solid rgba(225, 6, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--movecar-red);
    border-color: var(--movecar-red-hover);
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(225, 6, 0, 0.5);
}

/* Responsive styles - automotive optimized */
@media (max-width: 1200px) {
    .page-hero-inter {
        padding: 100px 15px 140px;
    }
    
    .hero-content-container {
        max-width: 650px;
        padding: 60px 35px;
    }
    
    .hero-title {
        font-size: 46px;
    }
}

@media (max-width: 768px) {
    .swiper-button-next, 
    .swiper-button-prev {
        display: none !important;
    }
    
    .page-hero-inter {
        min-height: 75vh;
        padding: 40px 15px;
    }
    
    .hero-content-container {
        padding: 40px 30px;
        margin: 20px auto;
        max-width: 95%;
        width: 95%;
    }
    
    .hero-title {
        font-size: 36px;
        max-width: 100%;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
        padding-left: 15px;
    }
    
    .hero-subtitle::before {
        width: 4px;
    }
    
    .hero-description {
        font-size: 17px;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        gap: 1.5em;
        width: 100%;
        flex-direction: column;
    }
    
    .hero-button-primary, 
    .hero-button-secondary {
        text-align: center;
        justify-content: center;
        padding: 16px 24px;
        font-size: 14px;
        letter-spacing: 0.8px;
    }
}

@media (max-width: 480px) {
    .page-hero-inter {
        min-height: 70vh;
        padding: 30px 10px;
    }
    
    .hero-content-container {
        padding: 30px 25px;
        margin: 15px auto;
        max-width: 90%;
        width: 90%;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 18px;
    }
    
    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .hero-button-primary, 
    .hero-button-secondary {
        padding: 14px 20px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 320px) {
    .hero-content-container {
        padding: 25px 20px;
        max-width: 95%;
        width: 95%;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-button-primary, 
    .hero-button-secondary {
        padding: 12px 18px;
        font-size: 12px;
    }
}

/* Performance optimizations for Core Web Vitals */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .homepage-slider-main-container {
        page-break-inside: avoid;
    }
    
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
    
    .video-background {
        display: none !important;
    }
}

/* Additional automotive-specific enhancements */

/* Speed lines effect for dynamic feel */
.hero-content-container::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--movecar-red) 50%, transparent 100%);
    opacity: 0.6;
}

/* Subtle animation for red highlights */
@keyframes redGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(225, 6, 0, 0.3); }
    50% { text-shadow: 0 0 20px rgba(225, 6, 0, 0.5); }
}

.red-highlight {
    animation: redGlow 3s ease-in-out infinite;
}

/* Automotive badge styling for premium feel */
.automotive-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--movecar-red) 0%, var(--movecar-red-dark) 100%);
    color: var(--movecar-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(225, 6, 0, 0.3);
}

/**
 * MoveCar FAQ Section CSS - Dark Theme v1.0
 * FAQ z zakładkami i akordeonem w stylu MoveCar
 */



/* ===================================
   MAIN FAQ WRAPPER
   =================================== */

.faqwrapper {
    position: relative;
    padding: 80px 0;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--movecar-card-bg) 0%, rgba(225, 6, 0, 0.1) 100%);
    overflow: hidden;
}

/* Background pattern dla automotive feel */
.faqwrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(225, 6, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(225, 6, 0, 0.04) 0%, transparent 50%);
    background-size: 800px 800px, 600px 600px;
    animation: faqPatternMove 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes faqPatternMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -15px) rotate(1deg); }
    66% { transform: translate(-15px, 20px) rotate(-1deg); }
}

/* ===================================
   FAQ TABS CONTAINER
   =================================== */

.faq-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===================================
   TABS NAVIGATION
   =================================== */

.faq-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    padding: 0;
}

.faq-tab-button {
    background: var(--movecar-glass);
    border: 1px solid var(--movecar-glass-border);
    color: var(--movecar-white);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-tab-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.3), transparent);
    transition: left 0.5s ease;
}

.faq-tab-button:hover::before {
    left: 100%;
}

.faq-tab-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--movecar-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 6, 0, 0.3);
}

.faq-tab-button.active {
    background: linear-gradient(135deg, var(--movecar-red) 0%, var(--movecar-red-dark) 100%);
    border-color: var(--movecar-red);
    color: var(--movecar-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.4);
}

.faq-tab-button:focus {
    outline: 2px solid var(--movecar-red-hover);
    outline-offset: 3px;
}

/* ===================================
   TABS CONTENT
   =================================== */

.faq-tabs-content {
    position: relative;
}

.faq-tab-content {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.faq-tab-content.active {
    display: block;
}

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

/* ===================================
   SECTION DESCRIPTION
   =================================== */

.faq-section-description {
    text-align: center;
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: var(--movecar-glass);
    border: 1px solid var(--movecar-glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    color: var(--movecar-white) !important;
    -webkit-backdrop-filter: blur(10px);
}

.faq-section-description p {
    font-size: 18px;
    color: var(--movecar-white) !important;
    max-width: 900px;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   FAQ SECTION TITLE (for single section)
   =================================== */

.faq-section-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    margin: 0 auto;
    color: var(--movecar-white);
    text-align: center;
    margin: 0 0 40px 0;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.faq-section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--movecar-red) 0%, var(--movecar-red-hover) 100%);
    border-radius: 2px;
}

/* ===================================
   FAQ ITEMS
   =================================== */

.faq-section-items {
    display: grid;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.faqcontainer {
    background: var(--movecar-card-bg);
    border-radius: 16px;
    border: 1px solid var(--movecar-glass-border);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faqcontainer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--movecar-red) 0%, var(--movecar-red-hover) 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.faqcontainer:hover {
    border-color: var(--movecar-red);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(225, 6, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.faqcontainer:hover::before {
    transform: translateX(0);
}

/* ===================================
   QUESTION (Clickable Element)
   =================================== */

.question {
    padding: 15px;
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    color: var(--movecar-white);
    line-height: 1.4;
    transition: all 0.3s ease;
}

.question::after {
    content: "+";
    font-size: 24px;
    font-weight: 700;
    color: var(--movecar-red);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(225, 6, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.question:hover {
    color: var(--movecar-red-hover);
}

.question:hover::after {
    background: rgba(225, 6, 0, 0.2);
    transform: scale(1.1);
}

.question.active::after {
    content: "−";
    background: linear-gradient(135deg, var(--movecar-red) 0%, var(--movecar-red-dark) 100%);
    color: var(--movecar-white);
    transform: rotate(180deg);
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}

/* ===================================
   ANSWER CONTAINER
   =================================== */

.answercont {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.answer {
    padding: 0 30px 30px 30px;
    color: var(--movecar-white);
    opacity: 0.9;
    font-size: 16px;
    line-height: 1.7;
}

.answer p {
    margin: 0 0 15px 0;
}

.answer p:last-child {
    margin-bottom: 0;
}

.answer ul,
.answer ol {
    margin: 15px 0;
    padding-left: 20px;
}

.answer li {
    margin: 8px 0;
    position: relative;
}

.answer ul li::marker {
    color: var(--movecar-red);
}

.answer a {
    color: var(--movecar-red-hover);
    text-decoration: none;
    transition: color 0.3s ease;
}

.answer a:hover {
    color: var(--movecar-white);
    text-decoration: underline;
}

/* FAQ Images */
.answer img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.answer img:hover {
    transform: scale(1.02);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .faqwrapper {
        padding: 60px 0;
    }
    
    .faq-tabs-container {
        padding: 0 15px;
    }
    
    .faq-tabs-nav {
        gap: 10px;
    }
    
    .faq-tab-button {
        padding: 12px 25px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .faqwrapper {
        padding: 50px 0;
    }
    
    .faq-tabs-container {
        padding: 0 10px;
    }
    
    .faq-tabs-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .faq-tab-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .faq-section-description {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .faq-section-description p {
        font-size: 16px;
    }
    
  .question {
        font-size: 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }
    
    .question::after {
        margin-left: 15px;
        flex-shrink: 0;
    }
    
    .answer {
        padding: 0 20px 25px 20px;
        font-size: 15px;
    }
    
    .faq-section-items {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .faqwrapper {
        padding: 40px 0;
    }
    
    .faq-tabs-container {
        padding: 0 5px;
    }
    
    .question {
        padding: 20px 15px;
        font-size: 15px;
    }
    
    .question::after {
        width: 25px;
        height: 25px;
        font-size: 20px;
    }
    
    .answer {
        padding: 0 15px 20px 15px;
        font-size: 14px;
    }
    
    .faq-section-description {
        padding: 15px;
    }
    
    .faq-section-description p {
        font-size: 14px;
    }
}

/* ===================================
   ACCESSIBILITY & PERFORMANCE
   =================================== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .faqcontainer,
    .question,
    .faq-tab-button,
    .answer img,
    .faqwrapper::before {
        transition: none !important;
        animation: none !important;
    }
    
    .faq-tab-content {
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-high-contrast: high) {
    .faqcontainer {
        border: 2px solid var(--movecar-red);
    }
    
    .question,
    .answer,
    .faq-section-description p {
        color: var(--movecar-white) !important;
    }
    
    .faq-tab-button {
        border: 2px solid var(--movecar-red);
    }
}

/* Focus management for keyboard navigation */
.question:focus,
.faq-tab-button:focus-visible {
    outline: 3px solid var(--movecar-red-hover);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .faqwrapper {
        background: white !important;
        color: black !important;
    }
    
    .faqwrapper::before {
        display: none !important;
    }
    
    .faqcontainer {
        border: 2px solid #333 !important;
        background: white !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .question {
        color: black !important;
    }
    
    .answer {
        color: black !important;
        max-height: none !important;
        display: block !important;
    }
    
    .answercont {
        max-height: none !important;
    }
    
    .question::after {
        display: none !important;
    }
    
    .faq-tabs-nav {
        display: none !important;
    }
    
    .faq-tab-content {
        display: block !important;
    }
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */

/* Staggered animation for FAQ items */
.faqcontainer:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.faqcontainer:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.faqcontainer:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.faqcontainer:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.faqcontainer:nth-child(5) {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.faqcontainer:nth-child(n+6) {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* ===================================
   ADDITIONAL ENHANCEMENTS
   =================================== */

/* Loading state for dynamic content */
.faq-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.faq-loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid rgba(225, 6, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--movecar-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search highlight (if implemented) */
.faq-highlight {
    background: linear-gradient(120deg, rgba(225, 6, 0, 0.3) 0%, rgba(255, 45, 45, 0.3) 100%);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Empty state */
.faq-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--movecar-white);
    opacity: 0.7;
}

.faq-empty h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--movecar-red);
}

.faq-empty p {
    font-size: 16px;
    margin: 0;
}