My code is failing for step 12: 12. You should use the selector for the :focus pseudo-class for input and textarea to also remove the default outline when focused. Can somebody please tell me what is wrong?
<!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>
<h2>Job Application Form</h2>
<label for="name">Applicant Full Name:</label>
<input type="text" id="name" required>
<label for="email">Applicant Email:</label>
<input type="email" id="email" required>
<label for="position">Position:</label>
<select id="position" required>
<option value="">Select Position</option>
<option value="developer">Developer</option>
<option value="manager">Manager</option>
<option value="designer">Designer</option>
</select>
<fieldset class="radio-group">
<legend>Availability:</legend>
<input type="radio" id="full-time" name="availability" value="full-time">
<label for="full-time">Full-Time</label>
<input type="radio" id="part-time" name="availability" value="part-time">
<label for="part-time">Part-Time</label>
</fieldset>
<label for="message">Why do you want this job?</label>
<textarea id="message" required></textarea>
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>
input:focus,
textarea:focus {
border-color: blue;
outline: none;
}
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: purple;
background-color: lavender;
box-shadow: 0 0 5px purple;
}
.radio-group input[type="radio"]:checked + label {
color: purple;
}
input:first-of-type {
border-radius: 20px;
}