/* SLS Player Registration Form Styles */

:root {
    --color-blue-base: #2b4079;
    --color-blue-light: #415eac;
    --color-gray-base: #dadada;
    --color-gray-light: #d4d4d4;
    --font-oswald: 'Oswald', sans-serif;
}

.sls-registration-container {
    background-color: var(--color-blue-base);
    padding: 1.2rem;
    border-radius: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.sls-registration-header {
    text-align: left;
    margin-bottom: 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    color: #232323;
    border-radius: 1rem 1rem 0 0;
    text-transform: none !important;
}

.sls-registration-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: none !important;
}

.sls-registration-header p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.sls-registration-form {
    background: #fff;
    border-radius: 0 0 1rem 1rem;
    /* box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); */
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #333;
    font-size: 0.875rem;
    height: 1.5rem;
}

.form-group .required {
    color: #dc3545;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.3rem;
    font-size: 0.875rem;
    font-weight: 400;
    height: 2.5rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue-base);
    box-shadow: 0 0 0 2px rgba(43, 64, 121, 0.1);
}

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

.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
    width: auto;
    height: auto;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.3rem;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}

.btn-primary {
    background-color: var(--color-blue-base) !important;
    color: white;
    border-color: var(--color-blue-base) !important;
}

.btn-primary:hover {
    background-color: var(--color-blue-light) !important;
    border-color: var(--color-blue-light) !important;
}

.btn-default {
    background-color: var(--color-gray-base) !important;
    color: #333;
    border-color: var(--color-gray-base) !important;
}

.btn-default:hover {
    background-color: var(--color-gray-light) !important;
    border-color: var(--color-gray-light) !important;
}

.ui-datepicker select.ui-datepicker-month, 
.ui-datepicker select.ui-datepicker-year {
    color: #000;
    font-size: 1rem !important;
    padding: 10px;
    text-align: center;
}

.ui-datepicker td span, 
.ui-datepicker td a {
    text-align: center !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sls-registration-container {
        padding: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
    }
    
    .btn {
        max-width: none;
    }
    
    .sls-registration-header h2 {
        font-size: 1.1rem;
    }
}

@media (min-width: 1200px) {
    .sls-registration-container {
        padding: 2.4rem;
    }
    
    .form-actions .btn {
        padding: 0.75rem;
    }
}

/* Form validation styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.form-group .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group .date-format-hint {
    display: block;
    color: #666;
    font-size: 11px;
    margin-top: 4px;
    font-style: italic;
}

/* Datepicker styling */
#date_of_birth {
    cursor: pointer;
}

.ui-datepicker {
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000 !important;
}

.ui-datepicker-header {
    background: var(--color-blue-base);
    color: white;
    border: none;
    border-radius: 0.3rem 0.3rem 0 0;
    padding: 0.5rem;
}

.ui-datepicker-title {
    color: white;
    font-weight: 600;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    color: white;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ui-datepicker-calendar th {
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    padding: 0.5rem;
}

.ui-datepicker-calendar td {
    padding: 0.25rem;
}

.ui-datepicker-calendar td a {
    text-align: center;
    padding: 0.5rem;
    display: block;
    color: #333;
    text-decoration: none;
    border-radius: 0.2rem;
}

.ui-datepicker-calendar td a:hover {
    background: var(--color-blue-light);
    color: white;
}

.ui-datepicker-calendar td.ui-datepicker-today a {
    background: var(--color-blue-base);
    color: white;
    font-weight: bold;
}

.ui-datepicker-calendar td.ui-datepicker-current-day a {
    background: var(--color-blue-base);
    color: white;
    font-weight: bold;
}

.ui-datepicker-calendar td.ui-datepicker-other-month a {
    color: #ccc;
}

/* Success/Error message animations */
.form-messages {
    animation: slideDown 0.3s ease;
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

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

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

.form-messages.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-blue-base);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Confirmation Page Styles */
.sls-confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sls-confirmation-header {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    color: white;
    border-radius: 0.5rem;
    text-transform: none !important;
    padding: 0;
}

.sls-confirmation-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: none !important;
}

.sls-confirmation-content {
    background: transparent;
    border-radius: 0.5rem;
    padding: 0;
    margin-bottom: 2rem;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.confirmation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-label {
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
}

.confirmation-value {
    color: #666;
    font-size: 0.875rem;
    word-break: break-word;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-back {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-confirm {
    background-color: var(--color-blue-base);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm:hover {
    background-color: var(--color-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(43, 64, 121, 0.3);
}

/* Responsive confirmation page */
@media (max-width: 768px) {
    .sls-confirmation-container {
        padding: 1rem;
    }
    
    .confirmation-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .confirmation-label {
        font-weight: 700;
        margin-bottom: 0.25rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-back,
    .btn-confirm {
        width: 100%;
        padding: 1rem;
    }
}

/* Success Page Styles */
.sls-success-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sls-success-content {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.success-title {
    color: #28a745;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
}

.success-message {
    margin-bottom: 2rem;
}

.success-message p {
    color: #333;
    font-size: 1rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.email-highlight {
    color: var(--color-blue-base);
    font-weight: 600;
}

.welcome-message {
    font-weight: 600;
    color: var(--color-blue-base);
    font-size: 1.1rem;
}

.success-actions {
    margin-top: 2rem;
}

.btn-login {
    background-color: var(--color-blue-base);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-login:hover {
    background-color: var(--color-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(43, 64, 121, 0.3);
    color: white;
    text-decoration: none;
}

/* Failure Page Styles */
.sls-failure-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sls-failure-content {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.failure-title {
    color: #dc3545;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
}

.failure-message {
    margin-bottom: 2rem;
}

.failure-message p {
    color: #333;
    font-size: 1rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.failure-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-retry {
    background-color: var(--color-blue-base);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-retry:hover {
    background-color: var(--color-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(43, 64, 121, 0.3);
    color: white;
    text-decoration: none;
}

.btn-support {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-support:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive success/failure pages */
@media (max-width: 768px) {
    .sls-success-container,
    .sls-failure-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .sls-success-content,
    .sls-failure-content {
        padding: 2rem;
    }
    
    .success-title,
    .failure-title {
        font-size: 1.5rem;
    }
    
    .failure-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-retry,
    .btn-support {
        width: 100%;
    }
}

.form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

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

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

.form-messages.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #2b4079;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sls-registration-container {
        padding: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-actions {
        /* padding: 20px; */
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .sls-registration-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .sls-registration-header {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .form-actions {
        /* padding: 15px; */
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
    }
}

/* Admin Styles */
.sls-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    margin: 0 0 10px 0;
    color: #2b4079;
    font-size: 16px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.payment-completed {
    color: #28a745;
    font-weight: bold;
}

.payment-pending {
    color: #ffc107;
    font-weight: bold;
}

.status-approved {
    color: #28a745;
    font-weight: bold;
}

.status-pending {
    color: #ffc107;
    font-weight: bold;
}

.admin-actions {
    text-align: center;
}

.admin-actions .button {
    margin: 5px;
    min-width: 120px;
}

/* Form validation styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Success/Error message animations */
.form-messages {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

