/* GLOBAL STYLING */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}
.field-block, #seasons-field {
    margin-bottom: 15px; /* Use 15px to push content down inside the main group */
}
.field-group {
    /* Keep the space between field groups */
    margin-bottom: 20px;
}
label {
    display: block;
    /* REDUCE SPACE: Changed from 8px back to a smaller value */
    margin-bottom: 3px;
    font-size: 0.9em; /* Make label text slightly smaller/subtler */
}
input, textarea, select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.hidden { display: none; }

/* SUCCESS/ERROR MESSAGE STYLING */
.message { 
    text-align: center; 
    padding: 15px; 
    margin-bottom: 25px; 
    font-size: 1.3em; 
    font-weight: bold;
    border-radius: 4px;
    opacity: 1; /* Ensure it starts fully visible */
    transition: opacity 1s ease-out; /* Define the transition effect */
}
.error {
    color: #a00;
    background-color: #fdd;
    border: 1px solid #f66;
}
.success-message {
    color: #050;
    background-color: #dfd;
    border: 1px solid #9c9;
}
/* Red Asterisk for mandatory fields */
.required-star {
    color: #d9534f; /* A professional red */
    margin-left: 2px;
    font-weight: bold;
}

/* Optional text styling */
.field-hint {
    font-size: 0.8em;
    color: #666;
    margin-top: 2px;
    display: block;
}

/* CONTAINER STYLING */
#form-container {
    width: 90%;
    margin: 0 auto;
}

/* Overlay to dim the background */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darken the screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Stay on top of everything */
    color: white;
    font-family: sans-serif;
}

/* The actual Spinning Wheel */
.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure the overlay stays hidden until triggered */
.hidden {
    display: none !important;
}

/* Centering and Sizing for Wider Screens */
@media (min-width: 1025px) {
    #form-container {
        width: 66.67vw;
        max-width: 1000px;
        margin: 0 auto;
    }
}