Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

I can’t seem to pass #15. I selected the radio buttons and styled the label using the adjacent sibling combinator but the label color doesn’t change.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Job Application Form</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
    <form>
        <label id="name-label">Name (Required):
        <input type="text" id="name" required></label>
        <label id="email-label" required>Email (Required):
        <input type="email" id="email"></label>
        <label id="position-label" >Position
        <select name="position" id="position"></label>
        <option selected value="select-a-position">Select a position</option>
        <option value="artist">Artist</option>
        <option value="writer">Writer</option>
        <option value="web developer">Web Developer</option>
        </select>
        <section class="radio-group" required>
            <label for="availability">Availability</label>
            <input type="radio" name="availability" checked>Part time
            <input type="radio" name="availability">Full time
            </section>
            <br>        
            <textarea cols="30" rows="10" name="message" id="message"></textarea>
            <br>         
            <button type="submit">Submit</button>
    </form>
</div>
</body>
</html>
/* file: styles.css */
body{
  font-family: Arial, sans-serif;
}

.container input{
  display: block;
}

input:focus,textarea:focus{
  border-color: skyblue;
}

input:invalid, select:invalid, textarea:invalid{
  border-color: red;
}

input:valid, select:valid, textarea:valid{
  border-color: green;
}

button:hover{
background-color: black;
  color: white;
}

.radio-group input[type="radio"]:checked{
  border-color: skyblue;
background-color: blue;
  box-shadow: 2px 2px 2px 2px gray;
}

input[type="radio"]:checked + label {
color: skyblue;
}

input:nth-child(1){
  border-radius: 5px;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Challenge Information:

Build a Job Application Form - Build a Job Application Form

you have one label for two input elements, you should have one label for one input, and they should be correctly associated