/* ─── WIZARD STEPS ─────────────────────────────────────────── */
.nexp-wizard-steps {
    display: flex;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #F3F4F6;
    gap: 0;
}

.nexp-wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nexp-wizard-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.nexp-wizard-step.is-active .nexp-wizard-step__num {
    background: #4F46E5;
    color: #fff;
}

.nexp-wizard-step.is-done .nexp-wizard-step__num {
    background: #059669;
    color: #fff;
}

.nexp-wizard-step__label {
    font-size: 12.5px;
    font-weight: 600;
    color: #9CA3AF;
    transition: color .2s;
}

.nexp-wizard-step.is-active .nexp-wizard-step__label {
    color: #4F46E5;
}

.nexp-wizard-step.is-done .nexp-wizard-step__label {
    color: #059669;
}

.nexp-wizard-step__connector {
    flex: 1;
    height: 2px;
    background: #E5E7EB;
    margin: 0 10px;
    min-width: 20px;
}

/* ─── SKELETON LOADER ───────────────────────────────────────── */
.nexp-skeleton {
    background: linear-gradient(90deg, #F3F4F6 25%, #E9EAEC 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: nexp-shimmer 1.4s infinite;
    border-radius: 8px;
    height: 42px;
}

@keyframes nexp-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.nexp-slots-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

/* ─── TIME SLOT BUTTONS ─────────────────────────────────────── */
.nexp-slot {
    padding: 10px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all .15s;
    position: relative;
}

.nexp-slot:hover:not(.is-taken):not(.is-locked) {
    border-color: #4F46E5;
    color: #4F46E5;
    background: #EEF2FF;
}

.nexp-slot.is-selected {
    border-color: #4F46E5;
    background: #4F46E5;
    color: #fff;
}

/* Accessibility — keyboard focus */
.nexp-slot:focus-visible {
    outline: 3px solid #4F46E5;
    outline-offset: 3px;
}

/* Taken / locked slots with tooltip */
.nexp-slot.is-taken,
.nexp-slot.is-locked {
    background: #F9FAFB;
    color: #D1D5DB;
    cursor: not-allowed;
    border-color: #F3F4F6;
}

.nexp-slot.is-taken::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 10;
}

.nexp-slot.is-taken:hover::after {
    opacity: 1;
}

/* ─── SLOTS GRID ─────────────────────────────────────────────── */
.nexp-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

/* ─── WIZARD NAVIGATION ─────────────────────────────────────── */
.nexp-wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #F3F4F6;
}

.nexp-btn-back {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    transition: color .15s;
}

.nexp-btn-back:hover {
    color: #374151;
}

.nexp-btn-back:focus-visible {
    outline: 2px solid #4F46E5;
    border-radius: 4px;
}

/* ─── REVIEW CARD ────────────────────────────────────────────── */
.nexp-review-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 22px;
}

.nexp-review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 13.5px;
}

.nexp-review-row:last-child {
    border-bottom: none;
}

.nexp-review-row span {
    color: #9CA3AF;
}

.nexp-review-row strong {
    color: #111827;
}

/* ─── SUBMIT BUTTON LOADING STATE ───────────────────────────── */
.nexp-submit-btn.is-loading {
    opacity: .7;
    pointer-events: none;
    position: relative;
}

.nexp-submit-btn.is-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nexp-spin .7s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes nexp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── FORM CONTROLS — Accessibility ─────────────────────────── */
.nexp-form-control:focus-visible,
.nexp-submit-btn:focus-visible {
    outline: 3px solid #4F46E5;
    outline-offset: 2px;
}

/* ─── MY APPOINTMENTS ────────────────────────────────────────── */
.nexp-my-appts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nexp-appt-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    flex-wrap: wrap;
}

.nexp-appt-item__date-box {
    text-align: center;
    min-width: 48px;
    flex-shrink: 0;
}

.nexp-appt-item__date-box .dow {
    font-size: 10.5px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
}

.nexp-appt-item__date-box .day {
    font-size: 22px;
    font-weight: 800;
    color: #4F46E5;
    line-height: 1.1;
}

.nexp-appt-item__date-box .mon {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
}

.nexp-appt-item__details {
    flex: 1;
    min-width: 140px;
}

.nexp-appt-item__service {
    font-size: 14.5px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.nexp-appt-item__meta {
    font-size: 12.5px;
    color: #6B7280;
}

.nexp-appt-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── STICKY MOBILE BOOKING CTA ──────────────────────────────── */
.nexp-sticky-book-cta {
    display: none;
}

@media (max-width: 768px) {
    .nexp-sticky-book-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #E5E7EB;
        padding: 12px 20px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, .10);
        z-index: 999;
        gap: 12px;
    }

    .nexp-sticky-book-cta__info {
        font-size: 13px;
        color: #374151;
        font-weight: 600;
    }

    .nexp-sticky-book-cta__info small {
        display: block;
        font-size: 11.5px;
        color: #9CA3AF;
        font-weight: 400;
    }

    /* Prevent content hidden behind sticky bar */
    .nexp-fe-wrap {
        padding-bottom: 80px;
    }
}

/* ─── MOBILE RESPONSIVE FIXES ────────────────────────────────── */
@media (max-width: 768px) {
    .nexp-booking-wrap {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .nexp-wizard-steps {
        padding: 14px 16px 12px;
        gap: 0;
    }

    .nexp-wizard-step__label {
        display: none;
    }

    .nexp-provider-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .nexp-provider-grid {
        grid-template-columns: 1fr;
    }

    .nexp-appt-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .nexp-appt-item__actions {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════
   PROVIDER LISTING PAGE
═══════════════════════════════════════════════════════════ */

/* ── Listing Header ─────────────────────────────────────── */
.nexp-listing-header {
    text-align: center;
    padding: 32px 16px 24px;
}
.nexp-listing-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
}
.nexp-listing-subtitle {
    font-size: 15px;
    color: #6B7280;
    margin: 0;
}

/* ── Search Bar ─────────────────────────────────────────── */
.nexp-search-bar {
    margin-bottom: 20px;
}
.nexp-search-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nexp-search-bar__field {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}
.nexp-search-bar__field--grow {
    flex: 1;
    min-width: 180px;
}
.nexp-search-bar__icon {
    flex-shrink: 0;
    pointer-events: none;
}
.nexp-search-bar__input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    color: #111827;
    background: transparent;
    width: 100%;
    padding: 4px 0;
}
.nexp-search-bar__input::placeholder { color: #9CA3AF; }
.nexp-search-bar__select {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13.5px;
    color: #374151;
    background: #F9FAFB;
    cursor: pointer;
    outline: none;
    max-width: 180px;
}
.nexp-search-bar__btn {
    background: #4F46E5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.nexp-search-bar__btn:hover { background: #4338CA; }
.nexp-search-bar__clear {
    font-size: 13px;
    color: #9CA3AF;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
}
.nexp-search-bar__clear:hover { color: #374151; }

/* ── Results Count ──────────────────────────────────────── */
.nexp-results-count {
    font-size: 13px;
    color: #9CA3AF;
    margin: 0 0 20px;
}

/* ── Provider Grid ──────────────────────────────────────── */
.nexp-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* ── Provider Card ──────────────────────────────────────── */
.nexp-provider-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: transform .18s, box-shadow .18s;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nexp-provider-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(79,70,229,.13);
    border-color: #C7D2FE;
}

/* Card Banner */
.nexp-provider-card__banner {
    position: relative;
    height: 110px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    flex-shrink: 0;
}
.nexp-provider-card__banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Logo */
.nexp-provider-card__logo {
    position: absolute;
    bottom: -22px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 3px solid #fff;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #4F46E5;
    flex-shrink: 0;
}
.nexp-provider-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Body */
.nexp-provider-card__body {
    flex: 1;
    padding: 32px 20px 14px;
}
.nexp-provider-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.3;
}
.nexp-provider-card__cat {
    display: inline-block;
    background: #EEF2FF;
    color: #4F46E5;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-decoration: none;
}
.nexp-provider-card__desc {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.6;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.nexp-provider-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #F3F4F6;
    background: #FAFAFA;
    gap: 8px;
}
.nexp-provider-card__loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #9CA3AF;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nexp-provider-card__btn {
    font-size: 12.5px;
    font-weight: 600;
    color: #4F46E5;
    white-space: nowrap;
    flex-shrink: 0;
    transition: gap .15s;
}
.nexp-provider-card:hover .nexp-provider-card__btn {
    text-decoration: underline;
}

/* ── Empty State ────────────────────────────────────────── */
.nexp-empty-state {
    text-align: center;
    padding: 60px 20px;
}
.nexp-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    margin-bottom: 20px;
}
.nexp-empty-state__title {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px;
}
.nexp-empty-state__text {
    font-size: 14px;
    color: #9CA3AF;
    margin: 0 0 20px;
}
.nexp-empty-state__link {
    display: inline-block;
    background: #4F46E5;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

/* ── Pagination ─────────────────────────────────────────── */
.nexp-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}
.nexp-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid #E5E7EB;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #374151;
    background: #fff;
    transition: all .15s;
}
.nexp-pagination__btn:hover { border-color: #4F46E5; color: #4F46E5; }
.nexp-pagination__btn.is-active {
    background: #4F46E5;
    color: #fff;
    border-color: #4F46E5;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .nexp-provider-grid           { grid-template-columns: 1fr; }
    .nexp-search-bar__inner       { flex-direction: column; align-items: stretch; }
    .nexp-search-bar__field       { width: 100%; }
    .nexp-search-bar__field--grow { min-width: unset; }
    .nexp-search-bar__select      { max-width: 100%; width: 100%; }
    .nexp-search-bar__btn         { width: 100%; justify-content: center; }
    .nexp-listing-title           { font-size: 22px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .nexp-provider-grid { grid-template-columns: repeat(2, 1fr); }
}
