title: Change the CSS of span div on focus of the input div using CSS
body: <p>I want to change the  background image of a span div on the focus of the input type. I have tried to change with appropriate parent classes but it is not working for me. Any help would be appreciated. Here is my code.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.enq-form-section input[name='treat-cat']:hover .enq-form-section .enq-form .tc-img {
    background: #ccc !important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="form-group"&gt;
    &lt;span class="tc-img"&gt;&lt;/span&gt;
    &lt;input type="text" class="form-control" placeholder="Treatment Category" name="treat-cat"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>