/* Estilos Gerais */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

/* Define o box-sizing para todos os elementos */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Cabeçalho e Rodapé */
header, footer {
    background-color: #1c1e21;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header a, footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

header a:hover, footer a:hover {
    color: #6a11cb;
}

/* Seção de Contato */
.contact-section {
    padding: 80px 0;
    color: #333;
}

.contact-section .container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    text-align: center;
    font-size: 3em;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: #333;
}

.contact-section p {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* Formulário de Contato */
.contact-form {
    background-color: #f9f9f9;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.contact-form:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.contact-form .input-group {
    position: relative;
    margin-bottom: 35px;
}

.contact-form label {
    position: absolute;
    top: 18px;
    left: 25px;
    font-size: 1em;
    color: #777;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1em;
    color: #555;
    background: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Certifique-se de que o padding não quebre o layout */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 8px rgba(106, 17, 203, 0.2);
    background-color: #fff;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -12px;
    left: 20px;
    background-color: #fff;
    padding: 0 8px;
    font-size: 0.9em;
    color: #6a11cb;
}

.contact-form textarea {
    resize: vertical;
    min-height: 200px;
    font-size: 1.1em;
}

/* Botão de Enviar */
.btn-primary {
    display: inline-block;
    background-image: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    padding: 15px 60px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(106, 17, 203, 0.4);
}

.btn-primary:hover {
    background-image: linear-gradient(to right, #2575fc, #6a11cb);
    box-shadow: 0 12px 20px rgba(106, 17, 203, 0.6);
    transform: translateY(-3px);
}

/* Mensagem de Sucesso */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .contact-section h2 {
        font-size: 2.4em;
    }

    .contact-section p {
        font-size: 1.1em;
    }

    .contact-form {
        padding: 40px;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .contact-form {
        padding: 30px;
    }
}
