/* Seção de Insights */
.insights-section {
    background-color: #fff;
    padding: 60px 34px 160px 34px;
}

.container-insights {
    max-width: 1414px;
    margin: 0 auto;
    padding: 0 30px;
}

.insights-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.insights-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 40px;
}

/* Limita a largura do texto para forçar a quebra após "principais" */
.insights-header p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin: 0 auto;
    margin-bottom: 100px;
    max-width: 500px;
}

.insights-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.insights-image {
    flex: 1 1 40%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribui o conteúdo no topo e na base */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.insights-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-text-overlay {
    position: absolute;
    top: 0;
    /* Alinhamento do conteúdo ao topo */
    left: 0;
    right: 0;
    bottom: 0;
    /* Garante que o div ocupe toda a altura da imagem */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    color: #fff;
    background: linear-gradient(to bottom right, rgba(209, 71, 71, 0.699) 0%, transparent 40%);
    box-sizing: border-box;
}

.image-text-overlay p:first-child {
    align-self: flex-start;
    /* Ensures first paragraph aligns at the start of container */
    margin-bottom: auto;
    /* Pushes trailing content down */
}

.image-text-overlay p:last-child {
    margin: 0;
}


.image-text-overlay a {
    text-decoration: none;
    font-weight: bold;
    color: #e74c3c;
}

.image-text-overlay a:hover {
    text-decoration: none;
    font-weight: bold;
    color: #c0392b;
}

/* Estilização do formulário */
.insights-form {
    flex: 1 1 50%;
    background-color: #fff;
    padding: 0 40px;
    min-height: 550px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Campos do Formulário */
.form-group {
    margin-bottom: 30px !important;
}

.form-group label {
    font-size: 16px;
    color: #212529;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    height: 72px;
}

.form-group input[name] {
    font-weight: 400;
    color: #495057;
}

#message::placeholder {
    color: #ACB5BD;
    /* Defina a cor que você deseja para o placeholder */
    opacity: 1;
    /* Garantir que a cor definida seja totalmente visível */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    /* Aumenta o padding vertical para aumentar a altura */
    border-radius: 8px;
    background-color: #f6f7fa;
    border: 1px solid transparent;
    /* Ajuste aqui para ser uma borda transparente como default */
    font-size: 16px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    /* Transição suave ao alterar a cor da borda */
}

.form-group textarea {
    resize: none;
    min-height: 150px;
    /* Aumenta a altura mínima do campo de texto */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #bfbfbf;
    /* Ajusta para cor de foco padrão */
}

/* Controle de Campos em Linha */
.form-group-row {
    display: flex;
    gap: 20px;
}

.form-group-row .form-group {
    flex: 1;
}

/* Rodapé do Formulário */
.form-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form-footer .submit-button {
    background-color: #ddd;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: not-allowed;
}

.form-footer .submit-button:hover {
    background-color: #b3b3b3;
}

.form-footer .submit-button.enabled {
    background-color: #e74c3c;
    cursor: pointer;
}

.form-footer .submit-button.enabled:hover {
    background-color: #c0392b;
}

.form-footer-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Espa?o entre o checkbox e o texto */
    flex-wrap: nowrap;

    font-size: 14px;
    line-height: 1.5;
    color: #666;

}

.form-footer-terms label {
    margin: 0;
    white-space: normal;
    /* Permite quebra de linha s? se o texto for muito grande */
}

.form-footer-terms label a {
    color: #e74c3c;
    text-decoration: none;
}

.form-footer-terms label a:hover {
    color: #c0392b;
}

.form-footer-terms label[for="terms"] {
    margin: 0;
}

/* Estiliza??o do checkbox com cor laranja (#F15F56) - igual ao modal de e-mail */
.form-footer-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #F15F56;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #ACB5BD;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    flex-shrink: 0;
}

.form-footer-terms input[type="checkbox"]:checked {
    background-color: #F15F56;
    border-color: #F15F56;
}

.form-footer-terms input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-group input[type="email"]:focus:invalid {
    border-color: red;
}

.form-group input[type="email"]:focus:valid {
    border-color: green;
}

/* Fundo do Modal */
.modern-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fundo escurecido */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Camada superior */
}

/* Esconder inicialmente */
.modern-modal.show {
    display: flex;
    /* Mostra quando ativo */
}

/* Container do conteúdo */
.modern-modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px 30px;
    width: 90%;
    max-width: 600px;
    /* Limite de largura */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Sombra */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Botão para fechar */
.modern-modal-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modern-modal-close:hover {
    color: #000;
}

/* Título e texto */
.modern-modal-content h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.modern-modal-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #666;
}

/* Rodapé com botões */
.modern-modal-footer {
    margin-top: 20px;
}

.modern-modal-ok {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modern-modal-ok:hover {
    background-color: #c0392b;
}

@media (max-width: 1024px) {
    .insights-content {
        display: flex;
        flex-direction: column !important;
        align-items: stretch;
        gap: 24px;
        /* Espaço entre imagem e formulário */
    }

    .insights-image,
    .insights-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .insights-image {
        margin-bottom: 0 !important;
    }

    .image-text-overlay p:first-child,
    .image-text-overlay p:last-child {
        font-size: 12px;
    }

    .image-text-overlay {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .form-group-row {
        flex-direction: column !important;
        gap: 16px !important;
        /* Espaço entre os campos */
    }

    .form-group-row>.form-group {
        width: 100% !important;
        max-width: 100% !important;
    }

    .insights-section {
        padding: 60px 0px 160px 0px;
    }
}