/* Player Registration Form Styles */

.scouting-registration-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.scouting-registration-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.registration-header {
    background: linear-gradient(135deg, #003366 0%, #00509e 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.registration-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DAA520, #FFD700, #DAA520);
}

.registration-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.registration-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.registration-form {
    padding: 40px 30px;
}

/* Message Alerts */
.registration-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    animation: slideDown 0.3s ease;
}

.registration-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.registration-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #003366;
    font-size: 20px;
    margin: 0 0 20px 0;
    font-weight: 600;
    border-left: 4px solid #DAA520;
    padding-left: 12px;
}

/* Photo Section */
.photo-section {
    text-align: center;
}

.photo-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.photo-preview {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 3px dashed #ddd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    text-align: center;
    color: #999;
}

.photo-placeholder .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
}

.photo-controls {
    display: flex;
    gap: 10px;
}

/* Form Rows and Groups */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #003366 0%, #00509e 100%);
    color: white;
    border-bottom: 3px solid #DAA520;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
    background: linear-gradient(135deg, #00509e 0%, #003366 100%);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #DAA520;
    color: #003366;
    font-weight: 700;
}

.btn-success:hover {
    background: #FFD700;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Actions */
.form-actions {
    margin-top: 40px;
}

/* Webcam Modal */
.webcam-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.webcam-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.webcam-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.webcam-modal-close:hover {
    color: #333;
}

.webcam-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
}

#webcam-video,
#webcam-canvas {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.webcam-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .scouting-registration-container {
        padding: 10px;
    }

    .registration-header {
        padding: 30px 20px;
    }

    .registration-header h2 {
        font-size: 24px;
    }

    .registration-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .photo-controls {
        flex-direction: column;
        width: 100%;
    }

    .photo-controls .btn {
        width: 100%;
    }
}

/* Terms and Security Section */
.terms-security-section {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.terms-checkbox-group {
    margin-bottom: 20px;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    color: #444;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-checkbox span {
    line-height: 1.6;
}

.terms-link {
    color: #003366;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #DAA520;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    padding: 15px 0;
}

/* Responsive adjustments for terms section */
@media (max-width: 768px) {
    .terms-security-section {
        padding: 20px 15px;
    }
    
    .terms-checkbox {
        font-size: 14px;
    }
}
