Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

Hello.
I’ve been stuck here because I keep on running the tests, but it always says that I’m skipping test 18: “You should use the :checked pseudo-class on radio buttons to change the text color of the associated label when the option is selected”.
Thanks

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"> 
    <h1>Job Application Form</h1> 
    <form> 
      <label for="name">Name:</label>
      <input type="text" id="name">
      <label for="email">Email:</label>
      <input type="email" id="email"> 
      <p>Job Position:</p> 
      <select id="position"> 
        <option>Manager</option> 
        <option>Designer</option> 
      </select> 
      <p>Select your work time:</p> 
      <fieldset class="radio-group"> 
        <label for="part-time">Part-Time Job</label> 
        <input type="radio" name="availability" id="part-time"> 
        <label for="full-time">Full-Time Job</label> 
        <input type="radio" name="availability" id="full-time">
      </fieldset>
      <textarea id="message"> </textarea> 
      <button type="submit">Submit</button> 
 </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: pink;
}

/* Style when radio is checked */
.radio-group input[type="radio"]:checked + label {
  color: cyan; /* ✅ use 'color', not 'text-color' */
}

/* Optional: visual feedback for radio itself */
.radio-group input[type="radio"]:checked {
  border-color: brown;
  background-color: yellow;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Example of first input special styling */
input:first-of-type {
  background-color: lime;
}

Your browser information:

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

Challenge Information:

Build a Job Application Form - Build a Job Application Form

In the HTML, your label element comes before its associated input element.

But does your CSS capture that relationship?