/* Melhores Investimentos Hoje - CSS Específico */

.melhores-investimentos-hoje {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header da Página */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0 0;
    background: white;
    color: #333;
    border-radius: 12px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: none;
    color: #2E6C86;
}

.page-description p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.page-description strong {
    font-weight: 600;
}

/* Filtros */
.filters-section {
    margin-bottom: 40px;
    text-align: center;
}

.time-filter h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2E6C86;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    text-decoration: none;
    color: #495057;
}

.filter-btn.active {
    background: #2E6C86;
    color: white;
    border-color: #1a4a5c;
}

/* Layout Principal */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 60px;
}

.content-area {
    min-width: 0;
}

/* Ativo Campeão */
.champion-investment {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.champion-investment::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.champion-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.champion-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.champion-icon i {
    font-size: 24px;
    color: #FFD700;
}

.champion-title .badge {
    background: #2E6C86;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.champion-title h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2E6C86;
    margin: 0;
}

.champion-details {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.detail-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.detail-item .value.highlight {
    font-size: 1.4rem;
    color: #a0d533;
    font-weight: 700;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #FFD700 !important;
}

.champion-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.champion-note {
    text-align: center;
    margin-top: 15px;
}

.champion-note small {
    color: #6c757d;
    font-style: italic;
}

/* Botões */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: #A8D832;
    color: white;
}

.btn-primary:hover {
    background: #96c42a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 216, 50, 0.3);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #A8D832;
    border: 2px solid #A8D832;
}

.btn-outline:hover {
    background: #A8D832;
    color: white;
    text-decoration: none;
}

.btn-full {
    width: 100%;
}

/* Grid de Investimentos */
.investments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.investment-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.investment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.position-badge {
    background: #6c757d;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.investment-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2E6C86;
    margin: 0;
    flex: 1;
}

.investment-details {
    margin-bottom: 20px;
}

.investment-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.investment-details .detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: #495057;
}

.detail-value.highlight {
    color: #a0d533;
    font-size: 1.1rem;
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-actions .btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.85rem;
    padding: 10px 16px;
}

.card-note {
    text-align: center;
    margin-top: 15px;
}

.card-note small {
    color: #6c757d;
    font-style: italic;
}

/* Sidebar */
.sidebar {
    position: relative;
}

.lead-form-container {
    position: sticky;
    top: 20px;
    /* Ajuste para alinhar com a última linha dos cards */
    align-self: start;
}

.lead-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.lead-form h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #2E6C86;
    margin-bottom: 15px;
    text-align: center;
}

.lead-form p {
    color: #6c757d;
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.newsletter-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2E6C86;
}

.form-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #495057;
}

.form-benefits i {
    color: #a0d533;
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Linkagem Interna */
.internal-links {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsividade para links */
@media (max-width: 1200px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.link-category h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2E6C86;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2E6C86;
}

.link-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-category li {
    margin-bottom: 8px;
}

.link-category a {
    color: #2E6C86;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.link-category a:hover {
    color: #1a4a5c;
    text-decoration: underline;
}

/* FAQ */
.faq-section {
    margin-bottom: 50px;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #2E6C86;
    text-align: center;
    margin-bottom: 10px;
}

.faq-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2E6C86;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: #6c757d;
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 0 25px 25px 25px;
    border-top: 1px solid #f8f9fa;
}

.faq-answer p {
    color: #495057;
    line-height: 1.6;
    margin: 15px 0 0 0;
}

/* Responsividade */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        order: -1;
    }
    
    .lead-form-container {
        position: relative !important;
        top: auto !important;
    }
    
    .investments-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .champion-investment {
        padding: 20px;
    }
    
    .champion-header {
        flex-direction: column;
        text-align: center;
    }
    
    .champion-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .champion-actions {
        flex-direction: column;
    }
    
    .champion-actions .btn {
        width: 100%;
    }
    
    .investment-card {
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .position-badge {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .card-actions .btn {
        width: 100%;
    }
    
    .lead-form {
        padding: 25px 20px;
    }
    
    .internal-links {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .champion-title h2 {
        font-size: 1.4rem;
    }
    
    .investment-name {
        font-size: 1.1rem;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

/* Estilos específicos para o formulário de assessor na página melhores-investimentos-hoje */

/* Seção do Assessor */
.advisor-section {
    margin: 60px 0;
    padding: 0 20px;
}

.advisor-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(46, 108, 134, 0.2); /* Azul Meelion sutil alinhado ao layout */
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.advisor-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.advisor-form-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.advisor-icon {
    font-size: 24px;
    color: #2E6C86; /* Azul Meelion (mesma cor dos títulos da página) */
}

.advisor-title-text {
    text-align: left;
}

.advisor-title-main {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #2E6C86; /* Azul Meelion para o título principal */
    margin-bottom: 4px;
}

.advisor-title-distributor {
    display: block;
    font-size: 14px;
    color: #1B7F97; /* Azul secundário conforme layout da página */
    font-weight: 400;
}

.advisor-body {
    padding: 32px 24px;
}

.advisor-form-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 24px;
    text-align: center;
}

/* Campos do formulário com floating labels */
.floating-input-group {
    position: relative;
    margin-bottom: 24px;
}

.floating-input {
    width: 100%;
    padding: 16px 12px 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.floating-input:focus {
    border-color: #2E6C86; /* Azul Meelion consistente com o layout */
    box-shadow: 0 0 0 3px rgba(46, 108, 134, 0.15);
}

.floating-label {
    position: absolute;
    top: 16px;
    left: 12px;
    font-size: 16px;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 4px;
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: -8px;
    font-size: 12px;
    color: #2E6C86; /* Azul Meelion consistente com o layout */
    font-weight: 500;
}

.floating-textarea {
    min-height: 100px;
    resize: vertical;
    padding-top: 20px;
}

/* Checkbox de preferência */
.advisor-preferences {
    margin: 24px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin: 0;
}

.whatsapp-icon {
    color: #25d366;
    font-size: 16px;
}

/* Botão de envio */
.advisor-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #C3F53C 0%, #B3E52C 100%); /* Verde Meelion */
    color: #2E6C86; /* Texto azul escuro para contraste */
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(195, 245, 60, 0.4);
}

.advisor-submit-btn:hover {
    background: linear-gradient(135deg, #B3E52C 0%, #A3D51C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 245, 60, 0.5);
}

.advisor-submit-btn:active {
    transform: translateY(0);
}

.advisor-submit-btn i {
    font-size: 16px;
}

/* Feedback do formulário */
.advisor-form-feedback {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.advisor-form-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.advisor-form-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Classe para remover sticky no mobile (aplicada via JavaScript) */
.lead-form-container.mobile-no-sticky {
    position: relative !important;
    top: auto !important;
}

/* Regra mais específica para garantir que funcione */
.sidebar .lead-form-container.mobile-no-sticky {
    position: relative !important;
    top: auto !important;
}

/* Regra com especificidade máxima para mobile */
@media (max-width: 992px) {
    .sidebar .lead-form-container {
        position: relative !important;
        top: auto !important;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .advisor-section {
        margin: 40px 0;
        padding: 0 16px;
    }
    
    .advisor-card {
        border-radius: 12px;
        margin: 0 -16px;
    }
    
    .advisor-header {
        padding: 20px;
    }
    
    .advisor-body {
        padding: 24px 20px;
    }
    
    .advisor-title-main {
        font-size: 18px;
    }
    
    .floating-input {
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    /* Remover sticky no mobile para o formulário de lead */
    .lead-form-container {
        position: relative !important;
        top: auto !important;
    }
    
    /* Classe adicional para garantir que não seja sticky no mobile */
    .lead-form-container.mobile-no-sticky {
        position: relative !important;
        top: auto !important;
    }
}