/* ========================================
   Booking Page Specific Styles
   ======================================== */

.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--text-white);
    padding: 8rem 0 4rem;
    margin-top: 70px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.booking-options {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.booking-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--text-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 600;
    color: var(--text-dark);
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Class Booking */
.booking-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    background-color: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.booking-sidebar {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.booking-sidebar h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Calendar */
.calendar-container {
    background-color: var(--text-white);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-month {
    font-weight: 600;
    color: var(--text-dark);
}

.calendar-prev,
.calendar-next {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.calendar-prev:hover,
.calendar-next:hover {
    color: var(--primary-dark);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.day-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 0.5rem 0;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.calendar-date:hover:not(.disabled):not(.other-month) {
    background-color: var(--primary-light);
    color: var(--text-white);
}

.calendar-date.selected {
    background-color: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
}

.calendar-date.today {
    border: 2px solid var(--primary-color);
}

.calendar-date.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-date.other-month {
    color: #ccc;
}

/* Booking Summary */
.booking-summary {
    background-color: var(--text-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.booking-summary h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-item span {
    color: var(--text-light);
}

.summary-item strong {
    color: var(--text-dark);
}

.spots-count {
    color: var(--success-color);
}

.spots-count.limited {
    color: var(--warning-color);
}

/* Classes List */
.class-filter {
    margin-bottom: 2rem;
}

.class-filter h3 {
    margin-bottom: 1rem;
}

.filter-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.classes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.class-slot {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.class-slot:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.class-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.class-time i {
    color: var(--primary-color);
}

.class-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.class-details p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.class-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.class-level {
    color: var(--text-light);
}

.class-spots {
    color: var(--success-color);
}

.class-spots.limited {
    color: var(--warning-color);
    font-weight: 600;
}

.book-btn {
    white-space: nowrap;
}

/* Personal Training */
.pt-container {
    background-color: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.pt-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.pt-intro h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.trainer-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trainer-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--success-color);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.trainer-info {
    padding: 1.5rem;
}

.trainer-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.trainer-specialty {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.trainer-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.trainer-stats i {
    color: var(--accent-color);
}

.trainer-bio {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Induction */
.induction-container {
    background-color: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.induction-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.induction-intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.induction-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.induction-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.induction-feature i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.induction-slots {
    max-width: 900px;
    margin: 0 auto;
}

.induction-slots h4 {
    margin-bottom: 2rem;
    text-align: center;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.time-slot {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.time-slot-day {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.time-slot-times {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-btn {
    padding: 0.75rem;
    background-color: var(--text-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
}

.time-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.time-btn.selected {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.time-btn.disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--text-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

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

.modal-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition-base);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

/* Success Modal */
.success-modal {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--success-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 3rem;
}

.success-modal h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-details {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    text-align: left;
}

/* Responsive */
@media (max-width: 968px) {
    .booking-container {
        grid-template-columns: 1fr;
    }
    
    .class-slot {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trainers-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .booking-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .time-slots-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 0;
    }
}
