.tso-theme {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh;
}

header[class*="order-1"] {
    order: 1 !important;
}

.container.order-2 {
    order: 2 !important;
}

.promotional-section {
    order: 3 !important;
}

.faq-section {
    order: 4 !important;
}

footer[class*="order-5"] {
    order: 5 !important;
    margin-top: auto;
}

.tso-theme > * {
    width: 100%;
    flex-shrink: 0;
}

.faq-accordion {
    max-width: 1100px;
    margin: 2.5rem auto;
}

.faq-item {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(134, 111, 227, 0.1);
    border-color: #866fe3;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: #374151;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    outline: none;
}

.faq-question:hover {
    background-color: rgba(134, 111, 227, 0.04);
    color: #866fe3;
}

.faq-question:focus {
    background-color: rgba(134, 111, 227, 0.04);
    outline: 2px solid #866fe3;
    outline-offset: -2px;
}

.faq-question span {
    flex: 1;
    margin-right: 1rem;
    line-height: 1.5;
}

.faq-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
    color: #9ca3af;
    flex-shrink: 0;
}

.faq-question:hover .faq-arrow {
    color: #866fe3;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #866fe3;
}

.faq-item.active .faq-question {
    background-color: rgba(134, 111, 227, 0.06);
    color: #866fe3;
    border-bottom: 1px solid #f3f4f6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    background-color: #ffffff;
    opacity: 0;
}

.faq-answer.show {
    max-height: 500px;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: #6b7280;
    font-size: 0.95rem;
}

.faq-answer a {
    color: #866fe3;
    text-decoration: underline;
    font-weight: 500;
}

.faq-answer a:hover {
    color: #a78bfa;
    text-decoration: none;
}

.faq-section {
    background-color: #f9fafb;
    padding: 4rem 2rem;
}

.faq-section h2 {
    color: #272727;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.faq-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.faq-section .text-center a {
    position: relative;
    overflow: hidden;
    color: #866fe3;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #866fe3;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-section .text-center a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #866fe3, #a78bfa);
    transition: width 0.3s ease;
    z-index: -1;
}

.faq-section .text-center a:hover::after {
    width: 100%;
}

.faq-section .text-center a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(134, 111, 227, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
    to {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.faq-answer.animating-in {
    animation: slideDown 0.3s ease-out forwards;
}

.faq-answer.animating-out {
    animation: slideUp 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 1rem;
    }
    
    .faq-section h2 {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-question span {
        margin-right: 0.75rem;
        line-height: 1.4;
    }
    
    .faq-answer.show {
        padding: 0.75rem 1.25rem 1.25rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-cta h3 {
        font-size: 1.25rem;
    }
    
    .faq-section .text-center a {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .faq-section h2 {
        font-size: 1.75rem !important;
    }
    
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-question span {
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
    }
    
    .faq-answer.show {
        padding: 0.625rem 1rem 1rem;
    }
}

.faq-item.loading .faq-question {
    opacity: 0.7;
    pointer-events: none;
}

.faq-question:focus-visible {
    outline: 2px solid #866fe3;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-arrow,
    .faq-answer,
    .faq-question {
        transition: none;
    }
    
    .faq-answer.animating-in,
    .faq-answer.animating-out {
        animation: none;
    }
}