/* Estilos gerais */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    /* Fundo com degradê do verde claro ao verde escuro */
    background: linear-gradient(to bottom, #a8e063, #56ab2f);
}

/* Centralizar o contêiner do formulário */
.container {
    max-width: 800px;
    margin: 50px auto;
}

/* Estilos do formulário */
form {
    background-color: #fff;
    padding: 30px;
    border: 2px solid #2e7d32; /* Borda verde */
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Alinhamento centralizado */
form, h1, h2 {
    text-align: center;
}

/* Subdivisões para cada item */
section.form-section {
    border: 1px solid #2e7d32;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
}

section.form-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2e7d32;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 10px;
}

/* Margens dos campos */
.mb-3, .mb-4 {
    margin-bottom: 20px !important;
}

/* Labels e inputs */
label.form-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    text-align: left;
}

input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-top: 5px;
}

textarea {
    resize: vertical;
}

/* Botões */
.btn-success {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

.btn-success:hover {
    background-color: #27632a;
    border-color: #27632a;
}

/* Radio buttons estilizados como botões */
.btn-check + .btn {
    width: 100px;
    margin-right: 10px;
}

.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1 1 100px;
    margin: 5px;
}

/* Ajustes para telas menores */
@media (max-width: 576px) {
    .btn-check + .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Estilo do botão de envio */
button[type="submit"] {
    font-size: 18px;
    padding: 15px;
    border-radius: 10px;
}

/* Placeholder */
::placeholder {
    color: #888;
}

/* Estilo dos ícones nos botões */
.btn-outline-success i,
.btn-outline-danger i {
    margin-right: 5px;
}
