/* Form Container */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
/* Simple Page Header */
.page-header {
    background-color: #5387c4;
    color: white;
    text-align: center;
    padding: 2.2rem;
    margin-top: 20px;
}

.page-header h1 {
    margin: 5.5rem 0 0 0;
    font-size: 2.5rem;
}

/* Form Container */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ... rest of your existing CSS ... */

/* GDPR Notice */
.gdpr-notice {
    background-color: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #5387c4;
    border-radius: 4px;
}

.gdpr-notice h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

.gdpr-notice p {
    line-height: 1.6;
    color: #555;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #5387c4;
}

.form-section h2 {
    color: #5387c4;
    border-bottom: 2px solid #5387c4;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Conditional Fields */
.conditional-field {
    display: none;
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid #5387c4;
}

.conditional-field.show {
    display: block;
}

/* Availability Grid */
.availability-grid {
    overflow-x: auto;
    margin-top: 10px;
}

.availability-grid table {
    width: 100%;
    border-collapse: collapse;
}

.availability-grid th,
.availability-grid td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.availability-grid th {
    background-color: #5387c4;
    color: white;
    font-weight: 600;
}

.availability-grid td {
    background-color: #f9f9f9;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Referee Boxes */
.referee-box {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.referee-box h3 {
    margin-top: 0;
    color: #5387c4;
    font-size: 1.2rem;
}

/* Declaration Box */
.declaration-box {
    background-color: #fff3cd;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #ffc107;
}

.declaration-box p {
    margin: 0 0 15px 0;
    font-style: italic;
    line-height: 1.6;
}

.declaration-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.declaration-checkbox input[type="checkbox"] {
    margin-top: 4px;
}

.declaration-checkbox label {
    font-weight: normal;
    cursor: pointer;
}

/* Submit Button */
.submit-button {
    background-color: #5387c4;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

.submit-button:hover {
    background-color: #5387c4;
}

.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Required Field Indicator */
.required {
    color: red;
}

/* Emergency Contact Group */
.emergency-contact-group {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
}


.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: #999;
    font-weight: normal;
}

.form-group label.hidden {
    display: none;
}
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: white;
    cursor: pointer;
    appearance: none;
    color: #999;/* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}
/* Placeholder styling */
.form-group select option[disabled] {
    color: #999;
}

/* When dropdown has a value selected */
.form-group select:valid {
    color: #999;
}

/* When dropdown is empty/placeholder */
.form-group select:invalid {
    color: #999;
}
.form-group select:focus {
    outline: none;
    border-color: #5387c4;
}
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}
/* Style for the first empty option */
.form-group select option:first-child {
    color: #999;
}
/* Date input styling */
.form-group input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #333;
    cursor: pointer;
}

.form-group input[type="date"]:focus {
    outline: none;
    border-color: #5387c4;
}

/* Style for when no date is selected */
.form-group input[type="date"]:invalid {
    color: rgb(165, 161, 161);
}
i {
    transition:0.25s ease;
    cursor: pointer;
}
i.selected{
    color:#ffc107;
    filter: drop-shadow(0 0 3px #666);
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .availability-grid {
        font-size: 12px;
    }
    
    .availability-grid th,
    .availability-grid td {
        padding: 5px;
        font-size: 11px;
    }
}