body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 20px;
    font-weight: bold;
    color: #444;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 16px;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    min-height: 80px;
}

/* Grupos dinâmicos */
.grupo-dinamico {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.campo-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.campo-wrapper input {
    flex: 1;
}

.btn-remover {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.btn-remover:hover {
    color: #c0392b;
}

.mensagem-e-botao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.mensagem-e-botao>div {
    flex: 1;
    text-align: right;
}

.mensagem-erro {
    font-weight: bold;
    font-size: 15px;
    color: #e74c3c;
    margin-top: 5px;
}

.erro-campo {
    border: 2px solid #e74c3c !important;
}

.mensagem-sucesso {
    font-weight: bold;
    font-size: 15px;
    color: #007BFF;
    margin-top: 5px;
}

.mensagem-sucesso a {
    color: #0056b3;
    text-decoration: underline;
}

.footer {
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    color: #666;
    margin-top: 40px;
    border-top: 1px solid #ddd;
}

.footer a {
    color: #007BFF;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.experiencia-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 16px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 16px;
    position: relative;
    background-color: #f9f9f9;
}

.experiencia-wrapper input,
.experiencia-wrapper textarea {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.experiencia-wrapper textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 200px;
}

.experiencia-wrapper .btn-remover {
    position: absolute;
    top: -8px;
    right: 7px;
    background: transparent;
    color: #e74c3c;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* Botões principais */
button {
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button[type="submit"] {
    background-color: #4CAF50;
    color: white;
}

button#gerar-pdf {
    background-color: #2196F3;
    color: white;
}

button:hover {
    filter: brightness(1.1);
}

.botoes {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .botoes {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .campo-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-remover {
        width: 100%;
    }
}