/* formulario-contato.css - CSS unificado para o formulário de contato */

/* Reset e variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #007bff;
    --color-primary-hover: #0056b3;
    --color-text-dark: #333333;
    --color-text-light: #555555;
    --color-background: #f8f8f8;
    --color-white: #ffffff;
    --color-border: #dddddd;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(to right, #007bff, #ff9800);
}

body.formulario-page {
    font-family: "Red Hat Display", sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    padding-top: 60px; /* CORRIGIDO: era 80px, agora 60px igual à home */
    line-height: 1.6;
}

/* Container principal */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER - IDÊNTICO AO DA HOME --- */
header {
    background-color: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 32px;
    margin-right: 1px; /* CORRIGIDO: era 8px, agora 1px igual à home */
    margin-top: 0;
}

header nav a {
    text-decoration: none;
    color: #000;
    margin: 20px; /* CORRIGIDO: era 0 15px, agora 20px igual à home */
    font-weight: bold;
    font-family: "Red Hat Display", sans-serif;
    font-size: 14px;
    position: relative; 
    padding-bottom: 5px;
}

/* Efeito de sublinhado com degradê - IDÊNTICO À HOME */
header nav a:after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #007bff, #ff9800); /* CORRIGIDO: removida variável */
    transition: width .3s ease;
}

header nav a:hover:after {
    width: 100%;
}

/* CONTAINER DO FORMULÁRIO */
.formulario-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 8px 25px var(--color-shadow);
}

.formulario-container h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--color-text-dark);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.formulario-container h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
}

.descricao-formulario {
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* ESTILOS DO FORMULÁRIO */
form {
    margin-top: 20px;
}

.campo-formulario {
    margin-bottom: 20px;
}

.campo-formulario label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.campo-formulario input[type="text"],
.campo-formulario input[type="email"],
.campo-formulario textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 1rem;
    font-family: "Red Hat Display", sans-serif;
    transition: all 0.3s ease;
    background-color: var(--color-white);
}

.campo-formulario input[type="text"]:focus,
.campo-formulario input[type="email"]:focus,
.campo-formulario textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.campo-formulario textarea {
    resize: vertical;
    min-height: 120px;
}

/* BOTÃO DE ENVIO */
.btn-enviar {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-enviar:active {
    transform: translateY(0);
}

/* TEXTO DO RODAPÉ DO FORMULÁRIO */
.texto-rodape-formulario {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.texto-rodape-formulario a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.texto-rodape-formulario a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* --- FOOTER - IDÊNTICO AO DA HOME --- */
footer {
    background-color: #343434;
    color: #9b9b9b;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* 1. Estrutura para colutar o copyright e os links */
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    color: #f8f8f8;
    font-size: 12px;
    gap: 15px;
}

@media (min-width: 769px) {
    footer .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* 2. Copyright fica na esquerda */
footer .container p:first-child {
    margin-bottom: 0;
}

/* 3. Container para centralizar os links */
footer .links-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex: 1;
    margin-right: 150px;
}

/* 4. Estilo dos links de navegação */
footer a {
    color: #f8f8f8;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

/* 5. Efeito Sublinhado ao Hover (com degradê) */
footer a:after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #007bff, #ff9800); /* CORRIGIDO: removida variável */
    transition: width .3s ease;
}

footer a:hover:after {
    width: 100%;
}

/* --- Media Queries (Responsividade) - ATUALIZADAS --- */
@media (max-width: 768px) {
    body.formulario-page {
        padding-top: 100px; /* Ajustado para mobile */
    }
    
    /* Ajustes no header para mobile - IDÊNTICOS À HOME */
    header .container {
        flex-direction: column;
        gap: 10px;
    }

    header nav a {
        margin: 10px;
        font-size: 12px;
    }
    
    .formulario-container {
        margin: 20px auto;
        padding: 25px;
    }
    
    .formulario-container h2 {
        font-size: 1.8rem;
    }
    
    /* Ajustes no footer para mobile - IDÊNTICOS À HOME */
    footer .links-container {
        margin-right: 0;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .formulario-container {
        padding: 20px;
        margin: 15px;
    }
    
    .formulario-container h2 {
        font-size: 1.6rem;
    }
    
    .descricao-formulario {
        font-size: 1rem;
    }
    
    .campo-formulario input[type="text"],
    .campo-formulario input[type="email"],
    .campo-formulario textarea {
        padding: 10px;
    }
    
    .btn-enviar {
        padding: 12px;
        font-size: 1rem;
    }
}