* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #F8FFFA;
}

h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
}

.main-content {
    max-width: 56.25rem;
    margin: 0 auto;
}

.instructions-div {
    width: 100%;
    padding: 0.313rem 1.5rem;
    /* margin-bottom: 0.625rem; */
}

.instructions-div p {
    text-align: justify;
    font-size: 0.9rem;
}

/* Formulário */
form {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

/* Labels e inputs */
label {
    font-weight: 600;
    font-size: 0.95rem;
    /* margin-bottom: 0.3rem; */
}

.mbt, #id_files{
    margin-bottom: 1.5rem;
}

input[type="text"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    /* margin-bottom: 0.625rem; */
}

/* Campos ocultos latitude/longitude */
input[name="latitude"],
input[name="longitude"] {
    display: none;
}

.form-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-buttons .submit-button,
.form-buttons .back-a {
    padding: 12px 20px;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    background: transparent;
}

.form-buttons .submit-button {
    background-color: #3B7A57;

}

.form-buttons .back-a {
    text-align: center;
    background-color: #6c757d;
    text-decoration: none;
}

.submit-button:hover {
    background-color: #266d46;
}

.country-text-div {
    font-size: 0.75rem;
    font-style: italic;
}

.animal-suggest{
    position: relative;
}

.autocomplete-suggestions {
    border: 1px solid #ccc;
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    background: white;
    position: absolute;
    z-index: 10;
    width: 100%;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.suggestion-item {
    padding: 0.5rem;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f2f2f2;
}

#id_notes{
    padding: 0.625rem;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    height: 12.5rem;
    /* max-height: 31.25rem; */
    overflow-y: auto;
}

#id_notes:focus{
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.asterisc{
 color: #c00;   
}

/* Mensagem de localização */
#location-status {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    /* text-align: center; */
}


.messages {
    margin: 1rem auto;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.alert.error {
    background-color: #ffe0e0;
    color: #c00;
    border: 1px solid #c00;
}

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #ccc;
    border-top-color: #3B7A57;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-top: 0.8rem;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Botão desativado visualmente */
button:disabled,
.submit-button:disabled {
    background-color: #c2c2c2 !important;
    cursor: not-allowed;
    color: #6c757d;
    border: none;
    opacity: 0.7;
}

button:disabled,
.submit-button:disabled {
    background-color: #c2c2c2 !important;
    cursor: not-allowed;
    color: #6c757d;
    border: none;
    opacity: 0.7;
}

/* Responsivo extra */
@media (max-width: 480px) {
    form {
        padding: 1rem;
    }

    button {
        font-size: 0.95rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 2rem;
    }

    .breadcrumb {
        margin-top: 110px;
    }
}