/* ==========================================================
   ViaUno FAQ — Fintech Accordion v4
   ========================================================== */

.finance-faq {
    width: 100%;
    background: #f6f8fc;
}

.finance-faq .container,
.finance-faq .finance-container,
.finance-faq .section-container {
    max-width: 1120px;
}

.finance-faq-header {
    text-align: center;
    margin-bottom: 42px;
}

.finance-faq-eyebrow,
.finance-faq .section-eyebrow,
.finance-faq .finance-section-eyebrow {
    color: #2563eb;
}

.finance-faq-header h2,
.finance-faq-title,
.finance-faq .finance-section-title {
    color: #0b1c3f;
}

.finance-faq-header .finance-section-description,
.finance-faq-subtitle {
    max-width: 760px;
    margin-inline: auto;
    color: #51607d;
}

.finance-faq-list,
.finance-faq-content {
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
}

.finance-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.finance-faq-item {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11, 28, 63, 0.03);
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease,
        background 220ms ease;
}

.finance-faq-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(11, 28, 63, 0.055);
}

.finance-faq-item.is-open {
    background: linear-gradient(120deg, #eef4ff 0%, #ffffff 55%, #fdeee4 100%);
    border-color: #c7d6f5;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.14);
}

.finance-faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    padding: 26px 30px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.finance-faq-trigger:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -3px;
}

.finance-faq-question {
    color: #0b1c3f;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.01em;
}

.finance-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f3f6fc;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition:
        background 220ms ease,
        color 220ms ease,
        transform 220ms ease,
        box-shadow 220ms ease;
}

.finance-faq-icon svg {
    display: none;
}

.finance-faq-icon::before {
    content: "+";
    display: block;
    line-height: 1;
}

.finance-faq-item.is-open .finance-faq-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #f26a21);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.finance-faq-item.is-open .finance-faq-icon::before {
    content: "−";
}

.finance-faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 260ms ease;
}

.finance-faq-item.is-open .finance-faq-panel {
    grid-template-rows: 1fr;
}

.finance-faq-answer {
    overflow: hidden;
    min-height: 0;
}

.finance-faq-body {
    padding: 0 82px 30px 30px;
}

.finance-faq-body p {
    max-width: 760px;
    margin: 0;
    color: #51607d;
    font-size: 15.5px;
    line-height: 1.75;
}

.finance-faq-content {
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(11, 28, 63, 0.03);
}

.finance-faq-content h3 {
    margin: 26px 0 10px;
    color: #0b1c3f;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.42;
}

.finance-faq-content h3:first-child {
    margin-top: 0;
}

.finance-faq-content p {
    margin: 0 0 14px;
    color: #51607d;
    font-size: 15.5px;
    line-height: 1.75;
}

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

.finance-faq--wide .finance-faq-list,
.finance-faq--wide .finance-faq-content {
    max-width: 1040px;
}

@media (max-width: 768px) {
    .finance-faq-header {
        margin-bottom: 32px;
    }

    .finance-faq-list,
    .finance-faq-content {
        max-width: 100%;
    }

    .finance-faq-trigger {
        padding: 22px 22px 22px 24px;
        gap: 18px;
    }

    .finance-faq-question {
        font-size: 16px;
    }

    .finance-faq-body {
        padding: 0 60px 24px 24px;
    }
}

@media (max-width: 480px) {
    .finance-faq-header {
        text-align: left;
    }

    .finance-faq-list {
        gap: 12px;
    }

    .finance-faq-trigger {
        padding: 20px;
        gap: 14px;
    }

    .finance-faq-question {
        font-size: 15.5px;
    }

    .finance-faq-icon {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        font-size: 17px;
    }

    .finance-faq-body {
        padding: 0 20px 22px;
    }

    .finance-faq-body p {
        font-size: 15px;
    }

    .finance-faq-content {
        padding: 24px 20px;
    }
}