/* Componente: Ação final + FAQ - Pixel Perfect Meelion Design */

/* ===== 1. BLOCO "PRONTO PARA INVESTIR?" ===== */
.ready-to-invest-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.ready-to-invest-card {
    background-color: white;
    border-radius: 16px; /* rounded-xl */
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 24px; /* p-6 */
    max-width: 1200px; /* Alinhado ao grid principal */
    margin-left: auto;
    margin-right: auto;
}

/* Títulos */
.ready-to-invest-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: bold;
    color: #2E6C86; /* text-primary - azul Meelion */
    margin-bottom: 8px;
    text-align: center;
}

.ready-to-invest-subtitle {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-muted-foreground */
    margin-top: 4px; /* mt-1 */
    text-align: center;
    margin-bottom: 0;
}

/* Botão principal: Investir Agora */
.btn-invest-now {
    background-color: #C3F53C; /* bg-lime-400 ou bg-[#D0FF35] - verde-limão fluorescente Meelion */
    color: #000; /* text-black */
    font-weight: 500; /* font-medium */
    width: 100%; /* w-full */
    height: 52px; /* altura ~48–56px */
    border-radius: 8px; /* rounded-md */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-bottom: 16px;
    cursor: pointer;
}

.btn-invest-now:hover {
    background-color: #a3d635; /* hover:bg-lime-500 - escurecer leve */
    color: #000;
    text-decoration: none;
}

.btn-invest-now i {
    font-size: 1.1rem;
}

/* Botões secundários */
.secondary-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr; /* grid-cols-2 */
    gap: 8px; /* gap-2 */
    margin-top: 16px;
}

.btn-secondary-action {
    background-color: white; /* bg-white */
    color: #2E6C86; /* text-primary */
    border: 1px solid #2E6C86; /* border */
    padding: 8px 16px; /* py-2 px-4 */
    border-radius: 8px; /* rounded corners */
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary-action:hover {
    background-color: #f8f9fa;
    color: #2E6C86;
    text-decoration: none;
    border-color: #2E6C86;
}

.btn-secondary-action i {
    font-size: 0.875rem;
}

/* ===== 2. SEÇÃO: PERGUNTAS FREQUENTES ===== */
.faq-section {
    padding: 30px 0 !important;
    background-color: #f8f9fa !important;
}

.faq-section .faq-card {
    background-color: white !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
    padding: 24px !important;
    margin-top: 16px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border: none !important;
}

/* Header FAQ */
.faq-section .faq-header {
    text-align: left !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #e9ecef !important;
}

.faq-section .faq-title {
    color: #2E6C86 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}

.faq-section .faq-subtitle {
    color: #6c757d !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* Accordion FAQ */
.faq-section .faq-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.faq-section .faq-item {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    margin-bottom: 0 !important;
}

.faq-section .faq-item:hover {
    background: #e9ecef !important;
    border-color: #dee2e6 !important;
}

.faq-section .faq-item.active {
    background: white !important;
    border-color: #2E6C86 !important;
    box-shadow: 0 1px 3px rgba(46, 108, 134, 0.05) !important;
}

/* Question wrapper e button */
.faq-section .faq-question-wrapper {
    position: relative !important;
}

.faq-section .faq-question {
    width: 100% !important;
    padding: 16px 20px !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

.faq-section .faq-question:hover {
    color: #2E6C86 !important;
    background: transparent !important;
}

.faq-section .faq-question:focus {
    outline: 2px solid #2E6C86 !important;
    outline-offset: -2px !important;
    box-shadow: none !important;
}

.faq-section .faq-question-text {
    flex: 1 !important;
    margin-right: 12px !important;
    line-height: 1.4 !important;
}

.faq-section .faq-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: #2E6C86 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.faq-section .faq-icon {
    color: white !important;
    font-size: 12px !important;
    transition: transform 0.3s ease !important;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-question[aria-expanded="true"] .faq-icon-wrapper {
    background: #C3F53C;
    color: #2c3e50;
}

.faq-question[aria-expanded="true"] .faq-icon {
    color: #2c3e50;
}

/* Resposta */
.faq-section .faq-answer {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease, padding 0.4s ease !important;
    background: white !important;
}

.faq-section .faq-answer.active {
    max-height: 500px !important;
}

.faq-section .faq-answer-content {
    padding: 0 20px 16px 20px !important;
    border-top: 1px solid #e9ecef !important;
    font-size: 0.9rem !important;
    color: #6c757d !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

.faq-section .faq-answer p {
    margin-bottom: 8px !important;
    font-size: 0.9rem !important;
    color: #495057 !important;
    margin: 0 !important;
    padding-top: 16px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .ready-to-invest-card {
        margin: 0 16px;
        padding: 24px 20px;
    }
    
    .faq-section .faq-card {
        margin: 0 12px !important;
        padding: 16px !important;
        border-radius: 12px !important;
    }
    
    .ready-to-invest-title {
        font-size: 1rem;
    }
    
    .ready-to-invest-subtitle {
        font-size: 0.8rem;
    }
    
    .btn-invest-now {
        height: 48px;
        font-size: 0.95rem;
    }
    
    .secondary-buttons {
        gap: 6px;
    }
    
    .btn-secondary-action {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .faq-section .faq-header {
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
    }
    
    .faq-section .faq-title {
        font-size: 1.3rem !important;
    }
    
    .faq-section .faq-subtitle {
        font-size: 0.85rem !important;
    }
    
    .faq-section .faq-accordion {
        gap: 6px !important;
    }
    
    .faq-section .faq-question {
        font-size: 0.9rem !important;
        padding: 14px 16px !important;
    }
    
    .faq-section .faq-question-text {
        margin-right: 10px !important;
    }
    
    .faq-section .faq-icon-wrapper {
        width: 24px !important;
        height: 24px !important;
    }
    
    .faq-section .faq-icon {
        font-size: 10px !important;
    }
    
    .faq-section .faq-answer-content {
        padding: 0 16px 12px 16px !important;
    }
    
    .faq-section .faq-answer p {
        font-size: 0.85rem !important;
        padding-top: 10px !important;
    }
}

/* ===== ACESSIBILIDADE ===== */
/* Suporte a teclado */
.faq-question:focus {
    outline: 2px solid #2E6C86;
    outline-offset: 2px;
}

.btn-invest-now:focus,
.btn-secondary-action:focus {
    outline: 2px solid #2E6C86;
    outline-offset: 2px;
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .ready-to-invest-card,
    .faq-card {
        border: 1px solid #000;
    }
    
    .btn-invest-now {
        border: 2px solid #000;
    }
    
    .btn-secondary-action {
        border: 2px solid #2E6C86;
    }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .faq-icon,
    .faq-answer,
    .btn-invest-now,
    .btn-secondary-action {
        transition: none;
    }
}