/* Course Grid Styles */
.clubbercise-courses-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Filters */
.courses-filter-wrapper {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.courses-filters {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.filter-group label {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group select {
    padding: 12px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 160px;
}

.filter-group select:focus {
    outline: none;
    border-color: #fff;
    background: #222;
}

.filter-reset {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    margin-top: auto;
}

.filter-reset:hover {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
}

/* Grid Layout */
.courses-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.courses-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.courses-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.courses-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Course Cards */
.course-card {
    background: #35415b;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #fff;
}

.course-card-header {
    position: relative;
}

.course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-content-primary);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.course-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-title a:hover {
    color: var(--color-content-primary);
}

.course-details {
    margin-bottom: 15px;
}

.course-date,
.course-location,
.course-time,
.course-master-trainer {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-date strong,
.course-location strong,
.course-time strong,
.course-master-trainer strong {
    color: #fff;
    font-weight: 600;
}

.course-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: auto;
    flex: 1;
    min-height: 60px;
}

/* Pricing Section */
.course-pricing {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: auto;
}

.current-price-section {
    text-align: center;
    margin-bottom: 15px;
}

.price-type {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.current-price {
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 5px;
}

.price-until {
    font-size: 0.8rem;
    color: #888;
}

.all-prices {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 10px;
}

.price-tier {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 18px 5px 8px 5px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #111;
    transition: all 0.3s ease;
    opacity: 0.6;
    position: relative;
}

.price-tier.current {
    border-color: #CCFF00;
    background: rgba(204, 255, 0, 0.1);
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
    z-index: 2;
}

.price-tier.current::before {
    content: "CURRENT";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #CCFF00;
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.price-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.price-tier.current .price-label {
    color: #CCFF00;
    font-weight: 600;
}

.price-tier .price {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #999;
    transition: color 0.3s ease;
}

.price-tier.current .price {
    color: #CCFF00;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Hover effects for non-current price tiers */
.price-tier:not(.current):hover {
    opacity: 0.8;
    border-color: #555;
    background: #1a1a1a;
    transform: scale(1.02);
}

/* Expired price tiers (past dates) */
.price-tier.expired {
    opacity: 0.3;
    position: relative;
}

.price-tier.expired::after {
    content: "EXPIRED";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(255, 107, 107, 0.9);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Upcoming price tiers (future dates) */
.price-tier.upcoming {
    opacity: 0.7;
    border-color: #00CCFF;
    background: rgba(0, 204, 255, 0.05);
}

.price-tier.upcoming .price-label {
    color: #00CCFF;
}

.price-tier.upcoming .price {
    color: #00CCFF;
}

/* Card Footer */
.course-card-footer {
    padding: 0 25px 25px;
    margin-top: auto;
}

.course-signup-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.course-signup-btn:hover {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
}

/* Loading State */
.courses-loading {
    text-align: center;
    padding: 40px;
    color: #ccc;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* No Results */
.no-courses-found {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
}

/* Modal Styles */
.course-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #000;
}

.modal-body {
    padding: 40px;
}

body.modal-open {
    overflow: hidden;
}

/* Booking Steps */
.booking-step {
    animation: fadeIn 0.3s ease;
}

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

.booking-step h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.booking-step h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 18px;
}

.course-price-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.price-display {
    margin: 0;
    font-size: 18px;
}

.price-label {
    color: #666;
}

.price-amount {
    color: #667eea;
    font-weight: bold;
    font-size: 24px;
    margin-left: 10px;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

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

.form-group label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-hint {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a5dcc;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* Payment Styles */
.payment-security-notice {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.stripe-card-element {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    min-height: 50px;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Agreements Section */
.agreements-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

/* Success States */
.success-icon {
    font-size: 60px;
    text-align: center;
    margin-bottom: 20px;
}

.booking-complete {
    text-align: center;
    padding: 20px;
}

.booking-complete ul {
    text-align: left;
    max-width: 300px;
    margin: 20px auto;
}

/* Loading State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
}

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

/* Button Spinner */
.btn-spinner {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courses-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .courses-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    /* Mobile price tiers */
    .all-prices {
        gap: 8px;
        margin-top: 20px;
        padding-top: 8px;
    }
    
    .price-tier {
        min-width: 70px;
        padding: 15px 4px 6px 4px;
    }
    
    .price-tier.current {
        transform: scale(1.05);
    }
    
    .price-tier.current::before {
        font-size: 0.5rem;
        padding: 2px 5px;
        top: -5px;
    }
    
    .price-label {
        font-size: 0.6rem;
    }
    
    .price-tier .price {
        font-size: 0.9rem;
    }
    
    .price-tier.current .price {
        font-size: 1rem;
    }
    
    .courses-grid,
    .courses-grid[data-columns="2"],
    .courses-grid[data-columns="3"],
    .courses-grid[data-columns="4"] {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-card-body {
        padding: 20px;
    }
    
    .course-excerpt {
        min-height: 40px;
    }
    
    .all-prices {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-tier {
        min-width: auto;
    }
    
    /* Modal responsive */
    .modal-body {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Payment Methods Styles */
.payment-methods {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.payment-method-option {
    flex: 1;
    cursor: pointer;
}

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

.payment-method-label {
    display: block;
    padding: 15px;
    border: 2px solid #333;
    background: #111;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #ccc;
}

.payment-method-option input[type="radio"]:checked + .payment-method-label {
    border-color: #CCFF00;
    background: rgba(204, 255, 0, 0.1);
    color: #CCFF00;
}

.payment-method-label:hover {
    border-color: #555;
    background: #1a1a1a;
}

.payment-section {
    margin: 20px 0;
}

.payment-security-notice {
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid rgba(0, 204, 255, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.payment-security-notice p {
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
}

#booking-paypal-button-container {
    min-height: 55px;
}

#paypal-errors {
    color: #ff6b6b;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Mobile payment methods */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
        gap: 10px;
    }
    
    .payment-method-label {
        padding: 12px;
    }
}