/* Compact appointment booking — stepped layout */
.booking-page {
    padding-top: 0.75rem;
    padding-bottom: 2rem;
}

.booking-page .booking-page-head {
    margin-bottom: 1rem;
}

.booking-page .booking-page-head h1,
.booking-page .booking-page-head h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booking-page .booking-page-head p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.booking-page .breadcrumb {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.booking-steps {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.35rem;
    background: var(--warm-gray, #f5f7f5);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.booking-step-btn {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--medium-gray, #5c5c5c);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.55rem 0.4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.booking-step-btn .step-num {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.booking-step-btn.active {
    background: var(--white, #fff);
    color: var(--primary-color, #1e5631);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.booking-step-btn.active .step-num {
    background: var(--primary-color, #1e5631);
    color: #fff;
}

.booking-step-btn.done {
    color: var(--primary-color, #1e5631);
}

.booking-step-btn.done .step-num {
    background: color-mix(in srgb, var(--primary-color, #1e5631) 18%, white);
    color: var(--primary-color, #1e5631);
}

.booking-step-panel {
    display: none;
}

.booking-step-panel.is-active {
    display: block;
}

.booking-step-panel .card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    margin-bottom: 0.85rem;
}

.booking-step-panel .card-header {
    background: var(--white, #fff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.65rem 1rem;
}

.booking-step-panel .card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.booking-step-panel .card-body {
    padding: 0.9rem 1rem;
}

.booking-service-list {
    max-height: min(42vh, 360px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.booking-service-list .service-option {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.booking-service-list .service-option:has(input:checked),
.booking-service-list .form-check:has(input:checked) {
    border-color: var(--primary-color, #1e5631);
    background: color-mix(in srgb, var(--primary-color, #1e5631) 6%, white);
}

.booking-service-list .form-check-label small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.booking-step-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.booking-step-nav .btn {
    min-width: 7rem;
}

.booking-summary.sticky-booking-summary {
    position: sticky;
    top: calc(var(--navbar-offset, 80px) + 0.75rem);
}

.booking-summary .card-header h5 {
    font-size: 0.95rem;
    margin: 0;
}

.booking-summary .card-body {
    padding: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .booking-steps .step-label {
        display: none;
    }

    .booking-summary.sticky-booking-summary {
        position: static;
        margin-top: 1rem;
    }

    .booking-service-list {
        max-height: min(50vh, 320px);
    }
}
