body {
    margin: 0;
    font-family: 'Georgia', serif;
    background: #F2F2F2;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: #EAF8CF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid #ededed;
    border-right: 1px solid #ededed;
    box-sizing: border-box;
    /* padding: 2rem; */
}

header {
    height: 40px;
    display: flex;
    align-items: center;
    margin: 0 0 10px 0;
}

.voltar {
    text-decoration: none;
    color: #222;
    font-size: 28px;
    padding: 8px 0 0 16px;
    display: inline-block;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0.5em 0 0.2em 0;
    text-align: center;
}

.descricao {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1em;
    color: #222;
}

form {
    width: 100%;
    /* padding: 2rem; */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.foto-label {
    display: block;
    margin: 0 auto 1em auto;
    width: 90%;
}

.foto-placeholder {
    background: #F6F6F3;
    color: #222;
    border: 2px solid #222;
    border-radius: 2px;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 0.8em;
    box-sizing: border-box;
}

.foto-label input[type="file"] {
    display: none;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0.4em;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 1rem;
    margin-bottom: 2px;
    color: #222;
    font-family: 'Georgia', serif;
}

input[type="text"], input[type="date"], select {
    border: none;
    border-radius: 20px;
    background: #fff;
    padding: 7px 10px;
    font-size: 1em;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 0.5em;
    font-family: inherit;
    transition: border 0.2s, box-shadow 0.2s;
    border: 2px solid #DAF0C3;
}

input[type="text"]:focus, input[type="date"]:focus, select:focus {
    border: 2px solid #38B6FF;
    box-shadow: 0 0 2px #38B6FF;
    background: #f6fff0;
}

.btn-cadastrar {
    margin: 1.2em auto 0 auto;
    background: #365005;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 9px 38px;
    font-size: 1.1em;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
}

.btn-cadastrar:hover {
    background: #4d7012;
}

footer {
    background: #5ba63a;
    padding: 0;
    margin-top: 0;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 13px 18px 10px 13px;
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
}

.map-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-right: 2px;
}

.footer-title {
    font-size: 1.12em;
    font-weight: bold;
    color: #fff;
    letter-spacing: .5px;
}

.footer-subtitle {
    font-size: 0.95em;
    color: #eaf6d0;
}

.footer-icons {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-end;
}

.footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 0.98em;
    gap: 2px;
}

.footer-icon .icon {
    font-size: 1.3em;
    margin-bottom: 1px;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .container, .footer-content {
        max-width: 100vw;
        width: 100vw;
        padding: 0;
    }
    .footer-content {
        padding: 8px 4px;
    }
}
