/* ===== Container ===== */
.select-service-component-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    border-left: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    gap: 1.5rem;
}

/* ===== Title ===== */
.service-list-title {
    width: 100%;
}

.service-list-title h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: #141414;
}

/* ===== Services Wrapper - Horizontal Scroll ===== */
.services-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scrollbar-width: none;
    padding-top: 2px;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

/* WebKit browsers: hide scrollbar */
.services-container::-webkit-scrollbar {
    display: none;
}

/* ===== Individual Item ===== */
.service-item-container {
    flex: 0 0 auto;
    cursor: pointer;
    min-width: 80px;
    max-width: 90px;
    transition: transform 0.2s ease;
}

/* Hover effects */
.service-item-container:hover {
    transform: translateY(-2px);
}

/* Focus states for accessibility */
.service-item-container:focus {
    outline: 2px solid #B704F6;
    outline-offset: 2px;
    border-radius: 12px;
}

/* Active/selected state */
.service-item-container.selected {
    transform: translateY(-1px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .select-service-component-container {
        padding: 1.25rem 1rem;
        gap: 1.25rem;
        border-left: none;
        border-bottom: none;
    }

    .service-list-title h3 {
        font-size: 1.125rem;
        line-height: 1.4rem;
    }

    .services-container {
        gap: 1.25rem;
    }

    .service-item-container {
        min-width: 70px;
        max-width: 80px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .service-item-container {
        transition: none;
    }

    .services-container {
        scroll-behavior: auto;
    }
}

@media (prefers-contrast: high) {
    .select-service-component-container {
        border-left-width: 2px;
        border-bottom-width: 2px;
        border-color: #000;
    }

    .service-item-container:focus {
        outline-width: 3px;
    }
}
