/* HORIZONTAL SCROLL CARDS THEME */

/* Modernizing the Wizard Container and Header */
#book-appointment-wizard {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01) !important;
    border: 1px solid #e5e7eb !important;
}

#book-appointment-wizard #header {
    border-radius: 16px 16px 0 0 !important;
}

/* Wizard Frame for Step 1 Only */
#wizard-frame-1 {
    padding: 32px 40px !important;
}

#wizard-frame-1 .frame-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 8px !important;
    text-align: left !important;
    letter-spacing: -0.01em;
    text-transform: none !important;
}

#wizard-frame-1 .modern-frame-subtitle {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 32px;
    text-align: left !important;
}

#wizard-frame-1 .frame-container {
    text-align: left !important;
}

#wizard-frame-1 .frame-content {
    margin: 0 !important;
    width: 100% !important;
}


/* HORIZONTAL SCROLL CARDS */

.modern-horizontal-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Category Pills Filter */
.category-pills-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-pills-container::-webkit-scrollbar {
    display: none;
}

.category-pill {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.category-pill:hover {
    background: #e5e7eb;
    color: #111827;
}

.category-pill.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modern-category-section {
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.modern-category-title {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
}

/* Scroll Container */
.modern-scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    padding-top: 8px;
    padding-left: 2px;
    margin-left: -2px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
    min-height: 160px;
}

.modern-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.modern-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.modern-scroll-container::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 10px;
}
.modern-scroll-container:hover::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
}

/* Card Design */
.modern-h-card {
    flex: 0 0 280px; /* Wider cards for better reading */
    min-height: 140px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.modern-h-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.modern-h-card.active {
    border-color: #111827;
    box-shadow: 0 0 0 1.5px #111827;
    background: #fdfdfd;
}

.mhc-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mhc-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-transform: none !important;
}

.mhc-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1; /* Pushes footer down */
    text-transform: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mhc-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.mhc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mhc-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
    gap: 4px;
}

.mhc-tag svg {
    width: 12px;
    height: 12px;
    stroke: #9ca3af;
}

.mhc-tag.price {
    color: #059669;
    background: #ecfdf5;
}
.mhc-tag.price svg {
    stroke: #10b981;
}

.d-none { display: none !important; }

/* Providers Profile / Story Style */
#provider-container {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.provider-header-section {
    margin-bottom: 16px;
    text-align: left;
}

.provider-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    text-align: left !important;
    text-transform: none !important;
}

.provider-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    text-align: left !important;
}

.provider-scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 10px 4px 24px 4px;
    margin-left: -4px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.provider-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.provider-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-width: 80px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.provider-story-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f9fafb;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #374151;
    font-size: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.provider-story:hover .provider-story-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 0 1px #d1d5db, 0 4px 12px rgba(0,0,0,0.08);
}

.provider-story.active .provider-story-avatar {
    box-shadow: 0 0 0 2px #111827;
    background: #111827;
    color: #ffffff;
    transform: scale(1.1);
}

.provider-story-name {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    text-align: center;
    line-height: 1.2;
    transition: all 0.2s ease;
    max-width: 90px;
}

.provider-story.active .provider-story-name {
    color: #111827;
    font-weight: 700;
}

