* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    font-weight: 400;
    font-family: sans-serif;
}

:root {
    --purple-200: #ffcad4;
    --purple-500: #ceb9c7;
    --purple-800: #f0b7d6;
    --black-800: #332b2b;
    --gray-200: #fbf6f7;
    --gray-400: #917e97;
    --white: #F9F9F9;
    --error-red: #ff0000;
    --success-green: #00aa00;
    --border-default: #ddd;
}

html {
    width: 100%;
    height: 100vh;
}

body {
    background: var(--gray-200);
    color: var(--black-800);
}

h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    padding: 1rem;
    color: var(--black-800);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
}

h3 {
    padding: 1rem;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

p {
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: justify;
    padding: 0.5rem 0;
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex_start {
    display: flex;
    justify-content: flex-start;
}

/* Estilização da Seção Header */
#header_content {
    height: 80px;
    position: sticky; 
    top: 0; 
    width: 100%; 
    justify-content: space-between;
    padding: 24px;
    background-color: var(--purple-800);
    border-bottom: 1px solid var(--purple-500);
}
 
#menu li {
    display: inline;
    padding: 1rem;
}
 
#menu li a {
    text-decoration: none;
    color: var(--white);
    font-size: 20px;
}
 
#menu li a:hover {
    color: var(--purple-200);
    text-decoration: underline;
}

/* Estilização da Seção About */
#about {
    flex-direction: column;
    margin: 2rem auto;
    width: 90%;
}

#conteudo {
    flex-direction: row;
    gap: 2rem;
}

.redondo {
    align-items: center;
    display: inline;
}

.sobre-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

#sobre_texto {
    flex: 1;
}

.img_profile {
    width: 200px;
    height: 200px;
    border-radius: 200px;
}

/* Estilização da Seção Video */
#video {
    flex-direction: column;
    margin: 2rem auto;
    width: 90%;
}

#video-favorito {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-descricao p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--black-800);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-info h3 {
    color: var(--purple-800);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--purple-200);
    margin-top: 0.5rem;
}

/* Estilização da Seção Footer */
footer {
    flex-direction: column;
    margin: 0;
    padding: 2rem;
    color: var(--white);
    background-color: var(--purple-500);
    font-weight: bold;
    text-align: center;
}

#redes_sociais {
    display: flex;
    justify-content: space-evenly; 
    margin: 1rem 0 0 0;
    width: 320px;
}

.social_icon {
    width: 4rem;
    height: 4rem;
    filter: brightness(0) 
            saturate(100%) 
            invert(100%) 
            sepia(0%) 
            saturate(7457%) 
            hue-rotate(23deg) 
            brightness(95%) 
            contrast(87%);
}

.social_icon:hover {  
    filter: brightness(0) 
            saturate(100%) 
            invert(65%) 
            sepia(59%) 
            saturate(2437%) 
            hue-rotate(213deg) 
            brightness(86%) 
            contrast(88%);
}

/* ============= ESTILOS DO FORMULÁRIO CORRIGIDOS ============= */
#formulario {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 480px;
    margin: 2rem;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--purple-800);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-default);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple-500);
    outline: none;
    box-shadow: 0 0 0 2px rgba(206, 185, 199, 0.3);
}

.error-message {
    color: var(--error-red);
    font-size: 0.8rem;
    margin: 6px 0 0 4px;
    display: block;
    font-weight: bold;
    min-height: 20px;
    opacity: 0.9;
}

/* Classes de validação */
.invalid {
    border-color: var(--error-red) !important;
}

.valid {
    border-color: var(--success-green) !important;
}

/* Remove validações padrão do navegador */
input:invalid, 
textarea:invalid {
    box-shadow: none;
}

/* Estilo do botão de enviar */
.btn-enviar {
    background-color: var(--purple-800);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    display: block !important; /* Força a exibição */
}

.btn-enviar:hover {
    background-color: var(--purple-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilização do Mapa */
#mapa {
    width: 480px;
    flex-direction: column;
    gap: 3rem;
}

#endereco > p {
    font-size: 1rem;
    text-align: justify;
    font-weight: 600;
}

.mapa-container {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

/* Remove estilos conflitantes */
#formulario h2:last-of-type,
#formulario .btn-enviar[style*="display: none"] {
    display: none !important;
}