Build a Job Application Form - Issue with test 19

Tell us what’s happening:

Hello freeCodeCamp community.

I’ve been struggling with this exercise, finding a solution for solve test 19. I tried looking for a solution, but couldn’t find anything. Any help would be appreciated.

Thank you in advance for your time.

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>
    <main>
    <div class="container">
        <h1>Job Application</h1>
        <form>
            <label for="name">Full Name:</label>
            <input type="text" id="name" name="name" placeholder="Enter your name" required>

            <label for="email">Email: </label>
            <input type="email" id="email" name="email" placeholder="Enter your email" required>

            <label for="position">Position: </label>
            <select id="position" name="position" required>
                <option value="select">Select an option</option>
                <option value="animator">Animator</option>
                <option value="web-designer">Web Designer</option>
                <option value="back-end-programmer">Back End Programmer</option>
            </select>
            
            <fieldset class="radio-group" name="availability">
                <legend>Availability</legend>
                <label for="full-time">Full-Time</label>
                <input type="radio" name="availability" id="full-time" value="full-time">
                
                <label for="part-time">Part-Time</label>
                <input type="radio" name="availability" id="part-time" value="part-time">
            </fieldset>

            <label for="message">Why do you want this job?
</label>
            <textarea id="message" name="message" rows="4" cols="50">Write your motivation</textarea>
            <button type="submit">Submit Form</button>
        </form>
    </div>
    </main>
</body>
</html>
/* file: styles.css */
h1 {
  text-align: center;
}

main {
    background-color: #ffffff1a;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    margin: 20px auto;
    padding: 10px 20px;
}

label:not(.full-time, .part-time) {
  display: block;
  margin: 10px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

input {
  background-color: #ffffff1a;
  width: 95%;
  padding: 10px;
}

button {
  cursor: pointer;
  background-color: green;
  color: whitesmoke;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 1.1rem;
  display: block;
  margin: auto;
}

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

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

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

button:hover {
  background-color: teal;
}

.radio-group input[type="radio"] 
{
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid gray;
  vertical-align: bottom;
}

.radio-group input[type="radio"]:checked {
  border-color: black;
  background-color: lime;
  box-shadow: 0 1px grey;
}

input[type="radio"]:checked{
  color: blue;
}

.group-radio label:checked {
  color: blue;
}

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

Your browser information:

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

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

Welcome to the forum @fluid_programmer,

Typically, radio buttons are written before their labels in HTML And in that case, you can use this reference to build a selector that targets the checked radio button’s label.

MDN: Next Sibling Combinator

Happy coding!