Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

Use the :checked pseudo-class on radio buttons to change the text color of the associated label when the option is selected. i cannot pass this CSS code.. please help.

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>
    <h1>Job Application Form</h1>
    <div class="container">
        <form>
            <label for="name">Name: </label>
            <input id="name" name="name" type="text" placeholder="E.g., Jon  Right" required>
            <label for="email">Email: </label>
            <input type="email" id="email" name="email" required>
            <label for="position">Applied for:<label>
            <select id="position">
                <option>Select a Option</option>
                <option>Developer</option>
                <option>Designer</option>
                 <option>Office Worker</option>
            </select>
            <fieldset class="radio-group" name="availability">
                <legend>Availability</legend>
                <input type="radio" id="availability" name="availability">
                <label for="availability">Full Time<label>
                <input type="radio" id="availability" name="availability">
                <label for="availability">Part Time<label>
            </fieldset>

            <label for="message">About Yourself: </label>
            <textarea id="message">
            </textarea>

            <button type="submit">Submit</button>
                


        </form>
    </div>                


</body>
</html>
/* file: styles.css */
body{
  font-family: arial;
  background-color: lightblue;
  width: 100%;
  height: 100%
}

.container{
  display: block;
  background-color: whitesmoke;
  margin: 0 auto;
  padding: 20px;
width: 80%;
height: 50%;
text-align: center; 
border-radius: 10px;
font-size: 1.2rem;
}

input:focus, textarea:focus{
  border-color: blue;
  outline: none;
}

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

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

button:hover{
  background-color: purple;
  color: white;
  cursor: pointer;
}

button{
  display: block;
  margin:5px auto;
  padding: 10px;
  font-size: 1.2rem;
}

.radio-group input[type="radio"]:checked{
  border-color: black;
  background-color: green;
  box-shadow: 0 0 5px gray;
  
  }

.radio-group input[type="radio"]:checked + label{
  text-color: yellow;
}

Your browser information:

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

Challenge Information:

Build a Job Application Form - Build a Job Application Form

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-job-application-form/66faac4139dbbd5dd632c860.md at main · freeCodeCamp/freeCodeCamp · GitHub

you can’t have elements sharing the same id, please fix that