/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo da página */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}


/* Container principal */
.container {
    width: 100%;
    max-width: 500px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Logo */
.logo img {
    max-width: 30%; /* Ajusta o tamanho da logo */
    margin-bottom: 10%; /* Espaçamento entre a logo e o formulário */
    display: block; /* Garante que a logo seja exibida como bloco */
    margin-left: auto;
    margin-right: auto; /* Centraliza a logo */
}

/* Cabeçalho do formulário */
h1 {
    color: #4d4a4a;
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
}

/* Copyright */
h2 {
    text-align: center;
    font-size: 11px;
    color: #888;  /* Cor de texto mais suave */
    margin-top: 30px;  /* Distância do formulário */
    font-weight: normal;
}

/* Formulário */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Campos de entrada */
input[type="text"],
input[type="email"],
input[type="file"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="file"]:focus {
    border-color: #0073e6;
    background-color: #fff;
}

/* Botão de envio */
button[type="submit"] {
    margin-top: 20px;
    padding: 12px;
    background-color: #3182d2;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #286099;
}

/* Contêiner de arquivos com transição de altura */
#fileList {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.9s ease, opacity 0.9s ease;
    opacity: 0;
}

#fileList.show {
    max-height: 500px;
    opacity: 1;
}

/* Itens de arquivo */
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
    padding: 8px;
    background-color: #e8f6e2;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.file-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Botão de remover arquivo */
.file-item button {
    background-color: #ff4d4d;
    border: none;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}

.file-item button:hover {
    background-color: #cc0000;
}

/* Contêiner de alerta */
#alertContainer {
    position: relative;
    margin-top: 20px;
    height: 50px; /* Define uma altura fixa para o contêiner do alerta */
    overflow: hidden;
    transition: height 0.5s ease; /* Transição suave */
}

/* Estilo básico do alerta */
.alert {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    font-size: 16px;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* Alertas de sucesso e erro */
.alert.success {
    background-color: #4caf50;
}

.alert.error {
    background-color: #f44336;
}

/* Alertas de aviso */
.alert.warning {
    background-color: #eadc89;
    color: rgb(92, 84, 15);
}

/* Estilo do estado de envio */
.alert.sending {
    background-color: #eadc89;
    color: rgb(92, 84, 15);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

/* Responsividade para telas menores */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    input[type="text"],
    input[type="email"],
    input[type="file"],
    button[type="submit"] {
        font-size: 14px;
    }
}
