/* ======================================= */
/* 1. Configurações Globais e Variáveis    */
/* ======================================= */

:root {
    --azul: #003366;
    --azul-escuro: #002244;
    --amarelo: #d99000;
    --branco: #ffffff;
}

body {
    margin: 0;
    font-family: sans-serif;
    /* Fonte padrão caso não tenha importado outra */
}

/* ======================================= */
/* 2. Imagem de Fundo                      */
/* ======================================= */

.imagem-fundo-contato {
    background: url('../img/5594016.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
    min-height: 100vh;
}

/* ======================================= */
/* 3. Seção de Contato (Formulário)        */
/* ======================================= */

.contato {
    width: 90%;
    max-width: 500px;
    margin: 100px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contato h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 20px;
    margin-top: 0;
}

.contato form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contato h3 {
    text-align: left;
    width: 100%;
    margin-bottom: 8px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

/* Inputs e Textarea */
.contato input,
.contato textarea {
    width: 95%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    font-family: "Montserrat", sans-serif;
}

.contato textarea {
    max-width: 480px;
}


.contato input:focus,
.contato textarea:focus {
    border-color: var(--azul);
}

/* Botão de Envio */
.contato button {
    width: 100%;
    padding: 15px;
    margin-top: 25px;
    background-color: var(--azul);
    color: var(--branco);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-transform: uppercase;
}

.contato button:hover {
    background-color: var(--azul-escuro);
    color: var(--amarelo);
}

/* ======================================= */
/* 4. Seção Mapa                           */
/* ======================================= */

.mapa {
    width: 90%;
    max-width: 800px;
    margin: 40px auto 20px auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
}

.mapa h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 20px;
}

.mapa-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.mapa-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ======================================= */
/* 5. Responsividade (Media Queries)       */
/* ======================================= */

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    
    .contato h2,
    .mapa h2 {
        font-size: 30px;
    }
    
    .mapa-container iframe {
        height: 300px;
    }
}

/* Celular (max-width: 480px) */
@media (max-width: 480px) {
    
    .contato {
        margin-top: 100px;
    }
    
    .contato input, .contato textarea {
        width: 90%;
    }
    
    .contato,
    .mapa {
        width: 85%;
        padding: 20px 15px;
    }
    
    .contato textarea {
        max-width: 360px;
    }
    
    .contato h2,
    .mapa h2 {
        font-size: 26px;
    }
    
    .contato h3 {
        font-size: 16px;
    }
    
    .contato button {
        font-size: 16px;
        padding: 12px;
    }
    
    .mapa-container iframe {
        height: 250px;
    }
}