/* --- General Form Cleanup and Spacing --- */

/* Add a margin to the bottom of all form elements for better breathing room */
.webform-submission-form .form-item,
.webform-submission-form .form-actions {
    margin-bottom: 1.5rem; /* Increased spacing */
}

/* Ensure the main form body is legible */
.webform-submission-form {
    max-width: 800px; /* Limits width on large screens */
    margin: 0 auto; /* Centers the form */
}

/* Style the primary submit button */
.webform-submission-form .form-actions .button--primary {
    background-color: #007bff; /* Primary brand color (blue) */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.webform-submission-form .form-actions .button--primary:hover {
    background-color: #0056b3; /* Darker on hover */
}


/* --- Styling the Class Selection (Checkboxes/Radios) --- */

/* Target the specific fieldset or container for your classes element */
/* You may need to replace 'classes_to_register' with your actual element key */
.webform-submission-form #edit-classes-to-register { 
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f8f8; /* Light background for the selection box */
}

/* Style the individual option labels (the class names) */
.webform-submission-form #edit-classes-to-register .form-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee; /* Light divider between sessions */
    margin-bottom: 0; /* Remove extra margin */
}

/* Make the last item in the list cleaner */
.webform-submission-form #edit-classes-to-register .form-item:last-child {
    border-bottom: none;
}

/* Highlight the disabled (FULL) options */
.webform-submission-form #edit-classes-to-register .form-disabled {
    opacity: 0.6; /* Dim the full options */
    background-color: #fdd; /* A subtle red background */
    border-radius: 4px;
    padding-left: 5px;
}

/* Style the input for the capacity message */
.webform-options-limit-message {
    font-style: italic;
    font-size: 0.9em;
    color: #cc0000; /* Red text for the 'FULL' message */
    margin-left: 10px;
    font-weight: bold;
}