#consejo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: transparent;
}

#consejos {

}

form {
    background: #bacf18;
    border: 1px solid #bacf18;
}
:root {
    --bg-color: var(--bg-color);
}

button {
    background: #bacf18;
    color: #000;
    border: 1px solid #bacf18;
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font);
}

button  :hover {
    background: #000;
    color: #fff;
}

body#consejos-body .consejos-box button[type="submit"] {
    background: #312515;
    color: #ea5c1c;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-family: "ABC", sans-serif;
}

body#consejos-body .consejos-box button[type="submit"]:hover,
body#consejos-body .consejos-box button[type="submit"]:focus-visible {
    background-color: #ea5c1c;
    color: #312515;
}

#consejos ul {
    list-style-type: none;
    padding: 0;
}

#consejos-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0;
}

#consejos-list li {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1rem;
}

h4 {
    font-family: var(--font-title);
    font-weight: 100;
    text-transform: uppercase;
    font-size: 5rem;
    align-items: center;
}

label {
    font-family: var(--font);
    font-size: 1.5rem;
    color: var(--bg-color);
}

/* Style the category select inside the consejos form only (compact) */
body#consejos-body .category-select {
    background-color: #312515;
    color: #ea5c1c;
    border: none;
    outline: none;
    padding: 0.25rem 0.35rem 0.25rem 0.45rem; /* tighter horizontal padding */
    font-family: "ABC", sans-serif;
    font-size: 1rem;
    line-height: 1;
    border-radius: 0;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: auto;
    min-width: 0;
    max-width: -moz-fit-content;
    max-width: fit-content;
    display: inline-block;
    white-space: nowrap;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 10 6'><path d='M0 0 L5 6 L10 0 Z' fill='%23ea5c1c'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.2rem center; /* arrow very close to text */
    background-size: 7px 4px;
    box-sizing: border-box;
    padding-right: 0.45rem; /* minimal space for arrow hit area */
}

body#consejos-body .category-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(49,37,21,0.12);
}

/* Try to style the option items to match where supported */
body#consejos-body .category-select option {
    background-color: #312515;
    color: #ea5c1c;
}

#feedback.success {
    color: var(--accent-color);
}

#feedback.error {
    color: #ea5c1c;
}
