/* Olympic Registration Frontend Styles - Scoped to avoid Elementor conflicts */

/* Reset for custom template pages */
body.olympic-custom-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #f5f5f5 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

body.olympic-custom-page * {
    box-sizing: border-box;
}

/* Prevent conflicts with Elementor and other themes */
.olympic-registration-wrapper {
    isolation: isolate;
}

.olympic-registration-wrapper * {
    box-sizing: border-box;
}

.olympic-modal,
.olympic-modal * {
    box-sizing: border-box;
}

/* Registration Button */
.olympic-register-btn {
    background: linear-gradient(45deg, #2d6deb 0%, #4bb141 100%) !important;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.olympic-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.olympic-ready-exam-btn {
    background: linear-gradient(45deg, #2d6deb 0%, #4bb141 100%) !important;
    color: #fff;
    padding: 14px 34px;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 109, 235, 0.35);
}

.olympic-ready-exam-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 109, 235, 0.5);
}

/* Modal Overlay - Scoped to prevent Elementor conflicts */
.olympic-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483000;
    overflow-y: auto;
    overflow-x: hidden;
}

.olympic-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.olympic-ready-exam-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483000;
}

.olympic-ready-exam-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.olympic-ready-exam-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px);
    z-index: 2147483001 !important;
}

.olympic-ready-exam-container {
    position: relative;
    background: #fff;
    border-radius: 15px;
    max-width: 760px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.2);
    animation: modalSlideIn 0.3s ease;
    z-index: 2147483002;
}

.olympic-ready-exam-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

.olympic-ready-exam-modal .olympic-ready-exam-step {
    display: none !important;
}

.olympic-ready-exam-modal .olympic-ready-exam-step.active {
    display: block !important;
}

.olympic-ready-exam-modal .olympic-select-exam-category {
    background: linear-gradient(45deg, #2d6deb 0%, #4bb141 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.olympic-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px);
    z-index: 2147483001 !important;
}

/* Modal Container */
.olympic-modal-container {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.2);
    animation: modalSlideIn 0.3s ease;
    z-index: 2147483002;
}

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

.olympic-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.olympic-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Modal Header */
.olympic-modal-header {
    padding: 30px;
    text-align: center;
}

.olympic-popup-banner {
    width: 100%;
	max-width:80px !important;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.olympic-modal-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
}

.olympic-modal-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Progress Bar */
.olympic-progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.olympic-progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Modal Body */
.olympic-modal-body {
    padding: 0 30px 30px 30px;
}

/* Steps */
.olympic-step {
    display: none;
}

.olympic-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Category Grid */
.olympic-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.olympic-category-card {
    background: #f9f9f9;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.olympic-category-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.olympic-category-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(45deg, #2d6deb 0%, #4bb141 100%) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.olympic-category-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.olympic-category-card p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.category-fee {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.olympic-select-category {
    background: linear-gradient(45deg, #2d6deb 0%, #4bb141 100%) !important;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.olympic-select-category:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

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

.olympic-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.olympic-form-group label .required {
    color: #e74c3c;
}

.olympic-form-group input,
.olympic-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.olympic-form-group input:focus,
.olympic-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.olympic-form-group .description {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

#unique-id-feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

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

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

/* Form Actions */
.olympic-form-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: space-between;
}

.olympic-btn {
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-size: 18px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.olympic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.olympic-btn:hover::before {
    left: 100%;
}

.olympic-modal .olympic-btn,
.olympic-modal .olympic-btn:focus,
.olympic-modal .olympic-btn:active {
    border: none !important;
}

.olympic-btn-primary {
    background: linear-gradient(45deg, #2d6deb 0%, #4bb141 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.olympic-btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.olympic-btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.olympic-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.olympic-btn-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
    border: 2px solid #dee2e6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.olympic-btn-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.olympic-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.olympic-btn-block {
    width: 100%;
}

/* Button focus states */
.olympic-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.olympic-btn-secondary:focus {
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.3);
}

/* Payment Summary */
.olympic-payment-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.olympic-payment-summary h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.summary-row.total {
    font-size: 18px;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #ddd;
}

.summary-row.total strong {
    color: #667eea;
}

/* Payment Methods */
.olympic-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.olympic-payment-method {
    position: relative;
}

.olympic-payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.olympic-payment-method label {
    display: block;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    min-height: 100px;
    text-align: center;
}

.olympic-payment-method label:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.olympic-payment-method input[type="radio"]:checked + label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.payment-method-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-method-content img {
    max-width: 60px;
    max-height: 40px;
    object-fit: contain;
}

.payment-method-icon {
    font-size: 40px;
    margin-bottom: 8px;
    line-height: 1;
}

.payment-method-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
    text-align: center;
}

.payment-method-subtitle {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    margin-top: 3px;
}

/* Loading State */
.olympic-loading {
    text-align: center;
    padding: 50px;
}

.olympic-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Badges */
.olympic-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.olympic-badge-junior {
    background: #d4edda;
    color: #155724;
}

.olympic-badge-higher {
    background: #cce5ff;
    color: #004085;
}

.olympic-badge-senior {
    background: #fff3cd;
    color: #856404;
}

/* Status Badges */
.olympic-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.olympic-status-pending {
    background: #fff3cd;
    color: #856404;
}

.olympic-status-completed {
    background: #d4edda;
    color: #155724;
}

.olympic-status-approved {
    background: #d4edda;
    color: #155724;
}

.olympic-status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .olympic-modal-container {
        width: 95%;
        margin: 20px;
    }

    .olympic-category-grid {
        grid-template-columns: 1fr;
    }

    .olympic-modal-header {
        padding: 20px;
    }

    .olympic-modal-body {
        padding: 0 20px 20px 20px;
    }

    .olympic-form-actions {
        flex-direction: column;
    }

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

/* Scrollbar Styling */
.olympic-modal-container::-webkit-scrollbar {
    width: 8px;
}

.olympic-modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.olympic-modal-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.olympic-modal-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation for success/error messages */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.olympic-message {
    animation: slideInDown 0.3s ease;
}

/* Manual Payment Form Styles */
.olympic-manual-payment-form {
    animation: fadeIn 0.3s ease;
}

.olympic-manual-payment-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.payment-info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.payment-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

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

.payment-info-row strong {
    color: #555;
}

.payment-info-row .payment-number {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    letter-spacing: 1px;
}

.payment-info-row .payment-amount {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

.payment-instructions {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.payment-instructions h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.payment-instructions p {
    margin: 0 0 15px 0;
    color: #666;
}

.payment-instructions ol {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.payment-instructions ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.payment-instructions ol li strong {
    color: #667eea;
}

.olympic-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.olympic-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Manual Payment Form Button Styling */
.olympic-manual-payment-form .olympic-form-actions {
    margin-top: 25px;
}

.olympic-manual-payment-form .olympic-btn {
    font-size: 15px;
    padding: 12px 30px;
}

/* Payment Success Screen */
.olympic-payment-success {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.olympic-payment-success .success-icon {
    margin: 0 auto 25px;
    animation: bounceIn 0.6s ease;
}

.olympic-payment-success h3 {
    margin: 0 0 15px 0;
    color: #28a745;
    font-size: 24px;
    font-weight: 600;
}

.olympic-payment-success .success-message {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.olympic-payment-success .success-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.olympic-payment-success .success-info {
    margin-bottom: 20px;
}

.olympic-payment-success .success-info strong {
    color: #333;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.olympic-payment-success .success-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.olympic-payment-success .success-info li {
    padding: 5px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.olympic-payment-success .success-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.olympic-payment-success .success-actions {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.olympic-payment-success .success-actions p {
    margin: 5px 0;
    color: #666;
}

.olympic-payment-success .success-actions strong {
    color: #667eea;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive button improvements */
@media (max-width: 768px) {
    .olympic-form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .olympic-btn {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .olympic-payment-methods {
        grid-template-columns: 1fr;
    }
    
    .olympic-payment-method label {
        min-height: 80px;
        padding: 15px;
    }
    
    .payment-method-content img {
        max-width: 50px;
        max-height: 35px;
    }
    
    .payment-method-name {
        font-size: 15px;
    }
    
    .payment-method-subtitle {
        font-size: 11px;
    }
    
    .olympic-payment-success h3 {
        font-size: 20px;
    }
    
    .olympic-payment-success .success-details {
        padding: 15px;
    }
}
.category-icon  span{
	width:30px !important;
	height:30px !important;
	font-size:30px !important;
}
