/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #495057;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Progress Steps */
.progress-container {
    margin: 2rem 0;
    padding: 1rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.step-circle i {
    font-size: 1.5rem;
    color: #495057;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    border-color: #007bff;
    background: #007bff;
    transform: scale(1.1);
}

.step.active .step-circle i {
    color: white;
}

.step-label {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    color: #495057;
    font-weight: 400;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

/* Timer */
.timer-container {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timer {
    font-size: 1.35rem;
    color: #dc3545;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timer i {
    margin-right: 0.5rem;
}

.timer-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

/* Booking Table */
.table-container {
    overflow-x: auto;
    position: relative;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.booking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
}

.booking-table th {
    border-left: none;
    border-right: none;
    position: relative;
    transform: translateX(-50%);
    text-align: center;
    padding: .7rem 1rem;
    padding-bottom: 0;
}

.booking-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #dee2e6;
}

.court-column {
    position: sticky;
    left: 0;
    background-color: #fff;
    z-index: 2;
    font-weight: bold;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.time-slot {
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #e9ecef;
}

.time-slot.passed {
    background-color: #666;
    cursor: not-allowed;
}

/* .time-slot:not(.disabled):hover {
    background-color: #d1ecf1;
    transform: scale(1.05);
} */

.time-slot.booked {
    background-color: #dc3545;
    cursor: not-allowed;
}

.time-slot.booked.reserved {
    background-color: #fbff94;
    cursor: not-allowed;
}

.time-slot.selected {
    background-color: #28a745;
    color: white;
}

/* .time-slot.hover {
    background-color: #d1ecf1;
    transform: scale(1.05);
} */

/* Legend */
.legend-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-item span {
    margin-left: 12px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 400;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.legend-color.available {
    background-color: #e9ecef;
}

.legend-color.booked {
    background-color: #dc3545;
}

.legend-color.selected {
    background-color: #28a745;
}

.legend-color.reserved {
    background-color: #fbff94;
}

/* Booking Steps */
.booking-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.booking-step.active {
    display: block;
}

.booking-summary {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: #e8f4ff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,123,255,0.15);
}

.booking-summary table {
    width: 100%;
    margin-bottom: 1rem;
}

.booking-summary td {
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.booking-form .form-label {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Thank You Page Styles */
.thank-you-content {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
    display: block;
    animation: scaleIn 0.5s ease;
}

.thank-you-content h2 {
    color: #007bff;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

#bookingSummaryFinal {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: left;
}

#bookingSummaryFinal p {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
}

#bookingSummaryFinal strong {
    color: #212529;
    font-weight: 600;
}

.thank-you-content p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

#newBooking {
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#newBooking:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Payment Confirmation Styling */
.payment-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.payment-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.payment-card h3 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.bank-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.bank-details p {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-details p:last-child {
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px dashed #dee2e6;
    font-size: 1.1rem;
}

.bank-details strong {
    color: #495057;
}

/* Upload Section Styling */
.upload-section {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: #007bff;
    background: #f0f7ff;
}

.upload-section i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.upload-section p {
    color: #495057;
    margin-bottom: 0.5rem;
}

.upload-section small {
    color: #6c757d;
}

#imagePreview {
    margin-top: 1.5rem;
    position: relative;
}

#imagePreview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal {
    max-width: 100% !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .entry-content.wp-block-post-content,
    .ast-container {
        padding-left: 0;
        padding-right: 0;
    }

    .booking-form,
    .btn-footer-booking,
    .booking-step > h2,
    .date-picker.mb-3 {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .progress-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .btn-footer-booking {
        padding-bottom: 20px;
    }

    .container {
        padding: 0;
    }

    .progress-steps {
        margin-bottom: 50px;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .legend-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .booking-table th {
        padding: 0.5rem;
        padding-bottom: 0;;
    }

    .booking-table td {
        padding: 0.5rem;
    }

    .time-slot {
        width: 60px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .step-label {
        font-size: 0.7rem;
    }

    .timer {
        font-size: 1.2rem;
    }

    .legend-container {
        justify-content: flex-center;
    }

    .company-address {
        padding-left: 20px;
        padding-right: 20px;
    }

    .time-slot {
        width: 50px;
        height: 35px;
    }
}