/* General Form Styling */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Label Styling */
label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

/* Input and Select Fields */
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

/* Focus State */
input:focus,
textarea:focus,
select:focus {
    border-color: #007BFF;
    outline: none;
}

/* Textarea Styling */
textarea {
    height: 120px;
    resize: vertical;
}

/* Fieldset Styling */
fieldset {
    border: none;
    margin-top: 15px;
    padding: 0;
}

/* Make Radio Buttons Horizontal */
.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

/* Checkbox & Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    margin-right: 5px;
}

/* Submit Button */
button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #007BFF;
    border: none;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 600px) {
    form {
        padding: 15px;
    }
    
    .radio-group {
        flex-direction: column; /* Stack radios on smaller screens */
    }
}
