Given this code below, how can I add a border color in the input element if the parent has a sibling with this ID "message"?
<div>
<input class="red"/>
</div>
<div id="message">
Error message
</div>
I can't use JS in this case, only CSS. Thank you.