:root {
    --primary-orange: #ff6200;
    --primary-orange-hover: #e55a00;
    --primary-orange-light: #fff4f0;
    --secondary-blue: #1e3a8a;
    --neutral-gray: #64748b;
    --light-gray: #f8fafc;
    --border-gray: #e2e8f0;
    --text-dark: #1e293b;
    --text-light: #475569;
    --success-green: #10b981;
    --gradient-primary: linear-gradient(135deg, #ff6200 0%, #ff8c42 100%);
    --gradient-secondary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.faq-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Hero Section */
.faq-hero {
    background: var(--gradient-primary);
    padding: 4rem 0;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><path d="M0,6V0h1000v100C500,100,500,6,0,6z"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.faq-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.faq-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.8s ease-out 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.faq-title .highlight {
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.faq-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Main Content */
.faq-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.faq-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Search Box */
.faq-search-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
    animation: fadeInSection 0.8s ease-out 0.2s both;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-gray);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.1);
}

.search-input::placeholder {
    color: var(--neutral-gray);
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-gray);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInSection 0.6s ease-out both;
    animation-delay: var(--delay, 0s);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.faq-item:hover::before,
.faq-item.active::before {
    transform: scaleX(1);
}

.faq-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.faq-header:hover {
    background: var(--primary-orange-light);
}

.faq-header.active {
    background: var(--primary-orange-light);
    border-bottom: 1px solid var(--border-gray);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
    padding-right: 1rem;
    line-height: 1.4;
}

.faq-number {
    background: var(--gradient-primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 2px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-header:hover .faq-toggle {
    background: white;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.faq-header.active .faq-toggle {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    transform: rotate(180deg);
}

.faq-toggle i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: white;
}

.faq-content-wrapper.active {
    max-height: 2000px;
    padding: 0 2rem 2rem;
}

.faq-answer {
    padding-top: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

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

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.75rem;
    position: relative;
}

.faq-answer li::marker {
    color: var(--primary-orange);
}

.faq-answer strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Category Tags */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    justify-content: center;
    animation: fadeInSection 0.8s ease-out 0.3s both;
}

.category-tag {
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border: 2px solid var(--border-gray);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-tag:hover,
.category-tag.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Enhanced CTA Section */
.cta-section {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 4rem auto 0;
    max-width: 1000px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(10px, -10px) rotate(1deg);
    }

    66% {
        transform: translate(-5px, 5px) rotate(-1deg);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: var(--primary-orange);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.services-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.services-cta-button:hover::before {
    left: 100%;
}

.services-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary-orange);
    text-decoration: none;
}

.cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.primary-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.secondary-text {
    font-size: 0.9rem;
    opacity: 0.7;
}

.services-cta-button i {
    transition: transform 0.3s ease;
}

.services-cta-button:hover i {
    transform: translateX(4px);
}

/* Scroll Progress */
.faq-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .faq-content {
        padding: 0 1.5rem 3rem;
    }

    .faq-search-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 3rem 0;
        margin-bottom: 3rem;
    }

    .faq-hero-content {
        padding: 0 1rem;
    }

    .faq-title {
        font-size: 2.5rem;
    }

    .faq-subtitle {
        font-size: 1.1rem;
    }

    .faq-content {
        padding: 0 1rem 2rem;
    }

    .faq-header {
        padding: 1.25rem 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .faq-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-right: 0.75rem;
    }

    .faq-toggle {
        width: 28px;
        height: 28px;
    }

    .faq-content-wrapper.active {
        padding: 0 1.5rem 1.5rem;
    }

    .faq-categories {
        gap: 0.5rem;
    }

    .category-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .cta-section {
        padding: 2rem 1rem;
        border-radius: 16px;
        margin: 3rem 1rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .services-cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta-text {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 2rem;
    }

    .faq-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .search-input {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.faq-header:focus-visible {
    outline: 3px solid rgba(255, 98, 0, 0.5);
    outline-offset: 2px;
}

.search-input:focus-visible {
    outline: 3px solid rgba(255, 98, 0, 0.5);
    outline-offset: 2px;
}

.services-cta-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .faq-hero {
        background: #f5f5f5 !important;
        color: black !important;
    }

    .faq-title {
        color: black !important;
    }

    .cta-section {
        background: #f5f5f5 !important;
        color: black !important;
    }

    .services-cta-button {
        background: white !important;
        border: 2px solid #333 !important;
        color: black !important;
    }

    .faq-content-wrapper {
        max-height: none !important;
        padding: 1rem 2rem !important;
    }
}