/* Registration Form Styles */

/* Form Section */
.form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Registration Form */
.registration-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group label.required::after {
    content: " *";
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0047AB;
    box-shadow: 0 0 0 0.2rem rgba(0, 71, 171, 0.25);
    outline: none;
}

/* Reduce vertical padding specifically for selects in Player, Officials, and Academy Registration forms */
#playerRegistrationForm select.form-control,
#officialRegistrationForm select.form-control,
#academyRegistrationForm select.form-control {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: 1.25 !important;
    height: auto !important;
    min-height: 32px !important;
}

/* Fallback: all select.form-control across site */
select.form-control {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: 1.25 !important;
    height: auto !important;
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px dashed #e1e8ed;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.file-upload-label:hover {
    background: #e9ecef;
    border-color: #0047AB;
    color: #0047AB;
}

.file-upload-label i {
    margin-right: 8px;
}

/* CAPTCHA Section */
.captcha-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.captcha-section h5 {
    margin-bottom: 15px;
    color: #333;
}

.captcha-refresh {
    color: #0047AB;
    text-decoration: none;
    font-size: 14px;
}

.captcha-refresh:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    background: #0047AB;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #003d99;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 71, 171, 0.3);
}

/* Section Headers */
.registration-form h4 {
    color: #0047AB;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0047AB;
    font-size: 18px;
    font-weight: 600;
}

.registration-form h4:first-child {
    margin-top: 0;
}

/* Error States */
.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Loading States */
.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Form Animation */
.registration-form {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-form {
        padding: 20px;
        margin: 10px;
    }
    
    .form-section {
        padding: 40px 0;
    }
    
    .btn-submit {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .registration-form {
        padding: 15px;
        margin: 5px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
    
    .file-upload-label {
        padding: 10px 12px;
        font-size: 14px;
    }
}
