/* Estilos gerais */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
}


/* Navbar */
.navbar {
    background: white;
    padding: 10px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Container */
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
}

/* Logo */
.logo img {
    width: 100%;
}

/* Navegação */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    position: relative;
}

.nav-links ul li a {
    text-decoration: none;
    color: #2E7D32;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links ul li a:hover {
    color: #1B5E20;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    min-width: 180px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content li {
    padding: 8px 15px;
}

.dropdown-content li a {
    color: #43A047;
    font-size: 0.9rem;
}

.dropdown-content li a:hover {
    color: #388E3C;
}

/* Botão "Parceiros" */
.btn-parceiros {
    background: #43A047;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-parceiros:hover {
    background: #388E3C;
}


/* Botão Hamburguer (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background: #003366;
    height: 3px;
    width: 30px;
    margin: 5px 0;
    transition: 0.3s;
}

/* Responsividade */
@media (max-width: 900px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 10px 0;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 10px;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        text-align: center;
    }

    .parceiros {
        margin-top: 10px;
    }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    background: url('../images/familia.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    color: white;
    padding: 0 10%;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    max-width: 80%;
    position: relative;
    z-index: 10;
    opacity: 1 !important;
    animation: fadeIn 1.5s forwards;
    padding-left: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 20px 0;
    opacity: 1;
    animation: slideUp 1.5s 0.5s forwards;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #43A047;
    color: white;
    padding: 14px 30px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 20px;
    font-weight: bold;
}

.cta-button:hover {
    background: #388E3C;
    transform: scale(1.05);
}

.hero-image {
    display: none;
}

@media (max-width: 1024px) {
    .hero {
        justify-content: center;
        text-align: center;
        padding: 0 5%;
    }

    .hero-content {
        max-width: 80%;
        padding-left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}


/* Container principal */
.seguros-container {
    width: 90%;
    max-width: 1300px;
    margin: 80px auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Blocos de seguros */
.seguro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seguro:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.seguro-texto {
    flex: 1;
    max-width: 500px;
}

.seguro-texto h2 {
    font-size: 24px;
    color: #444;
    margin-bottom: 10px;
}

.seguro-texto p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.botao {
    display: inline-block;
    padding: 12px 25px;
    font-size: 18px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
    font-weight: bold;
}

.botao:hover {
    background: #444;
    color: white;
}

.seguro-imagem {
    flex: 1;
    display: flex;
    justify-content: center;
}

.seguro-imagem img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.invertido {
    flex-direction: row-reverse;
}

@media (max-width: 1024px) {
    .seguro {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .invertido {
        flex-direction: column;
    }

    .seguro-texto {
        max-width: 90%;
    }

    .seguro-imagem img {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .seguro {
        padding: 30px;
    }

    .seguro-texto h2 {
        font-size: 22px;
    }

    .seguro-texto p {
        font-size: 16px;
    }

    .botao {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 10% 5%;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image img {
        margin-top: 20px;
    }

    .seguro {
        flex-direction: column !important;
        text-align: center;
        padding: 20px;
    }

    .seguro-texto, .seguro-imagem {
        width: 100%;
    }

    .seguro-imagem {
        margin-top: 20px;
    }
}

/* ===========================
   MODAL GENÉRICO
   IMPORTANTE: inputs/textarea/select
   NÃO usar seletor global "input, textarea"
   para não sobrepor os modais do index.php
=========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

.modal-content {
    background-color: #E8F5E9;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    font-size: 24px;
    color: #1B5E20;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 14px;
    color: #388E3C;
    margin-bottom: 20px;
}

.close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 26px;
    font-weight: bold;
    color: #1B5E20;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #388E3C;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #1B5E20;
    margin-bottom: 5px;
}

/* ===========================
   REGRA GLOBAL DE INPUTS
   Apenas para inputs FORA de modais
   Usar seletor mais específico para não
   interferir com os modais estilizados
=========================== */
.form-group input,
.form-group textarea,
.form-group select,
.simulador-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #A5D6A7;
    border-radius: 8px;
    background: white;
    color: #1B5E20;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #81C784;
    font-size: 14px;
}

/* Select global (fora de modais) */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232E7D32' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.botao-envio,
.botao {
    display: inline-block;
    padding: 6px 16px;
    font-size: 16px;
    border: 2px solid #1B5E20;
    background: #2E7D32;
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
}

.botao-envio:hover,
.botao:hover {
    background: #1B5E20;
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 25px;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    .botao {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* MODAL SEGURO MULTIRISCOS */
.modal-multiriscos {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-multiriscos-content {
    background-color: #E8F5E9;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.modal-multiriscos-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 26px;
    font-weight: bold;
    color: #1B5E20;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-multiriscos-close:hover {
    color: #388E3C;
}

.modal-multiriscos-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.modal-multiriscos-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
    flex: 1;
}

.modal-multiriscos-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #1B5E20;
    transition: 0.3s ease all;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

.modal-multiriscos-group input,
.modal-multiriscos-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #A5D6A7;
    border-radius: 8px;
    background: white;
    color: #1B5E20;
    font-size: 16px;
    outline: none;
    font-family: "Poppins", sans-serif;
}

.modal-multiriscos-group input:focus ~ label,
.modal-multiriscos-group input:valid ~ label,
.modal-multiriscos-group textarea:focus ~ label,
.modal-multiriscos-group textarea:valid ~ label {
    top: 5px;
    font-size: 12px;
    color: #388E3C;
}

.checkbox-group {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-label {
    font-size: 14px;
    color: #1B5E20;
}

.modal-multiriscos-botao {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    border: 2px solid #1B5E20;
    background: #2E7D32;
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
    width: 100%;
    font-family: "Poppins", sans-serif;
}

.modal-multiriscos-botao:hover {
    background: #1B5E20;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .modal-multiriscos-content {
        width: 95%;
        padding: 25px;
    }

    .modal-multiriscos-row {
        flex-direction: column;
    }

    .modal-multiriscos-botao {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* MODAL SEGURO VIDA CRÉDITO */
.modal-vida-habitacao {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-vida-content {
    background-color: #E8F5E9;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.modal-vida-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 26px;
    font-weight: bold;
    color: #1B5E20;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-vida-close:hover {
    color: #388E3C;
}

.modal-vida-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.modal-vida-group {
    flex: 1;
    margin-bottom: 15px;
    text-align: left;
}

.modal-vida-group label {
    font-size: 14px;
    font-weight: bold;
    color: #1B5E20;
    margin-bottom: 5px;
    display: block;
}

.modal-vida-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #A5D6A7;
    border-radius: 8px;
    background: white;
    color: #1B5E20;
    font-size: 16px;
    outline: none;
    font-family: "Poppins", sans-serif;
}

.modal-vida-group input[readonly] {
    background: #F1F8E9;
    font-weight: bold;
}

.modal-vida-botao {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    border: 2px solid #1B5E20;
    background: #2E7D32;
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
    width: 100%;
    font-family: "Poppins", sans-serif;
}

.modal-vida-botao:hover {
    background: #1B5E20;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .modal-vida-content {
        width: 95%;
        padding: 25px;
    }

    .modal-vida-row {
        flex-direction: column;
    }

    .modal-vida-botao {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Simulador de Poupança */
.simulador-poupanca {
    background-color: #1B5E20;
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}

.simulador-poupanca h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.simulador-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.simulador-group {
    text-align: left;
}

.simulador-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.simulador-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #A5D6A7;
    border-radius: 5px;
    font-size: 16px;
    color: #1B5E20;
    font-family: "Poppins", sans-serif;
}

.simulador-group input[readonly] {
    background: #F1F8E9;
    font-weight: bold;
}

@media (max-width: 768px) {
    .simulador-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .simulador-grid {
        grid-template-columns: 1fr;
    }
}

/* Simulador de Crédito */
.simulador-credito {
    background-color: #1B5E20;
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}

.simulador-credito h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: #1B5E20;
    padding: 50px 10%;
    color: white;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col p {
    color: #A5D6A7;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #C8E6C9;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #E8F5E9;
}

.logo {
    width: 200px;
}

.botao-seguros {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    border: 2px solid #1B5E20;
    background: transparent;
    color: #1B5E20;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 15px;
}

.botao-seguros:hover {
    background: #fff;
    color: #1B5E20;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    text-decoration: none;
    font-size: 20px;
    color: #C8E6C9;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #E8F5E9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    color: #A5D6A7;
    border-top: 1px solid #2E7D32;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}