/* General Form Styles */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Form Labels */
label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #0078d7; /* Blue focus border */
    box-shadow: 0 0 3px rgba(0, 120, 215, 0.5);
    outline: none;
}

/* Textarea */
textarea {
    height: 100px;
    resize: vertical;
}

/* Buttons */
button,
input[type="submit"] {
    background-color: #0078d7; /* Primary blue */
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover,
input[type="submit"]:hover {
    background-color: #005fa3; /* Darker blue on hover */
}

/* Error Messages */
.error-message {
    color: #d93025; /* Red for errors */
    font-size: 14px;
    margin-top: -12px;
    margin-bottom: 12px;
}

/* Form Header */
form h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Optional: Form Description */
form p.description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* Checkboxes and Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    margin-right: 8px;
}

.checkbox-label,
.radio-label {
    font-size: 14px;
    color: #333;
}

/* Optional: Inline Field Grouping */
.field-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.field-group > * {
    flex: 1;
    min-width: 200px;
}

/* Accessibility Enhancements */
input:required:focus {
    border-color: #ff8800; /* Orange for required fields */
}
 