.contact-form {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #c5d31c;
}

.form-row {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* border-radius: 4px; */
    background: #c5d31c;
    font-size: 16px;
}

.form-row input,
.form-row select {
    flex: 1;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 35px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    background-color: var(--e-global-color-primary, black) !important;
    color: white !important;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100% !important;
}

button:hover {
    background-color: var(--e-global-color-accent, red) !important;
}

/* Estilos para el buscador de recursos */
.buscador-inline {
    margin: 20px 0;
}

.buscador-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.buscador-field {
    flex: 1;
    min-width: 150px;
}

.buscador-field select,
.buscador-field button {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.buscador-field button {
    background-color: #0073aa;
    color: white;
    cursor: pointer;
    border: none;
}

.buscador-field button:hover {
    background-color: #005a87;
}

.buscador-field select:disabled {
    background-color: #e3ea70;
    color: #666;
}

@media (max-width: 768px) {
    .buscador-row {
        flex-direction: column;
    }
    .buscador-field {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
    }

    .contact-form {
        padding: 15px;
    }
}

/* Styles for the OpenStreetMap container */
#map-container {
    margin-top: 15px;
    margin-bottom: 15px;
}

#map {
    height: 400px; /* You can adjust this value as needed */
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Optional: Style for the legend text */
#map-container p {
    margin-bottom: 5px;
    font-style: italic;
    color: #555;
}
