/* Player Registration Page Styles */

/* Hero Section */
.player-hero {
    background: var(--gradient);
    padding: 100px 20px 60px;
    text-align: center;
    color: var(--text-light);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

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

/* Fee Info Section */
.fee-info-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.fee-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    margin: 0 auto;
}

.fee-info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.fee-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.fee-note {
    color: #666;
    font-size: 0.95rem;
}

/* Registration Form */
.registration-section {
    padding: 60px 0 80px;
    background: var(--white);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

/* Multi-Player Registration Styles - Add these to your existing CSS */

.player-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    position: relative;
}

.player-section .form-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-player-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-player-btn:hover {
    background: #dc2626;
}

.add-player-section {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    border: 2px dashed #d0a764;
    border-radius: 8px;
    background: rgba(208, 167, 100, 0.05);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.total-summary {
    background: linear-gradient(135deg, rgba(208, 167, 100, 0.1), rgba(130, 113, 83, 0.1));
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.summary-content {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.summary-total {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select {
    cursor: pointer;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: var(--primary-color);
    background: rgba(208, 167, 100, 0.1);
}

.payment-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.payment-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.payment-note {
    font-size: 0.85rem;
    color: #666;
}

/* Waiver Section */
.waiver-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.waiver-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--white);
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid #ddd;
}

.waiver-content::-webkit-scrollbar {
    width: 8px;
}

.waiver-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.waiver-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.waiver-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.waiver-content h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.waiver-content h5 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.waiver-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Terms Checkbox */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.terms-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-label {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Character Counter */
.char-count {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    margin-top: 0.25rem;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    background: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #d4edda;
    color: #155724;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.error-icon {
    width: 60px;
    height: 60px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.payment-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: left;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Stripe Payment Modal */
#stripePlayerPaymentModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

#stripePlayerPaymentModal .modal-content {
    background: var(--white) !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    margin: 0 !important;
}

/* Payment Form Specific Styles */
#player-payment-form {
    width: 100% !important;
}

#player-payment-element {
    padding: 10px 0 !important;
}

#submit-player-payment {
    width: 100% !important;
    margin-top: 10px !important;
}

.payment-summary {
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .fee-amount {
        font-size: 2.5rem;
    }

    .waiver-content {
        max-height: 300px;
    }

    /* Payment Modal Mobile Fixes */
    #stripePlayerPaymentModal {
        padding: 10px !important;
    }
    
    #stripePlayerPaymentModal .modal-content {
        max-height: 95vh !important;
        width: 100% !important;
    }

    .player-section {
        padding: 1.5rem 1rem;
    }
    
    .add-player-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .player-hero {
        padding: 80px 20px 40px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .fee-amount {
        font-size: 2rem;
    }
}