Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

Please advise for the correct code:
You should use the :checked pseudo-class on radio buttons to change the text color of the associated label when the option is selected.

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">
    <link rel="stylesheet" href="./styles.css"/>
    <title>Job Application Form</title>
</head>
<body>
<div class="container">
    <form>
        <label><input type="text" id="name"/>Name</label>
        
        <label><input type="email" id="email"/>email</label>
        <select id="position">
            <option>Manager</option>
            <option>Consultant</option>
            <option>Secretary</option>
            <option>IT support</option>
        </select>
        <fieldset class="radio-group">
            <label><input type="radio"  name="availability"/>full time</label> 
            <label><input type="radio" name="availability"/>Part Time</label>
            <textarea id="message"></textarea>
            <button type="submit">Submit</button>
        </fieldset>

        </form>
    </div>
</body>
</html>
/* file: styles.css */
input:focus,
textarea:focus {
border-color: blue;
}
input:invalid,
select:invalid,
textarea:invalid {
  border-color: red
}
input:valid,
select:valid,
textarea:valid {
  border-color: green
}
button:hover {
  background-color: brown
}
.radio-group input[type="radio"]:checked {
  border: grey;
  background-color: lightgrey;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
label input [type="radio"]:checked {
  color: green;
}
input:first-of-type {
Font-size: 20px;
}


Your browser information:

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

Challenge Information:

Build a Job Application Form - Build a Job Application Form
https://www.freecodecamp.org/learn/full-stack-developer/lab-job-application-form/lab-job-application-form

this is not selecting the label element, this is not even selecting the label element
this is selecting elements [type="radio"]:checked that are descendant of input that are descendant of label

please review these two