﻿/* =========================================================
   TICKETGO FAQ
========================================================= */

:root {
    --faq-primary: #6d28d9;
    --faq-primary-dark: #5b21b6;
    --faq-primary-light: #ede9fe;
    --faq-secondary: #ec4899;
    --faq-text: #171717;
    --faq-text-light: #6b7280;
    --faq-background: #f8f7fc;
    --faq-card: #ffffff;
    --faq-border: #e5e7eb;
}


/* =========================================================
   HERO
========================================================= */

.faq-hero {
    width: 100%;
    background: radial-gradient( circle at top right, rgba(236, 72, 153, .15), transparent 35% ), radial-gradient( circle at top left, rgba(109, 40, 217, .15), transparent 35% );
    padding: 60px 24px 50px;
}


.faq-hero-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}


.faq-hero-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    background: linear-gradient( 135deg, var(--faq-primary), var(--faq-secondary) );
    box-shadow: 0 15px 35px rgba(109, 40, 217, .25);
}


.faq-hero h1 {
    margin: 0 0 14px;
    color: var(--faq-text);
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
}


.faq-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--faq-text-light);
    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   PESQUISA
========================================================= */

.faq-search-wrapper {
    max-width: 720px;
    margin: 30px auto 0;
    position: relative;
}


    .faq-search-wrapper > i {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        pointer-events: none;
    }


#faqSearch {
    width: 100%;
    height: 58px;
    padding: 0 20px 0 52px;
    border: 1px solid var(--faq-border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--faq-text);
    font-size: 15px;
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    transition: border-color .2s, box-shadow .2s;
}


    #faqSearch:focus {
        border-color: #a78bfa;
        box-shadow: 0 0 0 4px rgba(109, 40, 217, .08);
    }


    #faqSearch::placeholder {
        color: #9ca3af;
    }


/* =========================================================
   CONTEÚDO
========================================================= */

.faq-content {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 45px 24px 80px;
}


/* =========================================================
   CATEGORIAS
========================================================= */

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 38px;
}


.faq-category-button {
    border: 1px solid var(--faq-border);
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--faq-text-light);
    font-size: 13px;
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}


    .faq-category-button:hover {
        border-color: #c4b5fd;
        color: var(--faq-primary);
        transform: translateY(-1px);
    }


    .faq-category-button.active {
        background: var(--faq-primary);
        border-color: var(--faq-primary);
        color: #ffffff;
    }


/* =========================================================
   SEÇÃO
========================================================= */

.faq-section {
    margin-bottom: 42px;
}


.faq-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}


.faq-section-title-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--faq-primary-light);
    color: var(--faq-primary);
    flex-shrink: 0;
}


.faq-section-title h2 {
    margin: 0;
    color: var(--faq-text);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.4px;
}


/* =========================================================
   LISTA
========================================================= */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================================================
   ITEM
========================================================= */

.faq-item {
    background: #ffffff;
    border: 1px solid var(--faq-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .02);
    transition: border-color .2s, box-shadow .2s;
}


    .faq-item:hover {
        border-color: #d8b4fe;
        box-shadow: 0 6px 18px rgba(109, 40, 217, .05);
    }


    .faq-item.open {
        border-color: rgba(109, 40, 217, .25);
    }


/* =========================================================
   PERGUNTA
========================================================= */

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    cursor: pointer;
    color: var(--faq-text);
    font-size: 15px;
    font-weight: 600;
}


    .faq-question span {
        flex: 1;
    }


    .faq-question i {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f3f4f6;
        color: #6b7280;
        flex-shrink: 0;
        font-size: 11px;
        transition: transform .25s, background .25s, color .25s;
    }


.faq-item.open
.faq-question i {
    transform: rotate(180deg);
    background: var(--faq-primary-light);
    color: var(--faq-primary);
}


/* =========================================================
   RESPOSTA
========================================================= */

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}


.faq-answer-inner {
    overflow: hidden;
}


.faq-answer-content {
    padding: 0 20px 20px;
    color: var(--faq-text-light);
    font-size: 14px;
    line-height: 1.7;
}


.faq-item.open
.faq-answer {
    grid-template-rows: 1fr;
}


.faq-answer-content strong {
    color: var(--faq-text);
}


.faq-answer-content a {
    color: var(--faq-primary);
    font-weight: 600;
    text-decoration: none;
}


    .faq-answer-content a:hover {
        text-decoration: underline;
    }


/* =========================================================
   SEM RESULTADOS
========================================================= */

.faq-no-results {
    display: none;
    text-align: center;
    padding: 50px 20px;
    color: var(--faq-text-light);
}


    .faq-no-results > i {
        font-size: 40px;
        margin-bottom: 15px;
        color: #c4b5fd;
    }


    .faq-no-results h3 {
        margin: 0 0 5px;
        color: var(--faq-text);
        font-size: 19px;
    }


    .faq-no-results p {
        margin: 0;
        font-size: 14px;
    }


/* =========================================================
   CONTATO
========================================================= */

.faq-contact-card {
    margin-top: 55px;
    padding: 35px;
    border-radius: 20px;
    background: linear-gradient( 135deg, #faf5ff, #fdf2f8 );
    border: 1px solid #eadcff;
    text-align: center;
}


.faq-contact-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--faq-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
}


.faq-contact-card h2 {
    margin: 0 0 8px;
    color: var(--faq-text);
    font-size: 21px;
}


.faq-contact-card p {
    max-width: 550px;
    margin: 0 auto 20px;
    color: var(--faq-text-light);
    font-size: 14px;
    line-height: 1.65;
}


.faq-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--faq-primary);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s, transform .2s;
}


    .faq-contact-button:hover {
        background: var(--faq-primary-dark);
        transform: translateY(-1px);
    }


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .faq-hero {
        padding: 40px 18px 35px;
    }


    .faq-hero-icon {
        width: 58px;
        height: 58px;
        border-radius: 17px;
        font-size: 24px;
    }


    .faq-hero h1 {
        font-size: 32px;
    }


    .faq-hero p {
        font-size: 14px;
    }


    .faq-search-wrapper {
        margin-top: 25px;
    }


    #faqSearch {
        height: 54px;
        border-radius: 14px;
    }


    .faq-content {
        padding: 30px 16px 60px;
    }


    /*
     * Categoria vira scroll horizontal.
     */

    .faq-categories {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 7px;
        margin-bottom: 30px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }


        .faq-categories::-webkit-scrollbar {
            display: none;
        }


    .faq-category-button {
        white-space: nowrap;
        flex-shrink: 0;
    }


    .faq-section {
        margin-bottom: 35px;
    }


    .faq-question {
        padding: 17px;
        font-size: 14px;
        gap: 12px;
    }


    .faq-answer-content {
        padding: 0 17px 17px;
        font-size: 13px;
    }


    .faq-contact-card {
        margin-top: 40px;
        padding: 28px 20px;
    }
}


/* =========================================================
   TELAS MENORES
========================================================= */

@media (max-width: 480px) {

    .faq-hero h1 {
        font-size: 28px;
    }


    .faq-section-title h2 {
        font-size: 18px;
    }


    .faq-question {
        align-items: flex-start;
    }


        .faq-question i {
            margin-top: 1px;
        }
}


/* =========================================================
   IMPRESSÃO
========================================================= */

@media print {

    .faq-search-wrapper,
    .faq-categories,
    .faq-contact-card {
        display: none !important;
    }


    .faq-hero {
        padding: 20px;
        background: #ffffff;
    }


    .faq-content {
        padding: 20px;
    }


    .faq-answer {
        grid-template-rows: 1fr !important;
    }


    .faq-item {
        break-inside: avoid;
        box-shadow: none;
    }


    .faq-section {
        break-inside: avoid;
    }
}
