/* Herda as variáveis e estilos gerais do tema principal */
@import url('index.css');

/* --- LAYOUT PRINCIPAL E CONTAINER --- */
main.container {
    width: 90%;
    max-width: 900px;
    margin: 220px auto 2rem auto;
    padding: 2.5rem;
    background-color: var(--cor-card-escuro);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--cor-borda-sutil);
}

.container h2 {
    font-family: var(--fonte-padrao);
    font-weight: 600;
    text-align: center;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--cor-texto-titulo);
}

/* --- MENSAGENS DE STATUS --- */
.msg {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: white;
}
.msg.success { background-color: #2f855a; border: 1px solid #38a169; }
.msg.error { background-color: #c53030; border: 1px solid #e53e3e; }


/* --- FORMULÁRIO DE E-MAIL --- */
.email-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.email-form .form-group {
    margin-bottom: 1.5rem;
}

.email-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--cor-texto-claro);
}

.email-form input[type="text"],
.email-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--cor-borda-sutil);
    background-color: var(--cor-fundo-escuro);
    color: var(--cor-texto-claro);
    font-size: 1rem;
}

.email-form input:focus {
    outline: none;
    border-color: var(--cor-borda-glow);
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
}

/* Estilo para o input de arquivo */
.email-form input[type="file"]::file-selector-button {
    background-color: var(--cor-borda-glow);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.email-form input[type="file"]::file-selector-button:hover {
    background-color: #0077b6;
}

/* --- [NOVO] ESTILOS PARA A LISTA DE ANEXOS --- */
.file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: var(--cor-fundo-escuro);
    border: 1px solid var(--cor-borda-sutil);
    border-radius: 5px;
    font-size: 0.9rem;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--cor-texto-claro);
}

.file-remove-btn {
    background: none;
    border: none;
    color: #c53030; /* Vermelho para indicar remoção */
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 1rem;
    padding: 0 0.5rem;
    transition: color 0.2s ease;
}

.file-remove-btn:hover {
    color: #e53e3e;
}


/* --- BOTÃO DE ENVIO --- */
.btn-enviar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--cor-borda-glow);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    main.container {
        margin: 200px 1rem 2rem 1rem; /* Ajustado para mobile */
        width: auto;
        padding: 1.5rem;
    }

    .email-form .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

