Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

Hi fellow coders, unsure what I am missing here on step 18. Any suggestion is appreciated. Thanks in advance.

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 id="job-application">
        <label for="name">Full Name:</label>
            <input type="text" id="name" name="name" placeholder="John Gay" required>
          
        <label for="email">Email:</label>
            <input type="email" id="email" name="email" placeholder="barbie@gmail.com" required>

        <label for="position">Position:</label>
        <select id="position" required>
            <option value="">Select a position:</option>
            <option value="Developer">Developer</option>
            <option value="paramedic">Paramedic</option>
        </select>

        <fieldset class="radio-group">
            <legend>Availability:</legend>
            <label for="fulltime">Full Time</label>
              <input type="radio" value="Option A" name="availability" id="fulltime" checked>
            <label for="parttime">Part Time</label>
              <input type="radio" value="Option B" name="availability" id="parttime">
        </fieldset>

        <label for="message">Why this job?</label>
        <textarea id="message" class="message" rows="5" placeholder="What's your motivation?" required></textarea>
        <button type="submit">Submit</button>
    </form>
  </div>
</body>
</html>
/* file: styles.css */
body{
  font-family: Arial;
  background-color: pink;
  padding: 50px;
}

.container {
  max-width:600px;
  background-color: white;
  padding: 30px;
}

label {
  display:block;
}

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

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

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

button:hover {
  background-color: green
}

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

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

input:first-of-type {
  border-radius: 30%;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36

Challenge Information:

Build a Job Application Form - Build a Job Application Form

hello!

The + label selector here is selecting the first label element that appears after a checked radio input. So basically, when #fulltime input is checked, it searches for the label right after it, and in your html structure, the first label element after #fulltime is the “Part Time” label -

So it selects it and changes its color to green. But what happens when the #parttime input is checked?