/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: #ffffff;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
}

section p {
    font-size: 1.2rem;
    line-height: 2.5rem;
}

header img {
    max-height: 60px;
}

header h1 {
    font-size: 2rem;
    color: #1a73e8;
    margin-top: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #e3f2fd, #ffffff);
    padding: 60px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.2rem;
    color: #1a73e8;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.material-symbols-outlined {
    vertical-align: middle;
    font-size: 22px;
    margin-right: 6px;
    color: #0d47a1;
}

.cta-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px;
    padding: 12px 25px;
    background: #1a73e8;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-buttons a:hover {
    background: #0d47a1;
}

/* Sections */
section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
}

section h3 {
    font-size: 1.8rem;
    color: #1a73e8;
    margin-bottom: 20px;
    text-align: center;
}

section p {
    text-align: center;
    margin-bottom: 20px;
}

/* Tabela de Taxas */
.taxas table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.taxas th,
.taxas td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.taxas th {
    background: #1a73e8;
    color: #fff;
}

/* Simulador */
.simulador {
    text-align: center;
}

.simulador input {
    padding: 10px;
    margin: 10px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.simulador button {
    padding: 12px 25px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.simulador button:hover {
    background: #0d47a1;
}

.resultado {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #333;
}

/* Call to Action Final */
.cta-final {
    background: #e3f2fd;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
}

.cta-final h3 {
    font-size: 1.8rem;
    color: #1a73e8;
    margin-bottom: 20px;
}

.cta-final p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background: #1a73e8;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    /* altura máxima relativa à viewport */
    overflow-y: auto;
    /* ativa scroll vertical */
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 15px;
    }
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

#contractForm {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* antes era 12px */
}

.close {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 5px;
}

#contractForm input,
#contractForm select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contractForm button {
    background: #1a73e8;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contractForm button:hover {
    background: #0d47a1;
}