/* Right Track Booking System Styles */

/* CSS Variables - matching main site */
:root {
    --navy: #0A1628;
    --orange: #FF6B35;
    --white: #ffffff;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --text-dark: #212529;
    --text-gray: #6C757D;
}

/* Main Container */
.booking-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--off-white);
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.back-btn:hover {
    background: var(--light-gray);
    transform: translateX(-2px);
}

/* Header */
.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h2 {
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 10px;
}

.booking-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 50vw;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.service-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 28px 24px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    min-height: 120px;
    height: 100%;
}

.service-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
}

.service-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange) 0%, #ff8a5c 100%);
    border-radius: 14px;
    color: var(--white);
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.service-info strong {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-price {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-price .price-line {
    display: block;
    line-height: 1.4;
}

/* Selected Service Card */
.selected-service-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 107, 53, 0.08);
    border: 2px solid var(--orange);
    border-radius: 14px;
    margin-bottom: 24px;
}

.selected-service-card .service-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.selected-service-card .service-info strong {
    font-size: 1rem;
}

.selected-service-card .service-price {
    font-size: 0.85rem;
}

/* Mode Selection (legacy support) */
.booking-mode-toggle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.mode-btn:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
}

.mode-btn.active {
    border-color: var(--orange);
    background: rgba(255, 107, 53, 0.05);
}

.mode-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange) 0%, #ff8a5c 100%);
    border-radius: 12px;
    color: var(--white);
}

.mode-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mode-text strong {
    color: var(--navy);
    font-size: 1.1rem;
}

.mode-text span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Form Grid */
.booking-form-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.booking-form-grid.with-calendar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .booking-form-grid.with-calendar {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form Sections */
.form-section {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.form-label .required {
    color: var(--orange);
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Therapist Options */
.therapist-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.therapist-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.therapist-option:hover {
    border-color: var(--orange);
}

.therapist-option.selected {
    border-color: var(--orange);
    background: rgba(255, 107, 53, 0.05);
}

.therapist-option input {
    display: none;
}

.therapist-info {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.therapist-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--light-gray);
}

.therapist-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.therapist-details strong {
    color: var(--navy);
    font-size: 1rem;
}

.therapist-details span {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Calendar */
.booking-calendar {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.calendar-title {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.calendar-nav {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--navy);
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background: var(--orange);
    color: var(--white);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.available {
    background: var(--off-white);
    color: var(--text-dark);
    cursor: pointer;
}

.calendar-day.available:hover {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.1);
}

.calendar-day.unavailable {
    background: var(--light-gray);
    color: var(--text-gray);
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: var(--navy);
    color: var(--white);
}

.calendar-day.today {
    border: 2px solid var(--orange);
}

/* Time Slots */
.time-slots-title {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 16px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.time-slot {
    padding: 14px 10px;
    border-radius: 10px;
    border: 2px solid var(--light-gray);
    background: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover:not(.unavailable) {
    border-color: var(--orange);
    color: var(--orange);
}

.time-slot.selected {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.time-slot.unavailable {
    background: var(--light-gray);
    color: var(--text-gray);
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Contact Form Section */
.booking-form-section {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-section-title {
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.form-group {
    margin-bottom: 20px;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--orange);
    cursor: pointer;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--orange) 0%, #ff8a5c 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Screen */
.booking-success {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    margin-bottom: 24px;
}

.booking-success h2 {
    color: var(--navy);
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.booking-success p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto 30px;
}

.booking-summary {
    background: var(--off-white);
    border-radius: 12px;
    padding: 24px;
    margin: 30px auto;
    max-width: 400px;
    text-align: left;
}

.booking-summary p {
    margin: 8px 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 22, 40, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .booking-container {
        padding: 20px 16px;
    }

    .booking-header h2 {
        font-size: 1.6rem;
    }

    .mode-btn {
        padding: 20px;
    }

    .mode-icon {
        width: 50px;
        height: 50px;
    }

    .booking-form-section {
        padding: 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}
