Build a Job Application Form -Step 16, test number 19

Tell us what’s happening:

Can’t get past step 16, everything else is working - when I click the radio button the label only changes with one, not both. Is that why the code is not passing?

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>Pet Store Job Application</h1>
        <form>
            <label for="name">Full Name: </label>
            <input
            type="text"
            id="name"
            required
            />

            <label for="email">Email: </label>
            <input
            type="email"
            id="email"
            required
            />

            <label for="position">Position: </label>
            <select id="position" required> 
                <option value="cashier-sales">Cashier/Sales</option>
                <option value="groomer">Groomer</option>
                <option value="warehouse-overnight">Warehouse Overnight</option>
                <option value="fulfullment">Fulfillment</option>
            </select>
            <fieldset class="radio-group">
                <legend>Availability</legend>
                    <label for="full-time">Full-Time</label>
                    <input 
                    type="radio"
                    id="full-time"
                    name="availability"
                    />

                    <label for="part-time">Part-Time</label>
                    <input 
                    type="radio"
                    id="part-time"
                    name="availability"
                    />
            </fieldset>
            <label for="message">Please describe any relevant animal experience below.</label>
            <textarea id="message">
            </textarea>
            <button type="submit">Submit Application</button>
        </form>
    </div>
</body>
</html>
/* file: styles.css */
body{
  background-color:#7d426e; 
}

.container{
  background-color: #704266;
  padding: 10%;
  margin: 0 10px;
  box-shadow: 0 10px 20px;
  border: 10px;
  border-radius: 5px;
  display: block;
  text-align: center
}

h1{
  font-family: Arial;
  text-align: center;
  color: pink;
  display: block;
}

label{
  font-family: arial;
  font-size: 1.1rem;
  color: pink;
  display: block;
}

legend{
  font-family: arial;
  font-size: 1.5rem;
  font-weight: 700;
  color: pink;
}

fieldset {
  border: 2px solid pink;
  border-radius: 5px;
  margin: 20px;
  max-width: 80%;
}

textarea {
  width: 100%;
  height: 150px
}

input:focus, textarea:focus{
  outline: none;
  border: 2px solid yellow;
}

input:invalid, select:invalid, textarea:invalid{
  border: 2px solid red;
}

input:valid, select:valid, textarea:valid{
  border: 2px solid green;
}

button:hover{
  background-color: lightgreen;
}

.radio-group input[type="radio"]:checked{
  border: 5px solid pink;
  background-color: pink;
  box-shadow: 0 10px 20px;
}

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

input:first-of-type{
  border-radius: 4px;
}


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.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

hello @MmeowChip welcome to the forum!

this selector is changing the color of the label element that comes immediately after a checked radio-input. by this logic, according to your html structure –

when user checks the #full-time radio-input, please check which label’s color is getting changed. should that be the case?

Thank you so much! I moved the labels lines to after each corresponding radio button inputs and they both worked and code passed!